Article View: linux.gentoo.user
Article #271Re: [gentoo-user] Firefox slow to respond when playing Youtube video.
From: Jon Ensson
Date: Fri, 04 Dec 2026 03:50
Date: Fri, 04 Dec 2026 03:50
215 lines
10768 bytes
10768 bytes
On Thu, 03 Dec 2026 11:43:18 +0000
Michael <confabulate@kintzios.com> wrote:
> On Thursday, 3 December 2026 03:04:46 Greenwich Mean Time Dale wrote:
> > On 12/2/26 8:13 PM, Jon Ensson wrote:
> > > On Thu, 03 Dec 2026 00:32:56 +0000
> > >
> > > Michael <confabulate@kintzios.com> wrote:
> > >> On Wednesday, 2 December 2026 22:38:55 Greenwich Mean Time Dale
> wrote:
> > >>> I wouldn't know where to start looking for bugs that affect my
> > >>> hardware.
> > >>
> > >> You can start with the OEM hardware forums, and perhaps mailing
> > >> lists
> > >> and IRC channels if any exist.
> > >>
> > >>> I hate to say it but there is so much information, a lot of
> > >>> it useless, that searching for some things just results in useless
> > >>> garbage. It used to be that I could get a error, go to a search
> > >>> engine and paste that error in and hit return. I'd get a lot of
> > >>> good
> > >>> info that is about that error right at the top. After several
> > >>> hits,
> > >>> it might start getting fuzzy. Nowadays, it seems to just be fuzzy
> > >>> results from the start. Most of the time when I search for
> > >>> something, if I do find what I'm actually looking for, it is way
> > >>> down
> > >>> in the results and can take a while to ferret out. I have to say,
> > >>> duck duck go does better in a lot of ways.
> > >>
> > >> Try other search engines too, e.g. some based on Bing instead of
> > >> Google, in case they provide more relevant results on this
> > >> occasion.>>
> > >>> This is why I was asking for suggestions on what kind of card I
> > >>> should have to begin with.
> > >>
> > >> Have you concluded the cause of this problem is definitely your
> > >> current card and the solution must be to replace it?
> > >>
> > >>> Right now, it is working pretty well without hardware acceleration
> > >>> except that it is uses a lot of CPU. Gkrellm is going nuts where
> > >>> it
> > >>> used to be idle.
> > >>>
> > >>> Dale
> > >>>
> > >>> :-) :-)
> > >>
> > >> When an application is playing up I tend to start it from a
> > >> terminal and observe what is printed out when the problem
> > >> manifests. Then I search the interwebs for pointers on the
> > >> reported error or warnings. In your case you'll have to turn on
> > >> hardware acceleration on Firefox and then restart it from a
> > >> terminal.
> > >>
> > >> PS. Random results I came across which may contain some pointers
> > >> and
> > >> Firefox settings to help with your performance problem:
> > >>
> > >> https://aedrielkylejavier.me/blog/2024-07-04_my-firefox-about-confi
> > >> g-flags/
> > >>
> > >> https://gist.github.com/mrdemonbkgit/db6c5e0d332ab4dfdfbe2579dc5310
> > >> 75
> > >
> > > Hello Dale,
> > >
> > > One thing you should check is if youtube is software rendering.
> > > Because the P1000 in the support matrix does NOT support AV1.
> > > Most youtube codecs are currently in AV1, with VP9/H264 as a
> > > fallback these days. If you go to about:support and go look
> > > under "Media" you can see what version and codecs are supported.
> > > If only "software" is supported then something is not set
> > > up properly. You can check by right clicking the video and
> > > going to see "stats for nerds".
> > >
> > > Second, you may also need media-libs/nvidia-vaapi-driver, I
> > > am not sure how Quadro works on standard open drivers, I think
> > > their closed source ones work better and Pascal is depreciated
> > >
> > > after 580.You will likely need vidia-vaapi-driver for
> > >
> > > NVENC/NVDEC.
> > >
> > > See: https://developer.nvidia.com/video-encode-decode-support-matrix
> > > Also possibly needed plugin:
> > > https://github.com/alextrv/enhanced-h264ify
> > With about:support I found the section. I'm attaching a picture. It
> > appears my video card doesn't support hardware but only software for
> > all the codecs. So it seems that I need a video card that supports
> > that, correct? Basically, turning on hardware acceleration just
> > won't work.
> >
> > Given that, would the plugin help? Since the card doesn't seem to
> > support any of them, it sounds like no.
> >
> > Just for giggles, I ran glxgears and it does work. I recall at one
> > time that in some situations where something is not configured
> > properly that glxgears would not work which would lead to problems.
> > At this time, it does work. I get the little spinning gears.
> >
> > As I scrolled down, not really sure what I'm looking at here, I see a
> > section named Important Modified Preferences. The section that has
> > glx and several names, I see this a lot:
> > FEATURE_FAILURE_GLXTEST_FAILED So, in a Konsole glxgears works but
> > in Firefox it says it fails??? Are those two related and it should
> > work or is that normal? With this, I'm a blind squirrel. I just
> > happened to notice that. I wasn't looking for it. LOL
> >
> > It has a option to save that info. I can also save the page as a pdf
> > I think, I have a add-on installed to do that so should work. That
> > may be easier for you to search and such. Let me know if that might
> > be easier and quicker.
> >
> > If I understand that correctly, my card doesn't support that for
> > whatever reason. That would explain a lot. LOL
> >
> > Dale
> >
> > :-) :-)
>
> Your card *does* support hardware encoding/decoding for the media codecs
> shown in the developer.nvidia.com URL, including VP9, AVC and HEVC
> (although with a reduced chroma sampling @4:2:0).
>
> What your browser can access at this moment is a different question
> involving how it is configured (see the corresponding link in my
> previous post) and any supporting packages required. Your card is not
> too old, it is still supported by the current proprietary drivers:
>
> https://www.nvidia.com/en-us/drivers/details/257493/
>
> I think you need to spend some time checking settings and dependencies
> and see if the browser prints any warnings or missing libraries in a
> terminal.
Hardware decoding on nvidia-drivers requires the VA-API, which needs
package several packages, like libva, nvidia-vaapi-driver, libva-utils.
This is because firefox does not have native NVENC/NVDEC on build. This
also means that you will likely need to compile firefox and not use the
binary.
So you have been software decoding the entire time because you did not
have the configuration properly set up. I have a nvidia-card myself and
you can use this as a rough outline. It may differ on your setup.
From my recollection the following might be needed.
Use flags:
Mesa needs +vaapi
ffmpeg needs +vaapi
firefox MAY need +hwaccel see:
https://bugzilla.mozilla.org/show_bug.cgi?id=594876
Packages:
media-libs/libva media-libs/nvidia-vaapi-driver media-libs/libva-utils
Kernel:
Set options nvidia-drm modeset=1 fbdev=1 on kernel command line.
user launching must be in "render" group NOT "video".
Enviorment variables:
(xinitrc or on launch command)
export LIBVA_DRIVER_NAME=nvidia
export NVD_BACKEND=direct
(wrapper that launches firefox)
export MOZ_DISABLE_RDD_SANDBOX=1
about:config requires:
media.ffmpeg.vaapi.enabled
media.hardware-video-decoding.force-enabled
widget.dmabuf.force-enabled
gfx.x11-egl.force-enabled
vainfo should show something like this:
libva info: VA-API version 1.24.0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
Trying display: x11
vainfo: VA-API version: 1.24 (libva 2.24.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain12 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointVLD
VAProfileHEVCMain444_10 : VAEntrypointVLD
VAProfileHEVCMain444_12 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Check firefox for decode after that. Don't forget the
extension, since youtube is AV1 by default now. Without
the extention it will software decode to AV1.
Good luck,
Jon
Technical Details
Message-ID:
<O6st3-fRzi-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<O5oBc-fgvR-1@gated-at.bofh.it> <O64Ap-fECe-1@gated-at.bofh.it> <O65mO-fF1S-1@gated-at.bofh.it> <O6du2-fJy4-9@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Jon Ensson <bgaif@airmail.cc> Newsgroups: linux.gentoo.user Subject: Re: [gentoo-user] Firefox slow to respond when playing Youtube video. Date: Fri, 04 Dec 2026 04:50:01 +0100 Message-ID: <O6st3-fRzi-7@gated-at.bofh.it> References: <O5oBc-fgvR-1@gated-at.bofh.it> <O64Ap-fECe-1@gated-at.bofh.it> <O65mO-fF1S-1@gated-at.bofh.it> <O6du2-fJy4-9@gated-at.bofh.it> X-Original-To: gentoo-user@lists.gentoo.org, Dale <rdalek1967@gmail.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) List-ID: Gentoo Linux mail <gentoo-user.gentoo.org> Reply-To: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Approved: robomod@news.nic.it Lines: 215 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Michael <confabulate@kintzios.com> X-Original-Date: Thu, 3 Dec 2026 20:43:13 -0700 X-Original-Message-ID: <20261203204313.4d3d40c0@ZGC> X-Original-References: <354b3e06-5f9b-40f8-a5c4-5a6c8f12e6af@gmail.com> <20261202191315.6fe79205@ZGC> <1370555d-8ae4-49f1-81c3-02f4a30b059e@gmail.com> <gMntxJRURIOq2A87VETFFg@kintzios.com>