Our customer operates Linux on MX6 DL_SABER-SDP.
They want to rotate a display 180 degrees.
They referred to the following URL.
https://community.freescale.com/message/343429#343429
The display has been rotated 180 degrees by using following commands.
echo 1 > /sys/class/graphics/fb0/rotate
echo 0 > /sys/class/graphics/fb0/rotate
However, a touch function does not rotate.
Would you teach how to rotate a touch function 180 degrees?
Best Regards,
Solved! Go to Solution.
hi Yuuki,
If you are using X server, you can use xinput & xrandr for up-down invert. This link is for your reference.
https://wiki.ubuntu.com/X/InputCoordinateTransformation
For xinput, you can use "xinput list" to check the input device name. Take Yocto 3.10.17 release as the example.
-> xinput list
⎡ Virtual core pointer | id=2 | [master pointer (3)] |
⎜ ↳ Virtual core XTEST pointer | id=4 | [slave pointer (2)] |
⎜ ↳ eGalax Touch Screen | id=10 [slave pointer (2)] | |
⎜ ↳ max11801_ts | id=9 | [slave pointer (2)] |
Then invert input coordinate by the command below.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
Back to normal by the command.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
Regards,
Max
Yu
How is your issue going? Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.
Thanks,
Yixing
hi Yuuki,
If you are using X server, you can use xinput & xrandr for up-down invert. This link is for your reference.
https://wiki.ubuntu.com/X/InputCoordinateTransformation
For xinput, you can use "xinput list" to check the input device name. Take Yocto 3.10.17 release as the example.
-> xinput list
⎡ Virtual core pointer | id=2 | [master pointer (3)] |
⎜ ↳ Virtual core XTEST pointer | id=4 | [slave pointer (2)] |
⎜ ↳ eGalax Touch Screen | id=10 [slave pointer (2)] | |
⎜ ↳ max11801_ts | id=9 | [slave pointer (2)] |
Then invert input coordinate by the command below.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
Back to normal by the command.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
Regards,
Max
Yuuki
Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.
Thanks,
Yixing
Dear Yixing Kong-san,
Thank you for your reply.
This problem has not been solved yet.
Would you let me know, if you have some information?
Best Regards,
Yuuki Murasato
Yuuki-sa
Thank you for your reply. I am going to assign your request to an AE engineer.
Regards,
Yixing