Ubuntu – it with Ubuntu / Linux, Youtube / HTML5 videos and the high CPU load

16.04chromiumcpufirefoxnvidia

I've been googling around for a few weeks now and trying all the different solutions, but I could neither find a working solution nor a satisfying answer to my question: Why does a Youtube HTML5 video on Ubuntu / Linux make the CPU go through the roof? Since I've found similar questions, I know it's not only me.

I have an Nvidia GeForce 660M and Intel Graphics on a Core i7 (with 8 cores).

Watching a 1080p video on Ubuntu 16.04 (with both Firefox and Chromium) the CPU load builds up to 100% over a few minutes, turning the video into a slide show and making the computer not usable at all. But streaming those videos with VLC or Totem is no problem whatsoever (that's why most solutions I've found so far suggest this workaround).

Watching the same videos on Windows (on the same laptop) does not really look differently from editing a Word file in terms of CPU load.

So this means the problem must be specifically related to the browser in combination with Linux / Ubuntu.

Yes, HTML5 is supported:

html5-support


Yes, I have Nvidia drivers installed:

enter image description here


Here's what chrome://gpu gives me:

enter image description here


So it seems like hardware acceleration for video decoding is not available. How can I make it available? Is it even possible? If no: Why not and will it ever be? Is there another configuration option that I'm missing?

It's 2017 and being able to watch funny cat videos in high quality on a decent computer should be a pretty basic thing!

Best Answer

Since your system has both Nvidia and Intel GPU, and the problem is found on every single browser you're using. It's definitely a problem with the drivers and not the browsers. Even though Chrome is not helping by not providing video hardware decoding. You should try using only the Intel GPU which has more stable drivers on Linux.

@Quasdunk reported that switching to the Intel GPU lowered significantly the load on the machine and now it's usable.

If you really want to use the Nvidia GPU, you should try upgrading your drivers using this ppa.

Related Question