How To Fix Video Tearing In Videos; Nvidia, Ubuntu

Screen-tearing is an issue for many Nvidia users on Ubuntu. Videos are plauaged by a visible ‘tear’ mid way through the screen during any moments of intense action or horizontal panning. Gamers find anything that sidescrolls too much also results in the same issue.

Here’s an example of it: -

Thankfully kopiwe over on the Ubuntu Forums has posted an amazing tutorial on how to finally get rid of screen tearing in Ubuntu – providing you’re using a Nvidia graphics card.

I’ve re-written it here and provided some screenshots for those less confident about changing settings. Please go and thank him in the thread on the forums.

Preparation
To fix thread-tearing you’re going to need the CompizConfig Settings Manager and Nvidia X Server Settings installed. The later was most likely be installed along with your graphics drivers, the former can be installed using: -

  • sudo apt-get install compizconfig-settings-manager

or by searching for Compizconfig in the Ubuntu Software Centre.

Step 1

  • Open up the CompizConfig Settings manager via the System > Preferences menu
  • Click the ‘General Options‘ button and go to the ‘Display Settings‘ tab
  • Change the ‘refresh rate’ to ’60′ using the slider (though higher if you’re a gamer, etc)
  • Tick the ‘Sync To VBlank’ check-box

Step 2

  • Open Nvidia X Server Settings Via the System > Preferences Menu
  • Choose ‘OpenGL Settings’ on the left-hand side
  • Check the box next to “Sync To VBlank” to enable it

Step 3
To finish up: -

  • Open Startup Applications via the System > Preferences menu
  • Click on ‘Add’
  • Enter ‘Nvidia Settings’ or similar for the name
  • Enter ‘nvidia-settings -l’ for the command entry.

Now, upon reboot, your new effects will take place and should no-longer see any more of the annoying screen tear issue during videos, etc!

Super thanks to kopiwe once again. This issue drove me mad! Once you noticed it the first time then you noticed it always.

Related posts:

  1. Automatically Install Your Nvidia Driver For New Kernels – Hands Free!
Post a comment or leave a trackback: Trackback URL.
  • http://pulse.yahoo.com/_3SHI75YEI73OWEPC6P6VLAQZ3I Zepher

    Thank you seems to work fine on Ubuntu 11.04 using NVIDIA-Linux-x86-275.09.07

    once again thanks :)

    oh if anyone needs to disable nouveau here’s link http://ubuntuforums.org/showpost.php?p=10324779&postcount=8

  • chris xris

    i’ve done it but i still have tearing!
    The strange is that on ubuntu 11.4 64bit i dont have tearing when i play videos with vlc or totem or any other player but i have tearing on hd flash video.
    But on xubuntu and kubuntu i have tearing on video and flash playback.
    I have installed the binary driver but on xubuntu and kubuntu this didn’t helped.
    I dont know what configuration i should change , the only thing i know is it sucks. I want my os to utilize my pc’s hardware to the full so i formated my disk and went on windows 7.

  • http://pulse.yahoo.com/_UQKBKD62YWP3WVW5T6RDFYEIYA Foxxm

    Hello,
    Thanks it helped a lot for 1 year but it doesn’t work anymore with oneiric.

  • atarixle

    it just doesn’t work for me.