Solution for high CPU load when using the flash player in the browser on Linux
September 17, 2014
For some time now I wondered why I had such a high CPU load while watching e.g. YouTube videos, even if I’ve a Nvidia GeForce GTX 760 in my PC. Ok thats not the latest card, but normal HD video should be accelerated with it also. 20% CPU load on my modern CPU is too much for a simple YouTube video:
The solution is quite easy – the flash player has disabled the hardware acceleration by default. Following steps need to be done to enable it – as I only have an Nvidia card I was only able to test it for it, but looking around I found some tips for the other cards too.
- Check if you’ve
libvdpau1
installed. On Ubuntu its done like this:
# dpkg -l | grep vdpau
ii libvdpau1:amd64 0.7-1 amd64 Video Decode and Presentation API for Unix (libraries) - You need a fitting graphics card driver:
- Nvidia: Nouveau and Closed Source driver should work
- AMD Radeon: You need the Mesa projects drivers (r300g, r600g or radeonsi)
- Intel: You need also following library/packaged installed:
libvdpau-va-gl1
(as Intel supports only the libva interface for video acceleration)
- You need (most likely) to create following file
/etc/adobe/mms.cfg
with following content. It is possible that the directory and file exists in this case add the lines:
EnableLinuxHWVideoDecode=1
OverrideGPUValidation=1 - Now you need to make sure that the player is not running anymore:
# ps aux | grep plugin-containe
robert 8246 0.1 0.9 798312 153260 ? Sl Sep16 0:57 /usr/lib/firefox/plugin-container /usr/lib/flashplugin-installer/libflashplayer.so -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 7066 true plugin
# kill 8246 - Now open the YouTube page again you tried before and top should show following – under 10% CPU Load, thats better.
3 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress
Entries and comments feeds.
Valid XHTML and CSS.
42 queries. 0.058 seconds.
Thank you! I have an Intel GPU on my laptop and did the libvdpau-va-gl1 using apt-get install, and created the mms.cfg as you describe… this on Linux Mint 17, and now CPU usage is 1/3 when playing a flash video. Thank you again!
Comment by David — November 16, 2014 #
Hey dude, thank you so much, my Toshiba laptop crashes because of high cpu consumption, do this, and now run like a charm.
Comment by vader_0001 — April 7, 2015 #
[…] y un usuario de Spotify en el trabajo), entonces, ahí entre a investigar, y me encontré con este articulo, y me puse manos a la […]
Pingback by Solución alto consumo de CPU por Flash Player en Linux | Another N00bster hits the net — April 10, 2015 #