This article explains the issues with video and touch rotation in Linux, and provides a solution
Typically, when a touch display’s input video is rotated, the reported touch coordinates will automatically rotate as well. In the case that touch coordinates do not rotate with input video, then use the “xinput” system command to rotate touch.
This article provides methods for performing video and touch display rotation in Linux. Choose the method that is best suited for your OS/System/Hardware.
How to rotate input video
Video display rotation can be done in Linux system in several different ways:
1. Using built-in rotation support in OS:
- System Settings Display Under Rotation, choose between Normal, Counterclockwise, Clockwise, and 180 Degrees Apply.
2. Using command line to rotate video display:
- From the command prompt type:
- xrandr -o left
- xrandr -o right
- xrandr -o normal
- xrandr -o inverted
3. If it is supported by Linux distribution. Adding "display_rotate=x" to /boot/config.txt and reboot to change the video display rotation.
- Where x = 0 (normal), 1 is 90 degree, 2 is 180 degree, 3 is 270 degree.
How to rotate touch
In most cases (most Elo monitors and most modern linux kernels), touch will automatically rotate with the video. If it doesn’t, use “xinput” command.
Example:
This command works for “Mouse” or “Digitizer” devices.
A .pdf copy of the above is attached to this article.
Please report any broken links by emailing support@elotouch.com and include a link to the knowledge article