KDE Linux/Enable hardware acceleration for Firefox on NVIDIA GPUs
Appearance
To enable hardware acceleration for Firefox on NVIDIA GPUs, follow these steps:
- Install the
org.freedesktop.Platform.ffmpeg-fullFlatpak using the following command:flatpak install org.freedesktop.Platform.ffmpeg-full/x86_64/24.08
- After the ffmpeg Flatpak has been installed, follow the steps from the Arch Wiki for enabling hardware acceleration for Firefox. They involve setting some specific flags in
about:config. The only necessary step should be to setmedia.hardware-video-decoding.force-enabledtotrue. - Next, override the application-specified runtime requirements for Firefox using this command:
flatpak override --user --filesystem=host-os --env=LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri org.mozilla.firefox
- To check if hardware acceleration is now working, go to the
about:supportpage on Firefox and look at the "Codec Support Information" table, under the "Hardware decoding" column. Hardware decoding should now be supported for h264, VP9, AV1, and HEVC at the minimum.