Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working
-
Which XInput driver are you using?
libinput
(wrong), orevdev
(right). -
@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
evdev(right)
I installed it first evdev:
sudo apt-get install xserver-xorg-input-evdevchange the driver in a config file:
sudo nano /usr/share/X11/xorg.conf.d/40-libinput.confat the lines with touchscreen driver replace libinput by evdev
Section "InputClass" Identifier "evdev tablet catchall" MatchIsTablet "on" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection
-
Hm, that looks just fine.
The only thing left would be to try/dev/input/event0
and/dev/input/event2
respectively.
Maybe the "stylus" device reacts only to a pen. -
Hm, that looks just fine.
The only thing left would be to try/dev/input/event0
and/dev/input/event2
respectively.
Maybe the "stylus" device reacts only to a pen.@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
The only thing left would be to try /dev/input/event0 and /dev/input/event2 respectively.
How can this be done? You can learn more for beginners.
-
To begin with, you're not a beginner, @Alexey_Golubev ;-)
Replace this
export TSLIB_TSDEVICE=/dev/input/event1
and try this
export TSLIB_TSDEVICE=/dev/input/event0
and this
export TSLIB_TSDEVICE=/dev/input/event2
-
if export TSLIB_TSDEVICE=/dev/input/event1 that ts_calibrate work.
if export TSLIB_TSDEVICE=/dev/input/event0 that ts_calibrate notwork.
if export TSLIB_TSDEVICE=/dev/input/event2 that ts_calibrate notwork.
-
To begin with, you're not a beginner, @Alexey_Golubev ;-)
Replace this
export TSLIB_TSDEVICE=/dev/input/event1
and try this
export TSLIB_TSDEVICE=/dev/input/event0
and this
export TSLIB_TSDEVICE=/dev/input/event2
@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
export TSLIB_TSDEVICE=/dev/input/event1
What should I do next?
-
I am kinda lost.
Maybe try Qt 6, even though I wouldn't know of a long standing bug that prevents touch from working. -
I am kinda lost.
Maybe try Qt 6, even though I wouldn't know of a long standing bug that prevents touch from working.@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
I wouldn't know of a long standing bug that prevents touch from working
I can't use Qt6.
Maybe you need special keys for qt 5.15? -
I am kinda lost.
Maybe try Qt 6, even though I wouldn't know of a long standing bug that prevents touch from working.@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
I am kinda lost.
Can you help?
-
No, I have no more ideas.
-
No, I have no more ideas.
@Axel-Spoerl said in Raspberry Pi 4 touchscreen with Qt5.15 embedded is not working:
No, I have no more ideas.
I found that "-plugin tslib" touchscreen works.
"export QT_QPA_FB_TSLIB=1" does not work.
If I write "root@pi:~# /home/pi/Qt_Projects/kiab/kia -plugin tslib" then the touchscreen works.