]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - x11-base/xorg-server/files/1.8.0-match-only-sane-devices.patch
xorg-server: Version bump to 1.8.0 + DontLie.
[gentoo-draconx.git] / x11-base / xorg-server / files / 1.8.0-match-only-sane-devices.patch
diff --git a/x11-base/xorg-server/files/1.8.0-match-only-sane-devices.patch b/x11-base/xorg-server/files/1.8.0-match-only-sane-devices.patch
new file mode 100644 (file)
index 0000000..6ece211
--- /dev/null
@@ -0,0 +1,63 @@
+From c8a608cb6ce8f9c86258c1ab49084f691fa9cc51 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Wed, 07 Apr 2010 00:04:38 +0000
+Subject: config: only match sane devices in 10-evdev.conf
+
+Having a generic catchall also adds devices like accelerometers. These
+devices make X unusable, hence restrict matching to "known sane" devices
+like pointers, touchpads, keyboards, tablets and touchscreens.
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+Acked-by: Julien Cristau <jcristau@debian.org>
+Acked-by: Dan Nicholson <dbn.lists@gmail.com>
+Acked-by: James Cloos <cloos@jhcloos.com>
+---
+diff --git a/config/10-evdev.conf b/config/10-evdev.conf
+index 7406f4e..cc83ab2 100644
+--- a/config/10-evdev.conf
++++ b/config/10-evdev.conf
+@@ -1,8 +1,40 @@
+ #
+ # 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-catchall"
++        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"
+ EndSection
+--
+cgit v0.8.3-6-g21f6