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 &
- 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
Code: Select all
systemctl --user status plasma-plasmashell