guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.9k stars 243 forks source link

LCD Touch Screen not correctly rotating touch input #473

Open Mayson12381 opened 1 year ago

Mayson12381 commented 1 year ago

458 seemed to have the same problem but got closed do to being a duplicate of #137 , though I don't think that issue addresses this specific problem.

What were you doing?

I rotated my HDMI attached touch display with the DISPLAY_ORIENTATION=left variable in the start_gui file.

What did you expect to happen?

The display rotates and the touch is correctly detected

What happened instead?

The display rotated correctly, but the touch is wrongly corrected. I had to rotate to the left orientation which translates to a 270 deg rotation clockwise. But when I touch the bottom right of the screen. The mouse is moving at the top right, evidently still thinking its in lanscape mode.

Was there an error message displayed? What did it say?

No error message, except this line in the Xorg.0.log files:

[ 14.497] (II) XINPUT: Adding extended input device "Silicon Integrated System Co. SiS HID Touch Controller" (type: TOUCHSCREEN, id 6) [ 14.498] () Option "AccelerationScheme" "none" [ 14.498] () Silicon Integrated System Co. SiS HID Touch Controller: (accel) selected scheme none/0 [ 14.498] () Silicon Integrated System Co. SiS HID Touch Controller: (accel) acceleration factor: 2.000 [ 14.498] () Silicon Integrated System Co. SiS HID Touch Controller: (accel) acceleration threshold: 4 [ 14.512] (II) event0 - Silicon Integrated System Co. SiS HID Touch Controller: is tagged by udev as: Touchscreen [ 14.512] (II) event0 - Silicon Integrated System Co. SiS HID Touch Controller: device is a touch device [ 14.520] (II) config/udev: Adding input device Silicon Integrated System Co. SiS HID Touch Controller (/dev/input/mouse0) [ 14.520] (II) No input driver specified, ignoring this device. [ 14.520] (II) This device may have been added with another device file.

Version of FullPageOS?

0.13.0

Additionally, I tried to fool around a bit with the Coordinate Transformation Matrix and added a line in rotate.sh with different names for the input device, tho I can't run xinput --list to find any devices since that command is not working over ssh nor directly over the device. I also experimented with the dtoverlay command, e.g. removing the vc4-kms-v3d or adding ,touchscreen-inverted-x=1,touchscreen-inverted-y=1. None of these did the trick, some even causing the pi to crash.

guysoft commented 1 year ago

Sorry for the delay, lots (good stuff) happened in my personal life. Duplicate of https://github.com/guysoft/FullPageOS/issues/137#issuecomment-346576073 There is a solution there how to solve this. I guess it might be a good idea to add it to the wiki if you want to confirm that works