Hi, I have LTIB building Linux and Qt 4.6.0 for i.MX28 EVK. When running the demos the x and y for the touchscreen are reversed. When I move my finger up and down it moves the cursor left and right. I have calibrated the touchscreen in TSLIB and it works fine when running ts_test.
Can anyone help to fix this in Qt?
Solved! Go to Solution.
Hi David,
Are you using the QWS_MOUSE_PROTO variable? Something like:
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
You can also make sure your TS is correctly calibrated by doing:
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
just make sure event1 is your TS.
Then run ts_calibrate:
ts_calibrate
And make sure the /etc/pointercal file was created. After this just run your Qt application.
Regards,
Edison
Hi Edison, thank you the following line fixed my problem.
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
Hi David,
Are you using the QWS_MOUSE_PROTO variable? Something like:
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
You can also make sure your TS is correctly calibrated by doing:
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
just make sure event1 is your TS.
Then run ts_calibrate:
ts_calibrate
And make sure the /etc/pointercal file was created. After this just run your Qt application.
Regards,
Edison