[PATCH] udev: Add "tty" to the list of subsystems we filter on
Thomas Jaeger
ThJaeger at gmail.com
Sun Feb 14 09:24:50 PST 2010
This allows serial wacom devices to work.
Signed-off-by: Thomas Jaeger <ThJaeger at gmail.com>
---
config/udev.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/config/udev.c b/config/udev.c
index 432ab85..78ffcf5 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -227,6 +227,11 @@ config_udev_init(void)
if (rc < 0)
return 0;
+ rc = udev_monitor_filter_add_match_subsystem_devtype(udev_monitor,
+ "tty", NULL);
+ if (rc < 0)
+ return 0;
+
if (udev_monitor_enable_receiving(udev_monitor)) {
ErrorF("config/udev: failed to bind the udev monitor\n");
return 0;
@@ -236,6 +241,7 @@ config_udev_init(void)
if (!enumerate)
return 0;
udev_enumerate_add_match_subsystem(enumerate, "input");
+ udev_enumerate_add_match_subsystem(enumerate, "tty");
udev_enumerate_scan_devices(enumerate);
devices = udev_enumerate_get_list_entry(enumerate);
udev_list_entry_foreach(device, devices) {
--
1.6.6.1
--------------030804080003010102060203
Content-Type: text/x-patch;
name="0001-udev-Don-t-filter-subsystem-input.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="0001-udev-Don-t-filter-subsystem-input.patch"
More information about the xorg-devel
mailing list