ascent12 / drm_info

Moved to https://gitlab.freedesktop.org/emersion/drm_info
MIT License
63 stars 13 forks source link

Use drmGetDevices to list nodes #31

Closed emersion closed 5 years ago

emersion commented 5 years ago

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.

ascent12 commented 5 years ago

Thanks