Skip to content

Use drmGetDevices to list nodes

Simon Ser requested to merge github/fork/emersion/get-devices into master

There's no guarantee that DRM primary nodes start at card0. I've run into a system where the first card is card1 (probably because the driver has been unloaded/reloaded?). Because of this drm_info wasn't dumping any data.

Instead, we can use drmGetDevices which returns a list of DRM devices and nodes available on the system.

Merge request reports