Skip to content

Instantly share code, notes, and snippets.

@brannondorsey
Created August 18, 2017 17:01
Show Gist options
  • Save brannondorsey/4fe51f49d7f72a0e3d05677e2fad54a7 to your computer and use it in GitHub Desktop.
Save brannondorsey/4fe51f49d7f72a0e3d05677e2fad54a7 to your computer and use it in GitHub Desktop.
Invert Elo touchscreen

In my experience with Elo (and likely other) touch screens, if the display is rotated and this is accounted for in the display settings, the display looks correct but touch events are inverted. Tested with Ubuntu 16.04. Info from here.

Edit /usr/share/X11/xorg.conf.d/10-evdev.conf, changing:

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

to

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "SwapAxes" "True"
        Option "InvertX" "True"
EndSection

Reboot or restart the X server with sudo restart lightdm for the changes to take effect. Don't forget to change back if you rotate the screen to its original orientation.

Different screens and orientations necessetate different combinations of:

  • Option "InvertX" "True"
  • Option "InvertY" "True"
  • Option "SwapAxes" "True"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment