I attach monitor with integrated resistive touchscreen. USB touch (ELO 2218) works, but with invalid positioning (scales of X and Y axies are invalid).
How can I calibrate touchscreen in Boot2Qt image? I setup ssh so it is possible to use command shell to do something on target.
Hi @Vitaliy
Please check this documentation about Qt and input devices:
https://doc.qt.io/qt-5/inputs-linux-device.html
Regards,
Stefan
Hi, Stefan.
I’m not sure that I understand all information in that page.
What kind of input system used in Boot2Qt image (libinput, evdev, tslib)? How to discover it? I doesn’t build that image and didn’t configure Qt for that image.
In that article there are no any information how to change a scale of touchscreen axies.
Regards,
Vitaliy
Hi @Vitaliy
It seems that the ELO 2218 is a resistive touch. Therefore, you should try to use tslib. There should be a tool installed called ts_calibrate to calibrate your touch screen. If the calibration works you have to set the environment variables according to the article for TS lib (e.g. set QT_QPA_FB_TSLIB) and it should then use the calibrated data.
Regards,
Stefan
Hello, Stefan.
I knew about ts_calibrate, but it is not working, here is log out from root terminal:
# ts_calibrate
ts_setup: No such file or directory
ts_setup utility is not present in “Boot to Qt Image 5.14.1”, which I get from Qt.
It is impossible to use opkg to install additional utilities; Qt does not provide packages feed.
Regards,
Vitaliy
Hi @Vitaliy
It seems that qt doesn’t include ts_calibrate in their image then. You can rebuild the image yourself and add it to the image. If you think it should be included in the image please fill out a bugreport:
https://bugreports.qt.io/secure/Dashboard.jspa
Regards,
Stefan
Hi, Stefan.
Thanks to your answer.
I see that it it a Qt responsibility to change something in Boot2Qt image. So, many of manuals/instructions in Toradex website aren’t as useful as can be.
Well, with any other questions related to Boot2Qt image, I will ask Qt.
Regards,
Vitaliy
Thanks for the feedback!
Regards,
Stefan