! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Use the correct drm/dri device on OpenBSD
Status:
RESOLVED: FIXED

Comments

Description Landry Breuil editbugs 2015-01-25 10:52:56 CET
src/compositor.c hardcodes /dev/dri/card0 which is not the correct device on OpenBSD.. when i enable the comopositor on openbsd, i get this warning on stderr:

xfwm4-WARNING **: Error opening /dev/dri/card0: No such file or directory 

-#define DRM_CARD0             "/dev/dri/card0"
+#define DRM_CARD0             "/dev/drm0"

worksaround the issue for me on OpenBSD, but that'd ask for proper #ifdef goo, and check support for FreeBSD and NetBSD.

http://netbsd.gw.com/cgi-bin/man-cgi/man?radeondrm+4+NetBSD-current seem to say that NetBSD also uses /dev/dri/card0
https://www.freebsd.org/cgi/man.cgi?query=drm&sektion=7&apropos=0&manpath=FreeBSD+10.1-RELEASE+and+Ports seem to confirm the same for FreeBSD.

So maybe

#ifdef __OpenBSD__
#define DRM_CARD0 "/dev/drm0"
#else
#define DRM_CARD0             "/dev/dri/card0"
#endif
Comment 1 Olivier Fourdan editbugs 2015-01-26 21:52:26 CET
Pushed, thanks!

Bug #11478

Reported by:
Landry Breuil
Reported on: 2015-01-25
Last modified on: 2015-01-26

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information