Rotate TS050

TS050 is portrait mode by default, here is a guide to rotate the screen to landscape mode.

Android will automatically rotate the system.No need to set.

You need to create Xorg configuration file and autostart script for setting the resolution.

  1. Create Xorg configuration file

Create file /etc/X11/xorg.conf.d/10-ts050-fbdev-rotate.conf with the contents below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Section "Device"
Identifier "Configured Video Device"
# Rotate off
# Option "Rotate" "off"
# Rotate Right / clockwise, 90 degrees
Option "Rotate" "CW"
# Rotate upside down, 180 degrees
# Option "Rotate" "UD"
# Rotate counter clockwise, 270 degrees
# Option "Rotate" "CCW"

EndSection

Section "InputClass"
Identifier "Coordinate Transformation Matrix"
MatchIsTouchscreen "on"
MatchProduct "EP0000M09"
MatchDriver "libinput"
# Rotate Right / clockwise, 90 degrees
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
# Rotate upside down, 180 degrees
# Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
# otate counter clockwise, 270 degrees
# Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
  1. Create Resolution setting autostart file

Create the file /etc/xdg/autostart/panel-setup.desktop with contents below:

1
2
3
4
5
6
7
8
9
10
11
[Desktop Entry]
Version=1.0
Name=pixel
Exec=xrandr --output "default" --mode "1920x1088"
Terminal=false
Type=Application
Categories=
GenericName=
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
NoDisplay=true

Restart the system and the screen will automatically be configured as a landscape screen.

Note

The configuration above will rotate to landscape mode, you can also rotate to other modes, simply uncomment the mode you want.
And please note the resolution for landscape mode is 1920x1088, for portrait mode is 1088x1920.

These configurations will also effect the HDMI display, so if you want to use HDMI display, you need to remove them.

Please refer to How To Ratote Framebuffer