Hello.

I was able to get the latest version of sway working on my box after
getting the latest version of wlroots to work, which was after applying
the following patch to the latest version of libdrm (source obtained
from https://gitlab.freedesktop.org/mesa/drm.git). I don't know if we
have some patches somewhere else that handle this, but I figured I
would send it your way in case it would save some effort.

I also had to do

doas chmod $USER:$USER /dev/dri/* && env WLR_RENDERER=pixman startsway.sh

to get everything just right. And of course I applied the patches I
found in ports to sway and wlroots, but nothing else that I can think of.

~ 0$ pkg-config --modversion libdrm
2.4.119
~ 0$ pkg-config --modversion wlroots
0.18.0-dev
~ 0$ sway --version
sway version 1.9-dev-52eaa5be (Jan  3 2024, branch 'master')

diff --git xf86drm.h xf86drm.h
index 2cb14156..c91f157b 100644
--- xf86drm.h
+++ xf86drm.h
@@ -77,8 +77,8 @@ extern "C" {
 #define DRM_DEV_MODE    (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
 
 #ifdef __OpenBSD__
-#define DRM_DIR_NAME  "/dev"
-#define DRM_PRIMARY_MINOR_NAME  "drm"
+#define DRM_DIR_NAME  "/dev/dri"
+#define DRM_PRIMARY_MINOR_NAME  "card"
 #define DRM_CONTROL_MINOR_NAME  "drmC" /* deprecated */
 #define DRM_RENDER_MINOR_NAME   "drmR"
 #else

Reply via email to