From f37a6b579fbababb0fa5d60067f91a7f6d20f7f9 Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 1 Aug 2022 22:47:01 -0300 Subject: [PATCH] docs: add an alternative to calibration --- docs/Hardware.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)