elFarto/nvidia-vaapi-driver

HW acceleration not working in firefox 124.0.2

Opened this issue · 22 comments

HW acceleration not working in firefox 124.0.2, since FF self upgrade, I didn't notice from what version it broke, but in version 110 it still works normal. I check this on nvidia drivers V525.147.05 and V545.29.06. Option widget.dmabuf.force-enabled is true, but in 124.0.2 it is not helping. BTW, HW acceleration in MPV works fine.

mirh commented

Is there no difference in about:support?

There are too many info in about:support, what exactly should I pay attention to?

mirh commented

The ones specifically about acceleration?
More or less everything in the graphics section, but decision log has the most important stuff.

In section media, in ff 110 there are H264 HW and VP8 HW, but in FF 125 there are only SWs. It seems obvious, but why FF 125 is not detecting HW acceleration?

mirh commented

Ok, and that's the symptoms. But it's the section right before to be telling you the causes.

image
This section should be telling a lot if you send it here. Mine isn't what the result is supposed to be and I'm still trying to fix it, but just so you know what section to pay attention to.

ff 110
110
ff 125
125

Maybe this can help, I'm totally frustrated in this. And I'm using NVD_BACKEND=direct in /etc/environment

mirh commented

Obviously those two errors are either the usual widget.dmabuf.force-enabled or media.hardware-video-decoding.force-enabled thing.

Even after enable media.hardware-video-decoding.force-enabled in FF 125 there is no video acceleration. In FF 110 without this was. So it seems, it's something else...

mirh commented

Did you remember MOZ_DISABLE_RDD_SANDBOX=1 and the dmabuf thing?

Alas, but all this options are set in both versions of FF.

In /etc/environment
NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia

I checked in FF 126.0b6 and it's works (stand along version). I think problem is in FF of kubuntu distribution, so it's no problem with nvidia-vaapi-driver. So the issue can be close, big thanks for helping me anyway.

mirh commented

Then it seems like you skipped widget.dmabuf.force-enabled...

No, it is set true in FF 125. For me it's clear that FF in ubuntu distributive in some way compiled without some essential thing that is not letting HW acceleration to function, maybe it's connected to dmabuf, maybe to something else. But when I download standalone version of FF 110 or later, than HW acceleration is here.
The solution for me is to use standalone version, not integrated.

From what I remember, Ubuntu tends to build Firefox without Wayland support which is necessary for DMA-BUF support to be included.

mirh commented

Wayland support has been built-in since at least some years by now, if any it wasn't until recent that the snap enabled it by default (but that's kinda a different story).

Speaking of ubuntu.. I just realized the version wasn't even reported here.

I'm using FF from PPA https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu in Kubuntu 22.04.3 LTS, any versions of FF from 124.x to 125.x. And I'm in X11 not Wayland.

mirh commented

#210 had it working though?

In addition to the recommended settings, I turned on hardware acceleration using the following additional settings on archlinux.
image

https://wiki.archlinux.org/title/firefox#Hardware_video_acceleration