Hi all,
Firefox starts with no problems, but subsequent rendering is underperforming :
- The about:support page shows Mesa – llvmpipe is used for rendering, i.e. software rendering
- Thunderbird’s about:support page shows hw rendering is used (Thunderbird isn’t in a Snap)
- glxgears -info shows the GPU is being used
- xeglgears -info shows the GPU is being used
The snap connections look fine to me :
$ snap connections firefox
Interface Plug Slot Notes
alsa firefox:alsa - -
audio-playback firefox:audio-playback :audio-playback -
audio-record firefox:audio-record :audio-record -
avahi-observe firefox:avahi-observe :avahi-observe -
browser-support firefox:browser-sandbox :browser-support -
camera firefox:camera :camera -
content[gnome-42-2204] firefox:gnome-42-2204 gnome-42-2204:gnome-42-2204 -
content[gtk-3-themes] firefox:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] firefox:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] firefox:sound-themes gtk-common-themes:sound-themes -
cups-control firefox:cups-control :cups-control -
dbus - firefox:dbus-daemon -
desktop firefox:desktop :desktop -
desktop-legacy firefox:desktop-legacy :desktop-legacy -
gsettings firefox:gsettings :gsettings -
hardware-observe firefox:hardware-observe :hardware-observe -
home firefox:home :home -
joystick firefox:joystick :joystick -
mount-control firefox:host-hunspell :mount-control -
mpris - firefox:mpris -
network firefox:network :network -
network-bind firefox:network-bind :network-bind -
network-observe firefox:network-observe - -
opengl firefox:opengl :opengl -
personal-files firefox:dot-mozilla-firefox :personal-files -
removable-media firefox:removable-media :removable-media -
screen-inhibit-control firefox:screen-inhibit-control :screen-inhibit-control -
system-files firefox:etc-firefox :system-files -
system-packages-doc firefox:system-packages-doc :system-packages-doc -
u2f-devices firefox:u2f-devices :u2f-devices -
unity7 firefox:unity7 :unity7 -
upower-observe firefox:upower-observe :upower-observe -
wayland firefox:wayland :wayland -
x11 firefox:x11 :x11 -
There’s a catch however : I have an Optimus laptop with an Intel iGPU and an Nvidia dGPU, and I don’t use it in the most traditional way :
- When I don’t use the dGPU, I set prime rendering to intel only (
prime-select intel
) and remove the dGPU from the PCI database - When I intend to use the dGPU, I rescan from the PCI hub connected to the GPU and switch back to nvidia (
prime-select nvidia
)
This is to ensure the dGPU remains off as much as possible when not needed, as well as to avoid slowdowns of the on-demand mode (prime-select on-demand
) which happens too often when some process is waiting for the dGPU despite not needing it, and to avoid rebooting unnecessarily.
So I’m pretty sure it’s linked to me removing and adding hardware from the system database, and something doesn’t get appropriately updated in the process. I tried restarting snapd
, but it didn’t change a thing.
Hence my question is : how could I make the Snap system aware of that hardware change ?
My OS is Ubuntu 23.10, and I run Firefox in a pure X11 Gnome 3 session.
Thanks for your insights !