Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 19528  / 1 Year ago, fri, december 16, 2022, 12:28:32

I'm running a fresh install of Xubuntu 12.04 and I'd like to know how can I activate my nVidia card's GPU acceleration inside the latest stable Chromium. I wanted to play an MP4 file without the CPU firing to 100%.



I've installed mplayer and vdpau (and they work fine), but so far I haven't been able to use them inside Chromium. A couple of years ago, I used gecko-mediaplayer but the plugin's been blacklisted...



Any ideas?



Here's the output of glxinfo | grep render:



direct rendering: Yes
OpenGL renderer string: GeForce GT 520M/PCIe/SSE2
GL_NV_blend_square, GL_NV_compute_program5, GL_NV_conditional_render,
GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
GL_NVX_conditional_render, GL_NVX_gpu_memory_info,


and here's the output of lspci | grep -i vga:



02:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 520M] (rev a1)


Chromium is churning out a lot of warnings whenever I open the page, as you can see here and I've just found out a promising lead, lost in a sea of performance warnings:



NVIDIA: could not open the device file /dev/nvidia0 (Operation not permitted).


After adding the user to the video group, Chromium is now unable to play MP4's at all (yup, not even using the CPU). I got the same error messages as before, but a new one popped up as well:




[4296:4296:0827/100001:ERROR:gpu_video_decode_accelerator.cc(208)] Not implemented reached in void content::GpuVideoDecodeAccelerator::Initialize(media::VideoCodecProfile, IPC::Message*)**HW video decode acceleration not available**.

More From » chromium

 Answers
6

TL;DR: Unless you have tried everything below and now you get a black screen hitting this particular fixed bug, your problem should be solved by now. If you now get:



ERROR:gpu_video_decode_accelerator.cc(208)] Not implemented reached in void content::GpuVideoDecodeAccelerator::Initialize(media::VideoCodecProfile, IPC::Message*) HW video decode acceleration not available.


after trying everything below, then you should try starting Chrome/ium with --disable-gpu-sandbox or --blacklist-accelerated-compositing. If problems persists, revert all changes and report a bug detailing what is your problem, what have you tried, and all the data possible: about:gpu, about:version, the drivers you are using, kernel version, etc. For the ones that still want to test their luck, use the switch mentioned earlier, does that are having issues with AMD cards, the "Forcing Chrome/ium to use HWA" section works for you. Those using Nvidia privatives drivers or the xorg-ppa-edge, should test with Firefox and see if the issue happens there too.



Nvidia permissions problems




NVIDIA: could not open the device file /dev/nvidia0 (Operation not permitted).




This means that you are not part of the video group. This is solved as easy as you could be:



sudo adduser Hal video


Then restart your session and you are there.



Source: http://forums.gentoo.org/viewtopic-p-7232328.html?sid=900a2d59cdb52e1a5f530598dfa1be24#7232328



Forcing Chrome/ium to use HWA



You should check your about:gpu section in Chrome/ium. In older PC's HW Acceleration is disabled by default and you only can enable it by overriding the settings in the about:flags.




  • Open the about:flags in your address bar

  • Look for Override software redendering list

  • Click "Enable"

  • Restart Chrome/ium



You can also start chrome using chrome --ignore-gpu-blacklist but having to do so each time is not ideal.



This is my GPU page



THis is my flags


[#29810] Saturday, December 17, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
splenueak

Total Points: 448
Total Questions: 118
Total Answers: 110

Location: Vanuatu
Member since Mon, Oct 3, 2022
2 Years ago
splenueak questions
Tue, Aug 24, 21, 09:07, 3 Years ago
Sat, Apr 23, 22, 15:14, 2 Years ago
Thu, Jun 10, 21, 17:43, 3 Years ago
Mon, Sep 20, 21, 15:19, 3 Years ago
;