I use the following command to open Firefox.
Code: Select all
MOZ_ENABLE_WAYLAND=1 __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia firefox
Code: Select all
[GFX1-]: Wayland protocol error: [destroyed object]: error 7: importing the supplied dmabufs failed
Gdk-Message: 10:40:31.344: Error 71 (Protocol error) dispatching to Wayland display.
Exiting due to channel error.
Exiting due to channel error.
The latest version of that package = egl-wayland-2:1.1.12
Downgrading to version egl-wayland-2:1.1.11 fixed the issue, and I can now use Firefox on the NVIDIA GPU.
nvidia-smi also reports correctly the Firefox process as running.
A few references.
- https://bugs.kde.org/show_bug.cgi?id=471559
- https://github.com/NVIDIA/egl-wayland/issues/83
The last link mentions this is an issue with KWin, which resulted in someone opening a Plasma bug report.
So at the moment the root cause looks like an issue with some recent changes to KWin.