michaelforney / swc

a library for making a simple Wayland compositor
MIT License
627 stars 53 forks source link

swc fails with unclear error on Linux < 3.17 without drm.rnodes=1 #27

Closed stapelberg closed 9 years ago

stapelberg commented 9 years ago

swc expects there to be a /dev/dri/renderD%d device node, but these only exist if you’re either on Linux ≥ 3.17 or setting the kernel command line parameter drm.rnodes=1.

While this problem will solve itself over time, I still think it’d be nice if the error message could be more verbose than “cannot open /dev/dri/renderD128” and include a hint on how to solve this problem :).