diff --git a/docs/Hardware.md b/docs/Hardware.md index 35f3d4b9..4c0e7d72 100644 --- a/docs/Hardware.md +++ b/docs/Hardware.md @@ -100,6 +100,22 @@ To make this permanent, modify the file `/etc/udev/rules.d/51-touchscreen.rules` ```sh ACTION=="add", ATTRS{name}=="", ENV{LIBINPUT_CALIBRATION_MATRIX}="" ``` + +As an alternative if the above doesn't work: + +edit /usr/share/X11/xorg.conf.d/40-libinput.conf + +for example: +```sh +Section "InputClass" + Identifier "libinput touchscreen catchall" + MatchIsTouchscreen "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" + Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1" +EndSection +``` + More info about input transformation can be found in: * [Ubuntu wiki InputCoordinateTransformation](https://wiki.ubuntu.com/X/InputCoordinateTransformation)