[Feature requrest] nvidia offloading doesn't work on Wayland

Bug #1969130 reported by jeremyszu
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Invalid
High
Unassigned
mutter (Ubuntu)
Invalid
Undecided
Unassigned
nvidia-graphics-drivers-510 (Ubuntu)
Invalid
Undecided
Unassigned
xwayland (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Based on nvidia README, it supports X server only.
https://download.nvidia.com/XFree86/Linux-x86_64/510.54/README/primerenderoffload.html

It's a wishlist level for nvidia graphic.

jeremyszu (os369510)
Changed in oem-priority:
assignee: nobody → jeremyszu (os369510)
importance: Undecided → Critical
summary: - nvidia offloading doesn't work on Wayland
+ [Feature requrest] nvidia offloading doesn't work on Wayland
Changed in oem-priority:
status: New → Confirmed
importance: Critical → High
importance: High → Critical
description: updated
tags: added: oem-priority
jeremyszu (os369510)
Changed in oem-priority:
importance: Critical → High
assignee: jeremyszu (os369510) → nobody
tags: added: nvidia-wayland
tags: added: jammy wayland-session
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Confirmed
Changed in xwayland (Ubuntu):
status: New → Confirmed
Revision history for this message
Islam (islam) wrote :

This is a very important issue because there are some GLX apps doesn't work with PRIME offload so they need Nvidia to be the default.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Last I checked, this did work already. You should get a menu option like 'Launch using Discrete Graphics Card' when you right click on an app icon.

Please check if this works for you.

Changed in oem-priority:
status: Confirmed → Incomplete
Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: Confirmed → Incomplete
Changed in xwayland (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Islam (islam) wrote :

How would you use 'Launch using Discrete Graphics Card' if you are trying to run an app from nautilus? it doesn't show that option.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That would be a feature request for nautilus.

More generally I think whatever launches it just needs to set environment:

  __NV_PRIME_RENDER_OFFLOAD=1

Revision history for this message
jeremyszu (os369510) wrote :

okay, I can confirmed it works with latest packages from Jammy.

In both 'Launch using Discrete Graphics Card' and '__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia' cases.

But it doesn't work for firefox (mine is a snap version) so I think we are good to close this or switch to affect firefox.

Changed in oem-priority:
status: Incomplete → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The feature not working for snaps is unsurprising but also an important one for us to track.

Please either create a new bug for that or reopen and reword this bug to be about snapped apps only.

Changed in mutter (Ubuntu):
status: Incomplete → Invalid
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: Incomplete → Invalid
Changed in xwayland (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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