xserver-multidpi/config
Chase Douglas 7925e89456 Fix udev population of Bluetooth input device product IDs
The udev device_added function takes the vendor and model IDs of added
devices and converts them into an attribute that can be matched for by
an InputClass configuration using MatchUSBID. Currently, the udev
mechanism works for USB devices, but fails to work properly for
Bluetooth devices. The product IDs of the event node are actually the
IDs of the Bluetooth receiver instead of the device.

This patch reads the product ID from the PRODUCT property of the parent
of the added device. This tag is set correctly for both USB and
Bluetooth input devices. The following devices have been tested by
specifying individual InputClass sections in xorg.conf:

* Apple Keyboard (Bluetooth)
* Apple Magic Trackpad (Bluetooth)
* Apple Magic Mouse (Bluetooth)
* Microsoft Bluetooth Notebook Mouse 5000 (Bluetooth)
* Microsoft IntelliMouse Optical (USB)
* N-Trig Touchscreen (USB)
* Wacom Bamboo Touch (USB)

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-01 15:04:37 +10:00
..
10-evdev.conf config: only match sane devices in 10-evdev.conf 2010-04-08 15:21:00 +10:00
config-backends.h config: add libudev input-hotplug backend 2009-12-30 19:05:44 +00:00
config.c config: Replace xstrdup with strdup in add_option() 2010-06-11 19:05:46 +07:00
dbus-api Hotplug: D-Bus: API version 2 2007-08-01 01:53:31 +03:00
dbus-core.c DBUS_API_SUBJECT_TO_CHANGE is already defined on the command line 2009-02-04 09:49:54 +10:00
dbus.c Get rid of xstrdup when argument is definitely non-NULL 2010-06-11 19:04:23 +07:00
fdi2iclass.py config: Script to convert HAL fdi settings to InputClass sections 2010-06-11 09:31:38 +10:00
hal.c Get rid of xstrdup when argument is definitely non-NULL 2010-06-11 19:04:23 +07:00
Makefile.am config: Script to convert HAL fdi settings to InputClass sections 2010-06-11 09:31:38 +10:00
udev.c Fix udev population of Bluetooth input device product IDs 2010-09-01 15:04:37 +10:00
x11-input.fdi x11-input.fdi: Add options needed to handle adding USB devices on Solaris 2009-01-30 21:45:12 -08:00
xorg-server.conf add basic D-BUS configuration mechanism 2006-07-21 15:19:49 -04:00