[INFO] Getting Firefox working with NVIDIA on Wayland

Post Reply
User avatar
fennec
Crewman
Posts: 82
Joined: Wed Dec 28, 2022 9:54 pm
Location: UK
Contact:

I've had success getting Firefox to run solely using the discrete NVIDIA GPU on Wayland.
Note. This has only been tested on Plasma and not any other DEs, but theoretically could work elsewhere too.

I run the following script.

Code: Select all

#!/usr/bin/env sh
MOZ_ENABLE_WAYLAND=1 __NV_PRIME_RENDER_OFFLOAD=1  __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia /usr/lib/firefox/firefox &
To validate that Firefox is using the NVIDIA GPU:
  • check nvidia-smi it should show Firefox as a running process
  • check about:support inside Firefox, and look for WebGL 1 Driver Renderer it should show your NVIDIA GPU
Additionally, if you are on Plasma check the Plasmashell service does not list Firefox as a running process.

Code: Select all

systemctl --user status plasma-plasmashell
Ben03
recruit crewman
Posts: 1
Joined: Thu Feb 23, 2023 7:36 am

Hello,

Thanks for sharing your experience with running Firefox using the discrete NVIDIA GPU on Wayland. It's great to hear that you have found success with this approach. It's impressive how artificial intelligence has enabled us to optimize our hardware usage and improve performance for applications like Firefox. I hope others find your script and instructions helpful in improving their own Firefox performance.
My website about chatbot
Post Reply

Return to “Tips and Tricks”