About rotation of the display and touch function on MX6DL-SABER-SDP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About rotation of the display and touch function on MX6DL-SABER-SDP

Jump to solution
4,203 Views
yuuki
Senior Contributor II

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,

Labels (1)
0 Kudos
1 Solution
2,909 Views
max_tsai
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
6 Replies
2,909 Views
YixingKong
Senior Contributor IV

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

0 Kudos
2,910 Views
max_tsai
NXP Employee
NXP Employee

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

0 Kudos
2,909 Views
YixingKong
Senior Contributor IV

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

0 Kudos
2,909 Views
YixingKong
Senior Contributor IV

MaxTsai, could please help in answering these questions?

Thanks,

Yixing

0 Kudos
2,909 Views
yuuki
Senior Contributor II

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

0 Kudos
2,909 Views
YixingKong
Senior Contributor IV

Yuuki-sa

Thank you for your reply. I am going to assign your request to an AE engineer.

Regards,

Yixing

0 Kudos