michaelforney / swc

a library for making a simple Wayland compositor
MIT License
614 stars 52 forks source link

NVidia drivers don't work with SWC #54

Closed RossComputerGuy closed 1 year ago

RossComputerGuy commented 4 years ago

Most compositors I've tried lets me run them on top of an X server but it appears that I cannot do that with SWC.

running on /dev/tty4
[swc:libswc/drm.c:153] DEBUG: /dev/dri/card0 is the primary GPU
[swc:libswc/drm.c:275] ERROR: Could not enable DRM universal planes
[swc:libswc/swc.c:115] ERROR: Could not initialize DRM
RossComputerGuy commented 4 years ago

I did more testing, I think this is an NVidia issue.

RossComputerGuy commented 4 years ago

I tried running as root using pkexec and sudo but I kept on getting this error:

running on /dev/tty5
error: XDG_RUNTIME_DIR not set in the environment
RossComputerGuy commented 4 years ago

I finally got the XDG error to stop but I still get the errors:

[I] ➜ pkexec env XDG_RUNTIME_DIR=/run/user/1000 swc-launch $(pwd)/flip-compositor
running on /dev/tty3
[swc:libswc/drm.c:153] DEBUG: /dev/dri/card0 is the primary GPU
[swc:libswc/drm.c:275] ERROR: Could not enable DRM universal planes
[swc:libswc/swc.c:115] ERROR: Could not initialize DRM
michaelforney commented 1 year ago

swc requires a drm driver that implements universal planes.