Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

Got tearing with proprietary NVIDIA? Try this. image/svg+xml

If you’re using a reasonably modern NVIDIA graphics card on your Linux box with the proprietary driver, there’s a fair chance you may encounter that nasty thing called ‘screen tearing’. There is a little setting worth trying in NVIDIA’s blob driver called ‘ForceCompositionPipeline’ that can severely reduce tearing to a minimum, perhaps even completely. Here’s how to do it.

I recently installed a new NVIDIA GeForce GTX 1070 in my desktop. The card is awesome, but it’s not supported by the open source Nouveau drivers under Linux (Ubuntu 16.04), so I had to install NVIDIA’s propriety drivers. This was not a problem and it only took a few minutes before I had the card up and running, however, it wasn’t long before I discovered that it was exhibiting some video tearing issues. Grrr!

I’ve experienced video tearing under Linux before and it’s always been a pain in the arse to get sorted. So, I was pretty happy when I found something that actually worked, first time. The gist of the fix involves adding this line to the “Screen” section of your Xorg configuration file:

Option  "metamodes" "nvidia-auto-select +0+0 { ForceCompositionPipeline = On }"

Once I’d added the above line and rebooted, the screen tearing was completely gone. Nifty!

Leave a comment

Your email address will not be published. Required fields are marked *