Ubuntu – How to eliminate screen tearing on 14.04 and XBMC with NVidia-331


I have updated my 12.04 HTPC to 14.04 (new install; same hardware), and have started getting awful screen tearing where I had none before.


AMD A4-3300 APU with Radeon(tm) HD Graphics


01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)


nvidia 10675249 71

drm 302631 2 nvidia

Everything is from the official repos.



Best Answer

I too had this problem after upgrading to 14.04

The solution mentioned here worked wonders for me,


A workaround for ubuntu 14.04 with nvidia driver is to disable backing store in xorg: Make sure you have the "-bs" option in lightdm config file:

cat /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
# Dump core
xserver-command=X -bs -core

If you're using another mechanism for starting X you can use the same flag in a similar way. For example, here's startx which is popularly used in XBMC (and other kiosk applications') startup scripts:

startx /etc/X11/Xsession /usr/bin/xbmc-standalone -- -bs