Skip to content

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 (?).

10 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
mxmb1a

Author

12
posts
19
comments
4
media
View profile

8 comments

It is possible to run sway with nvidia blob, you need to use this wlroots fork. See README for caveats.

9 points

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.

5 points

It's not impossible, you just need to use the wlroots fork.

1 points

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.

5 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.