Skip to content

Instantly share code, notes, and snippets.

@autofyrsto
Created June 30, 2017 00:04
Show Gist options
  • Save autofyrsto/6daa5d41c7f742dd16c46c903ba15c8f to your computer and use it in GitHub Desktop.
Save autofyrsto/6daa5d41c7f742dd16c46c903ba15c8f to your computer and use it in GitHub Desktop.
Xorg configuration file to rotate touchscreen input 90 degrees right.
Section "InputClass"
Identifier "Coordinate Transformation Matrix"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
MatchDriver "libinput"
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection
@karts-with-freaking-lasers
Copy link

karts-with-freaking-lasers commented Aug 17, 2022

Thank you ever-so-kindly!

0 degrees: Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
90 degrees: Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
180 degrees: Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
270 degrees: Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"

From https://docs.sunfounder.com/projects/ts-7/en/latest/quick_user_guide.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment