Skip to content

Commit

Permalink
drm: udev scan only drm_minor, not connectors (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalco authored Dec 17, 2024
1 parent 3375378 commit a132fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ static udev_enumerate* enumDRMCards(udev* udev) {
return nullptr;

udev_enumerate_add_match_subsystem(enumerate, "drm");
udev_enumerate_add_match_sysname(enumerate, DRM_PRIMARY_MINOR_NAME "[0-9]");
udev_enumerate_add_match_property(enumerate, "DEVTYPE", "drm_minor");
udev_enumerate_add_match_sysname(enumerate, DRM_PRIMARY_MINOR_NAME "[0-9]*");

if (udev_enumerate_scan_devices(enumerate)) {
udev_enumerate_unref(enumerate);
Expand Down

0 comments on commit a132fa4

Please sign in to comment.