Home
Solus
Search
Configure Global Search
Log In
Transactions
T10554
Change Details
Change Details
Old
New
Diff
This task outlines the procedure for testing that ffmpeg-driven VAAPI acceleration in Firefox is considered "working". **Prerequisites:** - Navigate to `about:config` and add the property `` - Restart FF and navigate to `about:support` and check for (...) ## YouTube tests: (... show how to "lock" FF to specific codecs ...) Test the following video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Twitch tests: IF and only if the above works, test the following Twitch video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Report format example: (...)
This task outlines the procedure for testing that ffmpeg-driven VAAPI acceleration in Firefox is considered "working". For this test to pass, when Firefox is playing videos, we verify the GPU on the system is used for rendering. **Prerequisites:** - Make sure you're logged into a Wayland session - If you have an **nVidia GPU** there's a little extra setup: - The nvidia-vaapi-driver and nvidia-glx-driver packages must be installed - You need to add a kernel boot flag. Create the file `/etc/kernel/cmdline.d/10-nvidia.conf` and add `nvidia-drm.modeset=1`, then reboot. - Run `sudo clr-boot-manager mount-boot` - UEFI: Check `cat /boot/loader/entries/Solus-*.conf | grep nvidia-drm.modeset=1` - BIOS: Check `sudo cat /boot/grub/grub.cfg | grep nvidia-drm.modeset=1` - Verify that `dmesg | grep nvidia-modeset` returns output - Verify that the kernel is currently loaded with nvidia-modeset with `grep nvidia-drm.modeset /proc/cmdline` - The following environment variables need to be set in your bashrc / zshrc / fish_variables: ``` MOZ_DISABLE_RDD_SANDBOX = 1 EGL_PLATFORM = wayland __EGL_VENDOR_LIBRARY_FILENAMES = /usr/share/glvnd/egl_vendor.d/10_nvidia.json ``` **GPU Check** - Firefox requires a GPU with support for OpenGL 3.2 or newer or GLES 3.0 or newer to enable hardware acceleration. Verify your hardware supports this with `glxinfo | grep "profile version"` for OpenGL and `eglinfo | grep version` for GLES **Firefox setup** - In Firefox, navigate to `about:config` - Look for the property `media.ffmpeg.vaapi.enabled`. Create it if it doesn't exist. Set this to "true". Ensure the following values are set as follows: - `widget.dmabuf.force-enabled` true - `media.rdd-ffmpeg.enabled` true - `gfx.x11-egl.force-enabled` true - 'gfx.webrender.software' false - Restart FF and navigate to `about:support` and check these under the GPU section: - Under Graphics, "Compositing" should be "WebRender" (not "WebRender (Software)") - Under GPU#1, "VAAPI" should have - available by default - force_enabled by user: Force enabled by pref (not present for Intel) - blocklisted by env: Blocklisted by gfxinfo (not present for Intel) ## nVidia test: 1. Start Firefox with just one tab open. 1. In terminal run `nvidia-smi`. Note any firefox processes and the Memory-Usage. 1. Start up a YouTube video. 1. Re-run `nvidia-smi`. If there is another firefox process, and the Memory-Usage increases, this verifies that Firefox is using hardware rendering. ## YouTube tests: (... show how to "lock" FF to specific codecs ...) Test the following video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Twitch tests: IF and only if the above works, test the following Twitch video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Report format example: (...)
This task outlines the procedure for testing that ffmpeg-driven VAAPI acceleration in Firefox is considered "working"
. For this test to pass, when Firefox is playing videos, we verify the GPU on the system is used for rendering
. **Prerequisites:**
- Make sure you're logged into a Wayland session
- If you have an **nVidia GPU** there's a little extra setup: - The nvidia-vaapi-driver and nvidia-glx-driver packages must be installed - You need to add a kernel boot flag. Create the file `/etc/kernel/cmdline.d/10-nvidia.conf` and add `nvidia-drm.modeset=1`, then reboot. - Run `sudo clr-boot-manager mount-boot` - UEFI: Check `cat /boot/loader/entries/Solus-*.conf | grep nvidia-drm.modeset=1` - BIOS: Check `sudo cat /boot/grub/grub.cfg | grep nvidia-drm.modeset=1` - Verify that `dmesg | grep nvidia-modeset` returns output - Verify that the kernel is currently loaded with nvidia-modeset with `grep nvidia-drm.modeset /proc/cmdline` - The following environment variables need to be set in your bashrc / zshrc / fish_variables: ``` MOZ_DISABLE_RDD_SANDBOX = 1 EGL_PLATFORM = wayland __EGL_VENDOR_LIBRARY_FILENAMES = /usr/share/glvnd/egl_vendor.d/10_nvidia.json ``` **GPU Check** - Firefox requires a GPU with support for OpenGL 3.2 or newer or GLES 3.0 or newer to enable hardware acceleration. Verify your hardware supports this with `glxinfo | grep "profile version"` for OpenGL and `eglinfo | grep version` for GLES **Firefox setup** - In Firefox, navigate to `about:config` - Look for the property `media.ffmpeg.vaapi.enabled`. Create it if it doesn't exist. Set this to "true". Ensure the following values are set as follows: - `widget.dmabuf.force-enabled` true - `media.rdd-ffmpeg.enabled` true - `gfx.x11-egl.force-enabled` true
-
Navigate to `about:config` and add the property ``
'gfx.webrender.software' false - Restart FF and navigate to `about:support` and check these under the GPU section: - Under Graphics, "Compositing" should be "WebRender" (not "WebRender (Software)")
-
Restart FF and navigate to `about:support` and check for (...)
Under GPU#1, "VAAPI" should have - available by default - force_enabled by user: Force enabled by pref (not present for Intel) - blocklisted by env: Blocklisted by gfxinfo (not present for Intel) ## nVidia test: 1. Start Firefox with just one tab open. 1. In terminal run `nvidia-smi`. Note any firefox processes and the Memory-Usage. 1. Start up a YouTube video. 1. Re-run `nvidia-smi`. If there is another firefox process, and the Memory-Usage increases, this verifies that Firefox is using hardware rendering.
## YouTube tests: (... show how to "lock" FF to specific codecs ...) Test the following video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Twitch tests: IF and only if the above works, test the following Twitch video(s) and use right-click -> stats for nerds to check that HW accel is enabled - (...) - (...) ## Report format example: (...)
Continue