TS050 Touchscreen

This document describes how to use your TS050 touchscreen.

How to Connect

How to Rotate

By default the TS050 touchscreen will be in portrait mode, this guide will show you how to rotate it to landscape mode.

You will need to create an Xorg configuration file and an autostart script to set the resolution.

  1. Create Xorg configuration file

Create a 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 autostart-file

Create a file /etc/xdg/autostart/panel-setup.desktop with the 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 change to the landscape orientation.

Note

The configuration above will rotate your screen to landscape mode, you can also rotate to other modes by uncommenting the mode you want.
Please note that the resolution for landscape mode is 1920x1088, portrait mode is 1088x1920.

These screen configuration files will also affect the HDMI display, so you may have to remove them if the changes are undesired.

Please refer to Rotate Framebuffer Console.