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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communitySince 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?
disabling hardware acceleration in chrome helped me, installing new kernel didn't
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
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.
A litte late for the party. I know that the answer above is already accepted, but I want to share my experience which might be helpful for others. The problem was something to do with ACPI. I wrote a script which solves this problem automatically: Fix-video-lag-in-linux.
fix_lags.sh
#!/bin/bash
if grep -q acpi_rev_override "/etc/default/grub"; then
echo 'Found settings entry, nothing changed';
else
sudo sed -i 's/splash/splash acpi_rev_override=1/' /etc/default/grub
echo "Finished successfully. please reboot to apply the new settings"
fi
undo_fix.sh
#!/bin/bash
if grep -q acpi_rev_override=1 "/etc/default/grub"; then
sudo sed -i 's/splash acpi_rev_override=1/splash/' /etc/default/grub
echo "Reset finished successfully"
else
echo 'No settings found, exiting.';
fi
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.
– terdon
May 13 '19 at 11:18