-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Nvidia mode not fully working in Wayland #178
Comments
I've been looking at other issues and it seems that the reason Nvidia mode is not supported on Wayland is Nvidia not having proper Wayland support? This is no longer the case however, as Nvidia drivers starting from driver version 555 have proper Wayland support now. So could this be reconsidered? Is it possible to add Nvidia mode support now? |
I have the same problem, version 555 driver, I use wayland and envycontrol, but the applications use embedded graphics, although nvidia mode is set |
Wayland is not supported as it requires a DE/WM specific logic to override the primary GPU. I remember GNOME has a setting for that but at the time I tested Nvidia had completely broken Wayland support (only external screens worked and it was prone to crashes). For KDE I’m not sure. |
On kde plasma wayland you can choose which device to use as the primary device by using the KWIN_DRM_DEVICES environment variable. You do it like this |
FWIW, I have successfully added GPU preference using the freedesktop.org .desktop file configuration. I did this for the kitty terminal for example. I copied the kitty.desktop file into ~/.local/share/applications/kitty.desktop and added the following line: Setting it to false does not preclude it from using the discrete GPU, but certain apps (like VS Code) will switch to the integrated GPU when set to false (at least in my experience). Be aware that, as the docs linked above suggests, support for this hint is WM/DE (as @bayasdev said above) and app specific. So, @Impeta you might try creating a custom firefox.desktop file with PrefersNonDefaultGPU=false as an additional thing to try. If that doesn't work try setting it to true since you have configured the nvidia GPU to be your default. On my system the installed file is at: FYI - here is my setup: |
Describe the bug
When using Nvidia mode, I expect every piece of software to only see and use the Nvidia GPU. However, many pieces of software, such as Blender (!), GPU Screen Recorder, Firefox, etc, as well as Wayland itself, run on the Intel GPU unless I launch them with the
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
env vars. I wouldn't expect these env vars to ever be necessary when using Nvidia mode. This doesn't seem to be the case in X11.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All software should be running on the Nvidia GPU
Screenshots
Not applicable
System Information:
The text was updated successfully, but these errors were encountered: