Videos hang / freeze for a few seconds on Ubuntu 18.04

9,019

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

Share:
9,019
Matthias
Author by

Matthias

Updated on September 18, 2022

Comments

  • Matthias
    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
      SurvivalMachine almost 6 years
      You should post the solution as an answer instead of putting it into question.
  • smac89
    smac89 over 5 years
    I must say this solution was definitely unexpected
  • smac89
    smac89 over 5 years
    Downgrading kernel to fix youtube video issue...nah fam
  • Matthias
    Matthias over 5 years
    same for me :-) thankyou!!! now i can boot normally and everything works fine.
  • bummi
    bummi about 5 years
    Hi Obadah, please do not link to external resources, include your script here.
  • terdon
    terdon about 5 years
    I 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 the g modifier to replace all occurrences of splash. 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
    Admin about 2 years
    thank you so much!!!