I'm using mpv on Ubuntu 20.04 LTS. I was facing screen tearing when playing videos, therefore to fix this I enabled the "TearFree" option by adding the following line to the configuration file: /etc/X11/xorg.conf.d/20-intel.conf

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"

  Option "TearFree" "true"

But after doing so the videos wouldn't play at all. mpv crashes everytime with 'Segmentation fault'. If I revert the changes it would play again but the screen tearing reappears.

Output of lspci -nn | egrep -i "3d|display|vga"

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09)
04:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] [1002:6820] (rev 81)
  • 1
    Hi gorlomi! Can you give us a bit more info about your system/setup? What GPU do you have? (You can find it under System Settings > Info or by typing lspci | grep VGA into a terminal.) Have you tried different media players, e.g. VLC? (Install that from the Ubuntu Software Center.) – Béné May 24 '20 at 20:57
  • I already had VLC deb version installed which too was crashing. I uninstalled it and tried the snap version of VLC.Snap version is working fine – gorlomi May 25 '20 at 9:44
  • Thanks a lot! Same problem here (Lenovo T580) :) gelma ~ $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) – Gelma Nov 27 '20 at 19:34

Great news, that the snap version of VLC works! If that's a workable workaround for you, perfect, just leave it at that.

Should you want to investigate the root cause further, you can look at these two things:

  • The snap version of VLC working could be down to it using a different video output. You can check (and change) the video output in VLC under Tools > Preferences > Video > Output.
  • Another factor in your case could be your dual GPUs. It's not immediately apparent which GPU is the culprit in your case. You could try to identify which card is active when the tearing happens and then try to investigate further. However, in my experience, troubleshooting dual GPU issues can lead you down very deep rabbit holes. So if you are happy with using the VLC snap, you might just want to leave it at that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.