From a764ee5158bcfa1f7277ce3e28751636b357181f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 7 Oct 2011 08:23:22 +0200 Subject: [PATCH] compositor-drm: Enumerate only cards with name card* To exclude /dev/dri/controlD* from the enumeration. --- compositor/compositor-drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 0f2f2c74..f3d61265 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -808,6 +808,7 @@ drm_compositor_create(struct wl_display *display, e = udev_enumerate_new(ec->udev); udev_enumerate_add_match_subsystem(e, "drm"); + udev_enumerate_add_match_sysname(e, "card[0-9]*"); udev_enumerate_scan_devices(e); drm_device = NULL;