So I have recently switched to Ubuntu 18.04. LTS and I'm getting a lot of screen tearing especially during video playback on e.g. YouTube. Could anybody help me fix this? Note that I'm completely new to Linux.
There is a video here that fixed it for me. The short version for Ubuntu 19, is that I had to open "Startup Applications" and add a new item with the command:
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
I get fixed by turning off hardware acceleration in browser setting. I experienced youtube tearing every time with every version of anything. My system was Intel i3-4th gen with intel HD graphics.
For Firefox do this:
layers.acceleration.force-enabled
(default isfalse
). This forces Hardware Acceleration to turn on.true
by double-clicking.There is a video here that fixed it for me. The short version for Ubuntu 19, is that I had to open "Startup Applications" and add a new item with the command:
Make sure that you have hardware acceleration enabled in your browser and supported by your GPU driver.
Google Chrome / Chromium
For debug open this URL (paste it into your address bar):
Firefox
For debugging, open this URL (paste it into your address bar):
and look for Graphics info.
Checking GPU drivers
To check what driver is in use open terminal and run:
then press /, type
VGA
and press ENTER.In the VGA section you'll see your video card model, available drivers and drivers in-use.
Example:
Depending on your graphics card you may want to switch between open source and proprietary driver.
Open source drivers are better for 2D rendering, but have lower performance for 3D acceleration.
Switching drivers
Go to System settings → Updates → Settings → Additional drivers.
You should be able to also open this tab via terminal with:
Then you can switch between drivers, then reboot your PC.
Intel graphics
For Intel integrated graphics go to: https://01.org/linuxgraphics/downloads/
NVIDIA screen tearing
You may find these answers useful:
If you have an Intel driver (check with
lspci
command) simply create a file:with content:
Then reboot.
This helped me to remove screen tearing and flickering.
I used to have the same problem and I fixed it just simply by changing the refresh rate in the display settings. Instead of using 60Hz I used 59.96Hz
I get fixed by turning off hardware acceleration in browser setting. I experienced youtube tearing every time with every version of anything. My system was Intel i3-4th gen with intel HD graphics.