Videos hang / freeze for a few seconds on Ubuntu 18.04
Solution 1
disabling hardware acceleration in chrome helped me, installing new kernel didn't
Solution 2
I experienced frequent random freezing of a few seconds too and disabling hardware acceleration did nothing for me (also, I don't see how the browser's hardware acceleration can affect the random freezing in other software in OP's case).
The solution in my case was to disable Intel hyperthreading from the BIOS of my machine.
Solution 3
to resolve the issue, simply install kernel 4.3.0 and everything works as expected!
copy/paste the following to terminal:
cd /tmp/
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-headers-4.3.0-040300-generic_4.3.0-040300.201511020949_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-headers-4.3.0-040300_4.3.0-040300.201511020949_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-image-4.3.0-040300-generic_4.3.0-040300.201511020949_amd64.deb
sudo dpkg -i *.deb
Run these commands and reboot, selecting kernel 4.3 in grub extended settings.
hope this helps, as it did for me.
best regards
Matthias
Updated on September 18, 2022Comments
-
Matthias over 1 year
Since the update to 18.04 every YouTube video and also locally played videos hang for a few seconds.
This can be temporarily "solved" by moving the mouse, but then it freezes again as the audio continues unaffected.
How can I fix this problem?
-
SurvivalMachine almost 6 yearsYou should post the solution as an answer instead of putting it into question.
-
-
smac89 over 5 yearsI must say this solution was definitely unexpected
-
smac89 over 5 yearsDowngrading kernel to fix youtube video issue...nah fam
-
Matthias over 5 yearssame for me :-) thankyou!!! now i can boot normally and everything works fine.
-
bummi about 5 yearsHi Obadah, please do not link to external resources, include your script here.
-
terdon about 5 yearsI included your script here, but this is a really bad idea. You are replacing any instance of the word "splash" without checking if this is the right line for it. This could break your grub installation. And you don't even keep a backup by using
sed -i.bak
or similar! Your original script was even more dangerous since you were using theg
modifier to replace all occurrences ofsplash
. This is either not needed (there should be only one, in fact your script depends on it) or actively dangerous in the unlikely case where there is more than one. -
Admin about 2 yearsthank you so much!!!