From fe77fb6c34a5acc041ad45e1cd56168ce92c51dd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 23 Mar 2015 12:14:45 -0400 Subject: [PATCH] eeze: Fix issue of eeze_udev_watch_add not getting events for drm Summary: This fixes eeze_udev_watch_add for DRM events, Previously, we were not getting a watch callback fired due to using the wrong subsystem device type in udev_monitor_filter_add_match_subsystem_devtype. @fix Signed-off-by: Chris Michael --- src/lib/eeze/eeze_udev_watch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c index ec26b91..5a477b9 100644 --- a/src/lib/eeze/eeze_udev_watch.c +++ b/src/lib/eeze/eeze_udev_watch.c @@ -239,6 +239,10 @@ _get_syspath_from_watch(void *data, if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "drm"))) goto error; + + test = udev_device_get_property_value(device, "HOTPLUG"); + if ((!test) || (strcmp(test, "1"))) goto error; + break; case EEZE_UDEV_TYPE_BACKLIGHT: @@ -334,8 +338,7 @@ eeze_udev_watch_add(Eeze_Udev_Type type, break; case EEZE_UDEV_TYPE_DRM: - udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor", - NULL); + udev_monitor_filter_add_match_subsystem_devtype(mon, "drm", NULL); break; default: -- 2.7.4