nvidia-vaapi-driver icon indicating copy to clipboard operation
nvidia-vaapi-driver copied to clipboard

HW acceleration not working in firefox 124.0.2

Open Vitaly76ASDgnaerkldbnak opened this issue 1 year ago • 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.

Vitaly76ASDgnaerkldbnak avatar Apr 06 '24 10:04 Vitaly76ASDgnaerkldbnak

Is there no difference in about:support?

mirh avatar Apr 10 '24 15:04 mirh

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

Vitaly76ASDgnaerkldbnak avatar Apr 10 '24 17:04 Vitaly76ASDgnaerkldbnak

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

mirh avatar Apr 12 '24 20:04 mirh

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?

Vitaly76ASDgnaerkldbnak avatar Apr 14 '24 11:04 Vitaly76ASDgnaerkldbnak

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

mirh avatar Apr 14 '24 15:04 mirh

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.

LocalRaccoonEnthusiast avatar Apr 22 '24 17:04 LocalRaccoonEnthusiast

ff 110 110 ff 125 125

Vitaly76ASDgnaerkldbnak avatar Apr 22 '24 22:04 Vitaly76ASDgnaerkldbnak

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

Vitaly76ASDgnaerkldbnak avatar Apr 22 '24 22:04 Vitaly76ASDgnaerkldbnak

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

mirh avatar Apr 23 '24 23:04 mirh

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...

Vitaly76ASDgnaerkldbnak avatar Apr 24 '24 06:04 Vitaly76ASDgnaerkldbnak

Did you remember MOZ_DISABLE_RDD_SANDBOX=1 and the dmabuf thing?

mirh avatar Apr 25 '24 11:04 mirh

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

Vitaly76ASDgnaerkldbnak avatar Apr 25 '24 12:04 Vitaly76ASDgnaerkldbnak

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

Vitaly76ASDgnaerkldbnak avatar Apr 25 '24 12:04 Vitaly76ASDgnaerkldbnak

Try firefox nightly https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries

mirh avatar Apr 26 '24 22:04 mirh

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.

Vitaly76ASDgnaerkldbnak avatar Apr 27 '24 09:04 Vitaly76ASDgnaerkldbnak

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

mirh avatar Apr 27 '24 16:04 mirh

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.

Vitaly76ASDgnaerkldbnak avatar Apr 28 '24 07:04 Vitaly76ASDgnaerkldbnak

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

elFarto avatar May 06 '24 09:05 elFarto

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.

mirh avatar May 06 '24 11:05 mirh

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.

Vitaly76ASDgnaerkldbnak avatar May 06 '24 12:05 Vitaly76ASDgnaerkldbnak

#210 had it working though?

mirh avatar May 06 '24 13:05 mirh

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

sekaiacg avatar May 18 '24 12:05 sekaiacg