2015-07-15, 16:52
Hello again, I got a 5" egalax-like hdmi lcd screen that has a usb touch panel from ebay here and am using it on a raspberry pi 2 under osmc, and while I got the video and touch working, I have not been able to get touch to work properly with kodi. I have had this issue under an install of kodi under a plain raspbian as well, and it seems to be a problem on other screens I have tried, such as on a SPI 3.2" waveshare spotpear screen, which I still have. Touch works under xorg for example, but not in kodi. I can touch the upper left corner of the screen and the arrow appears, but it is way out of calibration to the point that I cannot use the touchscreen, and the only way I can make the arrow appear is by touching the upper left corner. Touching anywhere on the screen does however wake kodi from a screensaver (where the screen darkens from inactivity in my case), which also tells me the touchscreen does work. From what I have been reading, this seems to be a very common problem, but with no hard and fast ways to solve it.
I have been working on a possible solution that has seemed to work for a lot of people and shows promise, outlined here, http://markamc.traki-iski.co.uk/raspberr...uchscreen/ that uses a uinput-mapper python service and a modified ts_calibrate . I haven't been able to get it to work because
does not run and I get this
, and when I touch the display I get this
and thus I am not able to run the uimapper service, which depends on those scripts working. I have also been trying to contact the admin of the tutorial for some help, but no responses so far.
Is there anyone here who has tried this tutorial and managed to get their touchscreens to properly work with kodi, or is there a better/easier way to do this than the link?
I have been working on a possible solution that has seemed to work for a lot of people and shows promise, outlined here, http://markamc.traki-iski.co.uk/raspberr...uchscreen/ that uses a uinput-mapper python service and a modified ts_calibrate . I haven't been able to get it to work because
Code:
cd /scripts/uinput-mapper
./input-read.py /dev/input/event0 -D | ./input-create.py configs/touchscreen.py
does not run and I get this
Code:
FAIL MUCH?
Failed to open uinput
Traceback (most recent call last):
File "./input-create.py", line 59, in <module>
d = UInputDevice()
File "/scripts/uinput-mapper/uinputmapper/cinput.py", line 194, in __init__
raise OSError
OSError
Exception TypeError: 'argument must be an int, or have a fileno() method.' in <bound method UInputDevice.__del__ of <uinputmapper.cinput.UInputDevice object at 0xb6a0b250>> ignored
Code:
Traceback (most recent call last):
File "./input-read.py", line 111, in <module>
sys.stdout.flush()
IOError: [Errno 32] Broken pipe
and thus I am not able to run the uimapper service, which depends on those scripts working. I have also been trying to contact the admin of the tutorial for some help, but no responses so far.
Is there anyone here who has tried this tutorial and managed to get their touchscreens to properly work with kodi, or is there a better/easier way to do this than the link?