Discrete GPU is not used even when using "Launch using dedicated graphics card" option

Bug #1967478 reported by Pierre Equoy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Image: 22.04 beta
Device: Dell Precision 7760 (with NVIDIA Corporation GA104GLM [RTX A5000 Mobile] GPU)
Desktop: GNOME running Wayland
Firefox snap: 98.0.2-1 (1154)

Summary
=======

Firefox, a snap application, does not see the Discrete GPU, even when run using the appropriate option ("Launch using Discrete Graphics Card"). The problem does not seem to happen with non-snap applications.

Steps to reproduce
==================

1. Install 22.04 beta image using third party software (nvidia proprietary drivers)
2. Launch Firefox by left-clicking on the icon
3. Go to about:support, and check the GPU information
4. Close Firefox
5. Right click on Firefox icon, and select "Launch using Discrete Graphics Card"
6. Repeat step 3

Expected result
===============

In step 3, the Active GPU should be the Integrated GPU (in my case, Intel).
In step 6, the Active GPU should be the Discrete GPU (in my case, Nvidia).

Actual result
=============

In both step 3 and step 6, the active GPU is the integrated one:

Graphics
--------

GPU #1
Active: Yes
Description: Mesa Intel(R) UHD Graphics (TGL GT1)
Vendor ID: 0x8086
Device ID: 0x9a70
Driver Vendor: mesa/iris
Driver Version: 21.0.3.0
RAM: 0
GPU #2
Active: No
Vendor ID: 0x10de
Device ID: 0x24b6

It might be a snap problem, because if I run the same test with a non-snap application (e.g. Terminal), it works as expected:

1. Open the terminal application, and run (you may have to install mesa-utils package):

$ glxinfo | grep "OpenGL vendor"
OpenGL vendor string: Intel

2. Close the terminal, right click on its icon, select "Launch using Discrete Graphics Card" and repeat step 1:

$ glxinfo | grep "OpenGL vendor"
OpenGL vendor string: NVIDIA Corporation

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: firefox 1:1snap1-0ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 1 15:46:39 2022
InstallationDate: Installed on 2022-04-01 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Beta amd64 (20220329.1)
Snap.Changes: no changes found
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Pierre Equoy (pieq) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :

More logs coming from sosreport.

Pierre Equoy (pieq)
summary: - Dsicrete GPU is not used even when using "Launch using dedicated
+ Discrete GPU is not used even when using "Launch using dedicated
graphics card" option
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in firefox (Ubuntu):
status: New → Confirmed
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.