1 From c8a608cb6ce8f9c86258c1ab49084f691fa9cc51 Mon Sep 17 00:00:00 2001
2 From: Peter Hutterer <peter.hutterer@who-t.net>
3 Date: Wed, 07 Apr 2010 00:04:38 +0000
4 Subject: config: only match sane devices in 10-evdev.conf
6 Having a generic catchall also adds devices like accelerometers. These
7 devices make X unusable, hence restrict matching to "known sane" devices
8 like pointers, touchpads, keyboards, tablets and touchscreens.
10 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
11 Acked-by: Julien Cristau <jcristau@debian.org>
12 Acked-by: Dan Nicholson <dbn.lists@gmail.com>
13 Acked-by: James Cloos <cloos@jhcloos.com>
15 diff --git a/config/10-evdev.conf b/config/10-evdev.conf
16 index 7406f4e..cc83ab2 100644
17 --- a/config/10-evdev.conf
18 +++ b/config/10-evdev.conf
21 # Catch-all evdev loader for udev-based systems
23 +# We don't simply match on any device since that also adds accelerometers
24 +# and other devices that we don't really want to use. The list below
25 +# matches everything but joysticks.
28 - Identifier "evdev-catchall"
29 + Identifier "evdev pointer catchall"
31 + MatchDevicePath "/dev/input/event*"
36 + Identifier "evdev keyboard catchall"
37 + MatchIsKeyboard "on"
38 MatchDevicePath "/dev/input/event*"
43 + Identifier "evdev touchpad catchall"
44 + MatchIsTouchpad "on"
45 + MatchDevicePath "/dev/input/event*"
50 + Identifier "evdev tablet catchall"
52 + MatchDevicePath "/dev/input/event*"
57 + Identifier "evdev touchscreen catchall"
58 + MatchIsTouchscreen "on"
59 + MatchDevicePath "/dev/input/event*"