Hi team,
Hopefully this is the right place I can't really see a better forum for it
I'm using an ILI9341/XPT2046(ADS7846) touchscreen on a pi4, rotated 90 degrees.
Everything is now working really well except the rotated x touch is inverted, i.e. if I press a button on the top right, it registers on the top left and vice versa. I've sorta lost my mind a bit on how the transformation matrix is supposed to work, I don't want to change anything except invert the x. I've attached the conf file below (the InvertX/Y" etc options don't do anything anymore).
if anyone can offer a hint that would be very much obliged
Thanks in advance
/etc/X11/xorg.conf.d/99-ads7846-cal.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonButton" "3"
Option "EmulateThirdButtonTimeout" "1500"
Option "EmulateThirdButtonMoveThreshold" "30"
Option "InvertX" "1"
Option "InvertY" "0"
Option "SwapAxes" "1"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
Hopefully this is the right place I can't really see a better forum for it
I'm using an ILI9341/XPT2046(ADS7846) touchscreen on a pi4, rotated 90 degrees.
Everything is now working really well except the rotated x touch is inverted, i.e. if I press a button on the top right, it registers on the top left and vice versa. I've sorta lost my mind a bit on how the transformation matrix is supposed to work, I don't want to change anything except invert the x. I've attached the conf file below (the InvertX/Y" etc options don't do anything anymore).
if anyone can offer a hint that would be very much obliged
Thanks in advance
/etc/X11/xorg.conf.d/99-ads7846-cal.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonButton" "3"
Option "EmulateThirdButtonTimeout" "1500"
Option "EmulateThirdButtonMoveThreshold" "30"
Option "InvertX" "1"
Option "InvertY" "0"
Option "SwapAxes" "1"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
Statistics: Posted by Horsepants — Sun Mar 10, 2024 1:15 am