How to Fix Nvidia Graphics Horizontal Lines Tearing Bug in Debian, Ubuntu and Linux Mint

by Neon Cipher - Thu, 25 Jan 2018
Tags: #nvidia #tearing #debian #ubuntu #mint

How to remove those horizontal screen tearing artifacts when playing a video file or a 3D game on nVidia graphics card:

Note: this method does not apply to computers with an Optimus (hybrid) graphics chipset and bumblebee-nvidia installed! For hybrid chipsets check out this video: https://youtu.be/IJeX35wbZY4

nvidia-settings
xrandr

Template: nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 { ForceFullCompositionPipeline = On }"

Example of the command:

nvidia-settings --assign CurrentMetaMode="DVI-D-0:1280x1024_60 +0+0 { ForceFullCompositionPipeline = On }"

Lines to add in the "xorg.conf":

Section "Device"
    Option         "NoLogo" "1"
    Option         "RenderAccel" "1"
    Option         "TripleBuffer" "true"
    Option         "MigrationHeuristic" "greedy"
    Option         "AccelMethod" "sna"
    Option         "TearFree"    "true"
EndSection
Section "Screen"
    Option         "metamodes" "CONNECTION:RESOLUTION_RATE +0+0 { ForceFullCompositionPipeline = On }"
EndSection

Backup the old xorg.conf if you already have it:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old

then run:

sudo cp /home/linuxtrend/Desktop/xorg.conf /etc/X11/xorg.conf

How to Install Nvidia Driver in Debian: https://youtu.be/KUsnygrNUMw

The movie Tears of Steal, used in this video, is licensed under the Creative Commons Attribution 3.0 license: http://creativecommons.org/licenses/by/3.0/ (CC) Blender Foundation | mango.blender.org

Comments