This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilepi:rotate_the_screen:index [2023/05/22 14:19] COMFILE Technology |
comfilepi:rotate_the_screen:index [2023/06/22 10:04] (current) COMFILE Technology |
||
---|---|---|---|
Line 14: | Line 14: | ||
# 180-degree rotation | # 180-degree rotation | ||
xinput set-prop "Microchip Technology Inc. AR1100 HID-MOUSE" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1 | xinput set-prop "Microchip Technology Inc. AR1100 HID-MOUSE" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1 | ||
+ | </code> | ||
+ | |||
+ | 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: | ||
+ | |||
<code> | <code> | ||
+ | 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 | ||
+ | </code> | ||