Jump to content

KDE Linux/Enable hardware acceleration for Firefox on NVIDIA GPUs

From KDE Community Wiki

Proposed for Deletion

This page has been proposed for deletion for the following reason:

Hardware acceleration for Firefox on NVIDIA GPUs is on by default since this commit

Please use the discussion section of this page to voice your opinion on this.


To enable hardware acceleration for Firefox on NVIDIA GPUs, follow these steps:

  1. Install the org.freedesktop.Platform.ffmpeg-full Flatpak using the following command:
    flatpak install org.freedesktop.Platform.ffmpeg-full/x86_64/24.08
    
  2. 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 set media.hardware-video-decoding.force-enabled to true.
  3. 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
    
  4. To check if hardware acceleration is now working, go to the about:support page 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.