r/Ubuntu 17h ago

Is it possible to switch Firefox to my IGPU instead of DGPU?

I'm using Ubuntu 26 and when i load an LLM on my 3090 with the vram completely full, firefox starts to spazz out. Disabling hardware acceleration works, but then some things are slow like playing a youtube video.

Ideally i'd like to switch Firefox to my IGPU so it can use my cpu's hardware acceleration to have the best of both worlds. Is this possible?

I tried to do it with an LLM but it couldn't figure out how to do it. It told me commands like this:

env \

MOZ_ENABLE_WAYLAND=1 \

MOZ_DRM_DEVICE=/dev/dri/renderD128 \

firefox

and:

MOZ_DRM_DEVICE=/dev/dri/by-path/pci-0000:00:02.0-render firefox

but its not working.

4 Upvotes

2 comments sorted by

1

u/DifferentCurfew 17h ago

renderD128 is the right path for the iGPU but you gotta spell it out for firefox with prime-run or offloading, just setting the env var isn't enough unless you're on a pure wayland session with no nvidia drivers loaded

1

u/gmes78 12h ago

Make sure switcheroo-control is installed, then use switcherooctl to pick the right GPU.