TS-4900 display rotation
From embeddedTS Manuals
Under Yocto xrandr can be used to rotate the screen at any time:
export DISPLAY=:0
xrandr --rotate left
xrandr --rotate right
xrandr --rotate normal
xrandr --rotate inverted
Under Debian or Ubuntu the rotation is configured via Xorg.conf. Edit the file /etc/X11/xorg.conf and append this to the end:
Section "Device"
Identifier "fbdev display"
Driver "fbdev"
Option "Rotate" "CCW"
EndSection
If the display is rotated, the touchscreen needs to be as well. The following example matches the CCW rotation, but swapaxes or the invertx/y options will need to be adjusted for other rotations.
Section "InputClass"
Identifier "axis inversion"
MatchIsTouchscreen "true"
# swap x/y axes on the device. i.e. rotate by 90 degrees
Option "SwapAxes" "on"
# Invert the respective axis.
Option "InvertX" "on"
Option "InvertY" "off"
EndSection