This is an old revision of the document!
To rotate the screen, please follow theinstructions for the Raspberry Pi.
After rotating the screen, you will need to recalibrate the touchscreen or, in X Windows, you can add a transformation matrix like the following:
# 90-degree clockwise rotation xinput set-prop "Microchip Technology Inc. AR1100 HID-MOUSE" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1 # 90-degree counterclockwise rotation xinput set-prop "Microchip Technology Inc. AR1100 HID-MOUSE" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 # 180-degree rotation xinput set-prop "Microchip Technology Inc. AR1100 HID-MOUSE" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
To apply the setting each time the panel PC boots into X Windows, create a file in the /etc/X11/xorg.conf.d/ like /etc/X11/xorg.conf.d/01-touchscreen-rotation.conf with contents similar to the following:
Section "InputClass"
Identifier "AR1100 Transformation Matrix"
MatchProduct "Microchip Technology Inc. AR1100 HID-MOUSE"
Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
EndSection