From f88f2ba87330f017f4d6eb447cb17b7674609d04 Mon Sep 17 00:00:00 2001 From: alfrix Date: Wed, 18 Oct 2023 12:45:04 -0300 Subject: [PATCH] docs: troubleshooting improve touch info --- docs/Troubleshooting/Touch_issues.md | 76 +++++++++++++++++++--------- 1 file changed, 52 insertions(+), 24 deletions(-) diff --git a/docs/Troubleshooting/Touch_issues.md b/docs/Troubleshooting/Touch_issues.md index 476b154a..6c1c44bb 100644 --- a/docs/Troubleshooting/Touch_issues.md +++ b/docs/Troubleshooting/Touch_issues.md @@ -62,58 +62,63 @@ DISPLAY=:0 xinput set-prop "" 'Coordinate Transformation Matrix' ", ENV{LIBINPUT_CALIBRATION_MATRIX}="" +``` + +Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save). !!! example + Test: + ```sh DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1 ``` - To make this permanent, modify the file `/etc/udev/rules.d/51-touchscreen.rules`: - + Permanent modification: + ```bash sudo nano /etc/udev/rules.d/51-touchscreen.rules ``` - and add following line - - ```sh - ACTION=="add", ATTRS{name}=="", ENV{LIBINPUT_CALIBRATION_MATRIX}="" + ```sh title="51-touchscreen.rules" + ACTION=="add", ATTRS{name}=="ADS7846 Touchscreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1 0 0 1" ``` Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save). - --- + +!!! example "Alternative" As an alternative **if the above doesn't work**: - edit `/usr/share/X11/xorg.conf.d/40-libinput.conf` - ```bash sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf ``` - With the following contents: - - ```sh + ```sh title="40-libinput.conf" Section "InputClass" Identifier "libinput touchscreen catchall" MatchIsTouchscreen "on" @@ -123,3 +128,26 @@ If this is the case, adding `enable_tvout=0` to `/boot/config.txt` and reboot. EndSection ``` Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save). + +## Touch is expanded: + +This can be due to other framebuffers being active, for example the composite output of Raspberries +may be enabled automatically as a fallback when no HDMI device is plugged in. +If this is the case: + +Open `/boot/config.txt` for editing: + +```sh +sudo nano /boot/config.txt +``` + +add at the bottom (in the `[all]` section) + +```sh title="config.txt" +enable_tvout=0 +max_frambefubbers=1 +``` + +Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save). + +**Reboot** to apply changes.