Description
Hello. I run compiled tslib on RPi zero 2w. I have an ili9341 2.8inch display with xpt2046 touch. I initialize environment with these parameters:
export LD_LIBRARY_PATH=/usr/local/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb1
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/home/pi/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/lib/ts
ts_calibrate
I run the ts_test and I get the perfect input.
Then I run ts_uinput -d -v and it generates /dev/input/event1
Then I export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1:rotate=0
I run the PyQt6 app on linuxfb. I can see that now I can get the touch input more or less working on my display in the PyQT6 app, but it's definitely far from accurate. I cannot click on the items in the bottom of the QComboBox unless I select the middle item and drag down. When I click on items I often get weird behaviour like double clicking. For some reason, I can open combobox by clicking on the place where it's not even there. I also show the virtual keyboard and when I click on one button the totally different one gets clicked. So, I can definitely see that the input is off.
So, what could be a problem and how to solve it? I literally searched everywhere and cannot find a solution. Thank you.