User Tools

Site Tools

한국어

comfilepi:rotate_the_screen:index

This is an old revision of the document!


Rotating the ComfilePi's Screen

To rotate the screen, please follow theinstructions for the Raspberry Pi.

After rotating the screen, you will need to recalibrate the touchscreen.

X11

If using X11 (a.k.a. XWindows) you can add a transformation matrix instead of recalibrating the touchscreen.

# 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
comfilepi/rotate_the_screen/index.1783475314.txt.gz · Last modified: by mfranklin