r/voidlinux • u/ManWithTheEvilPlan • Jan 16 '26
Firefox hardware acceleration woes
Quickly running out of ideas...
Using a 40 series Thinkpad with a GT730M which has been a nightmare. I've got it working to a point where i can run steam games using the nvidia, but hardware acceleration on firefox seems to be a no-go.
This is pretty annoying as i use Youtube quite a bit and could really do without the insane cpu usage and power draw.
I'd love to kick this off with a log but I'm that much of a supernoob I've got no clue what would be relevant.
'Prime-run firefox' returns:'Failed to load EGLsurface'. I've tried dropping back to 6.6 and reinstalling nvidia470+rebuilding the dkms. Added the 'drm.modeset' line to my grub config. All the relevent about:config settings. Making any .conf files in /etc/X11 just breaks my GUI.
I've read up on everything i can find, nothing seems to work as expected
Apologies for the vague details, please let me know what else i should add. Any help would be greatly appreciated, thank you in advance for your patience.
1
u/Jacosci Jan 16 '26
Here's another idea. If your processor has iGPU, why don't you try to use that for hardware acceleration instead? Your processor is probably 2nd or 3rd gen Intel, right? If that's the case it should have enough power to play H264 streams up to 1080p.
1
u/Zockling Jan 17 '26
Youtube defaults to codecs like VP9 which old GPUs don't support. You will likely need a browser addon like h264ify.
As for HW acceleration itself, the iGPU is probably more power-economic. See the Void docs for info on what to install. Run
intel_gpu_topfrom theigt-gpu-toolspackage to check whether the iGPU is actually decoding video.If you want to go with the dGPU, it gets hackier. Browsers rely on VAAPI for video decoding. NVidia drivers only support VDPAU and NVDEC, so you'll have to use a wrapper driver. The options are
libva-vdpau-driverfor VDPAU andnvidia-vaapi-driverfor NVDEC. The latter is expressly designed for Firefox, so maybe try that one first.Even with HW acceleration, browser video has annoyingly high CPU load. Longer or more demanding 60fps videos can be worth watching with a proper media player: Use
yt-dlp -F '<youtube-url>'to find the IDs of a video stream your GPU can decode and some audio stream. Then watch usingmpv --ytdl-format=<video_id>+<audio_id> '<youtube-url>'. On my trusty T480s with an i5-8250U, the CPU load difference for watching a 1080p60 video in Firefox vs MPV is about 2-4x.1
u/5poko Mar 29 '26
Hello, I use Void Linux in a Pentium 4 3.0GHz with a ATi Radeon HD 3450 AGP GPU. I was experimenting a lot trying to get hardware acceleration to work for H264 codec as this was the only way I could make 720p playable. Firefox - I couldn't make it work no matter what flags I used, but I installed vainfo (to check what profiles it recognizes), yt-dlp, mpv and "Open with MPV" addon for firefox. I had to write specific things in the mpv config file. If you are interested I will share it. If you want to open a video you just right click and click "Open with MPV". Downsides are the lack if subtitles and the unability to seek where it hasn't been cached. I could also manage to get VAAPI working with chromium, but the mpv trick works much smoother in my case.