wayland + nvidia: driver not used when running in a wayland session

Bug #2037544 reported by Ken VanDine
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

We've discovered that the nvidia driver isn't being utilized when running in a wayland session for snaps. Confirmed with both firefox and steam. Both work fine on nvidia in an X session.

Originally reported on the forum at:
https://forum.snapcraft.io/t/snaps-dont-detect-nvidia-driver-in-wayland/35065/26

From steam when run on wayland:

lspci:
    01:00.0: NVIDIA Corporation TU117GLM [Quadro T2000 Mobile / Max-Q] (rev a1)
glxinfo:
    gpu: llvmpipe (LLVM 15.0.7, 256 bits)
    gpu_version: 4.5 (Core Profile) Mesa 23.1.8 - kisak-mesa PPA

Note: in an X session the gpu is properly reflected and we do get accelerated graphics in both firefox and steam.

Revision history for this message
Ken VanDine (ken-vandine) wrote :

I'm not sure if this is a real fix or just a workaround, but was able to fix this issue for firefox by staging libnvidia-egl-wayland1 in gnome-42-2204 and set __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS in the desktop-launch script

For reference:

https://github.com/ubuntu/gnome-sdk/pull/178
https://github.com/snapcore/snapcraft-desktop-integration/pull/18/files

This hasn't fixed steam, we're still investigating that.

Revision history for this message
Maximiliano Bertacchini (maxiberta) wrote :

Updating gnome-42-2204 to revision 145 on edge enabled WebRender hardware acceleration in Firefox for me. Thanks!

Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

Hi Ken, is this issue already solved with this workaround? Should we close this issue?

Revision history for this message
Maximiliano Bertacchini (maxiberta) wrote :

> Hi Ken, is this issue already solved with this workaround? Should we close this issue?

The proposed fix was reverted shortly after landing, and hardware acceleration in Firefox on Wayland is still broken for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.