drm: udev scan only drm_minor, not connectors (#119)

This commit is contained in:
Ikalco 2024-12-16 19:58:49 -06:00 committed by GitHub
parent 3375378354
commit a132fa41be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,8 @@ static udev_enumerate* enumDRMCards(udev* udev) {
return nullptr; return nullptr;
udev_enumerate_add_match_subsystem(enumerate, "drm"); 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)) { if (udev_enumerate_scan_devices(enumerate)) {
udev_enumerate_unref(enumerate); udev_enumerate_unref(enumerate);