Skip to content

Instantly share code, notes, and snippets.

@goryny4
Created August 10, 2015 09:55
Show Gist options
  • Save goryny4/f9099af6c71fc3b54234 to your computer and use it in GitHub Desktop.
Save goryny4/f9099af6c71fc3b54234 to your computer and use it in GitHub Desktop.
/usr/share/X11/xorg.conf.d/10-evdev.conf
# Touch settings. Scroll to bottom.
#
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.
Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SwapAxes" "1"
# here might be InvertY or 0. Not sure.
Option "InvertX" "1"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment