Changeset View
Changeset View
Standalone View
Standalone View
sysutils/consolekit2/files/patch-src_ck-device-udev.c
- This file was added.
How CK sees our drm devices: | |||||
major 1 minor 104 subsystem # sysname 0 devnode /dev/drm/0 active ? TRUE | |||||
(seems like symlinks get resolved) | |||||
--- src/ck-device-udev.c.orig 2019-01-05 13:32:00 UTC | |||||
+++ src/ck-device-udev.c | |||||
@@ -391,9 +391,9 @@ ck_device_new (guint major, | |||||
/* Start with other device as a default, we have special things | |||||
* we do with DRM and EVDEV devices so find and tag them */ | |||||
device->category = DEVICE_OTHER; | |||||
- if (g_strcmp0 (subsystem, "drm") == 0) | |||||
+ if (g_strcmp0 (subsystem, "drm") == 0 || strstr (device->devnode, "drm") != NULL) | |||||
{ | |||||
- if (g_str_has_prefix (sysname, "card")) | |||||
+ //if (g_str_has_prefix (sysname, "card")) | |||||
{ | |||||
g_debug ("DEVICE_DRM"); | |||||
device->category = DEVICE_DRM; |