Skip to content

Commit

Permalink
drm: limit udev drm_minor to Linux after a132fa4 (#129)
Browse files Browse the repository at this point in the history
Not implemented by libudev-devd yet:

[ERR] [AQ] drm: No gpus in scanGPUs.
[ERR] [AQ] drm: Found no gpus to use, cannot continue
[ERR] [AQ] DRM Backend failed
  • Loading branch information
jbeich authored Jan 7, 2025
1 parent 4846091 commit 5bc315e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ static udev_enumerate* enumDRMCards(udev* udev) {
return nullptr;

udev_enumerate_add_match_subsystem(enumerate, "drm");
#ifdef __linux__
// https://github.com/wulf7/libudev-devd/issues/11
udev_enumerate_add_match_property(enumerate, "DEVTYPE", "drm_minor");
#endif
udev_enumerate_add_match_sysname(enumerate, DRM_PRIMARY_MINOR_NAME "[0-9]*");

if (udev_enumerate_scan_devices(enumerate)) {
Expand Down

0 comments on commit 5bc315e

Please sign in to comment.