Skip to content

Instantly share code, notes, and snippets.

@autofyrsto
Created June 30, 2017 00:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@johnny-shaman
Copy link

I use in Ubuntu and ASUS t100 or t101 or t102h or t103ha when this file put into "/usr/share/X11/xorg.conf.d"
Thank you !

@karts-with-freaking-lasers
Copy link

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