Using sway with nvidia drivers
I'm using an i5-3570K and a NVIDIA RTX 2070 Super. I would like to use the nvidia package, since I have troubles with the nouveau drivers after recent updates.
After installing the nvidia driver package, I get the same error as described in this thread when running sway --my-next-gpu-wont-be-nvidia
The thread suggests to enable the necessary drivers, which would be nvidia in my case. Could someone help me out where and how to do this?
I had to disable the integrated GPU since I have a black screen when using the nvidia package. Since I don't want to use it anyway, it hopefully won't be a problem (?).
About this post
- Posted
- Archived
- Score
- 10 · 100% up
- Kind
- Text
- ID
- mxmb1a
8 comments
It is possible to run sway with nvidia blob, you need to use this wlroots fork. See README for caveats.
The Sway devs explictly state "All proprietary graphics drivers are unsupported". According to the Arch wiki, only GNOME, KDE, and a patched version of Weston will work for using Wayland with the proprietary Nvidia drivers
Thanks. I thought I could still run it, but without "support".
Using nvidia driver's with Wayland (including sway) is impossible at the moment because Nvidia is headstrong about using a different buffering protocol than basically everybody else. The Wayland developers don't want to spend time making Nvidias protocol work so it is what it is. Some distros/compositors have made the effort tho as somebody else pointed out, but I think sway is not included in that list.
It's not impossible, you just need to use the wlroots fork.
NVIDIA insists on EGLStreams instead of using GBM like everyone else. There are about 3 Wayland compositors with EGLStreams, they are Mutter (in GNOME), Kwin (in KDE Plasma) and Weston (which requires a patch). All other Wayland compositors, including Sway, support only GBM.
If you absolutely must use the NVIDIA driver, use X11 instead. It'll save you a lot of headache. i3 is very similar to Sway, look into that.
It is not possible to run sway on the nvidia driver, as it doesn't implement a compatible buffer allocation protocol. The long flag doesn't enable use of the nvidia driver – it prevents sway from aborting when the nvidia driver is loaded for another reason.
nvidia dkms kernel mode set