Configure touch screen in Gnome

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

The touch screen is enabled in Gnome by default. However, it's rotation is wrong.

Steps

  • Execute the touch screen calibration, if not done so already.
ts_calibrate
  • Edit the file /etc/X11/xorg.conf and add a section for the touchscreen:
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
EndSection

Section "Device"
        Identifier      "i.MX Accelerated Framebuffer Device"
        Driver          "imx"
        Option          "ShadowFB"                      "false"
        Option          "MigrationHeuristic"            "smart"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection 

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

Section "InputDevice" 
	Identifier      "PMIC-Touchscreen" 
	Driver	        "tslib"
	Option          "Device" "/dev/input/touchscreen0"
	Option          "Protocol" "Auto"
	Option          "Rotate" "CCW"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
	InputDevice	"PMIC-Touchscreen"
EndSection