Deferent graphics cards
godalming123 opened this issue · comments
For some reason, I do not have /dev/dri/card0
on my laptop, but instead, only /dev/dri/card1
while reading the source code of another DRM demo, I found a comment mentioning using libudev for "real" hot plugging and multiple seats instead of hard coding /dev/dri/card0
in. Could you explain what this is and potentially write a 4th tutorial that does this for me.
SideNote: this project is incredibly useful, I simply could not find another DRM demo that has such good documentation on how these systems work, or even implements vsynced page flips.
Neither libudev nor multi-seat would help here. Instead, drmGetDevices()
can be used to find a KMS device.