adnroboticsfr / smartpad_screen_rotation

Smartpad screen rotation
Apache License 2.0
0 stars 0 forks source link

Screen Touch don't rotate #1

Open Rvod57 opened 17 hours ago

Rvod57 commented 17 hours ago

While this since rotation is working, the issue is that the rotation don't rotate the touch screen. As an example, to have the function of the upper right corner, we need to touch the lower left corner...Any tips to correct it? Thank you

adnroboticsfr commented 12 hours ago

Normally, the touch screen should also rotate at the same time. You need to check for the existence of the file /etc/X11/xorg.conf.d/01-armbian-defaults.conf and add the following lines to flip the touch screen:

Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "InvertY" "false" Option "InvertX" "false" EndSection

Here is a one-line Linux command to append these lines to the file:

sudo mkdir -p /etc/X11/xorg.conf.d && sudo tee /etc/X11/xorg.conf.d/01-armbian-defaults.conf > /dev/null <<EOL Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "InvertY" "false" Option "InvertX" "false" EndSection EOL