I have an egalax touchscreen connected to a raspberry pi running osmc alpha 4 and can’t get it calibrated.
In the top left corner it is nearly correct, but the further I move away the more the cursor deviates. This might be caused by the screen being recognized as 1280x720 while only being 1024x640. I was unable to change anything about that using the hdmi settings or tvservice
$ tvservice -s
state 0x12001a [HDMI CEA (4) RGB lim 16:9], 1280x720 @ 60.00Hz, progressive
kodi looks just right though, nothing is missing on the edges.
I installed ts_lib to create a pointercal file which works just fine using ts_test. Though the only way to get this file working in osmc seems to be using the uimapper python program, which slows down the machine to a degree not usable anymore. Furthermore it doesn’t seem properly calibrated either. But the delay between touching something and the arrow moving is so humongous, it’s hard to tell. I started the uimapper by creating a systemd service file as follows:
[Unit]
Description=uimapper
[Service]
Type=forking
ExecStart=/usr/local/bin/uimapper_startup
Restart=on-failure
TimeoutStopSec=1
[Install]
WantedBy=multi-user.target
as proposed here: OSMC Forums
Well, even if the script is running, and slowing down everything, the calibration is still off.
Also I’ve tried to add this to /usr/bin/kodi to get TSLIB working using SDL:
export LD_LIBRARY_PATH=/usr/local/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
#NOTE: Change '/dev/input/event2', to find event# use 'ls -l /dev/input/by-id'
export TSLIB_TSDEVICE=/dev/input/event3
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=$TSLIB_TSDEVICE
as proposed here: SDL Development - ArmadeusWiki
Bottom line is, I have tried everything that has been proposed in any forum or tutorial I have found on the net and it just doesn’t work.
Something like what was proposed in the first post of the forum.osmc link would be perfect. Just transform the touchscreen coordinates using the calibration values from for instance ts_calibrate or something like that would be perfect.
Can it really be that hard to just get this done? I was full of hope after you stated:
"But we knew we could do even better. We started by listening to your
feedback and your wishes. We’ve improved the update system to make it
more dependable, we’ve made things a lot snappier and we’ve given you
heaps more features without compromising on stability."
I thought, surely they must have incorporated a touch screen calibration tool, or at least a half way decent way to get it done. I am failing to get it done though for multiple days. And the huge load of forum posts and tutorials all fail. Does anyone have any more ideas on how to solve this or is there any proper alternative for OSMC that has this trivial problem solved?
Kind regards
Max