My way of resolving screen (video) tearing with Nvidia on Linux Mint for multi-screen monitors

Screen tearing typically occurs when you are running a proprietary NVIDIA driver under Linux and running XFCE, LXDE, MATE or other desktop environments that are not running a compositor such as Compton.

So here is my script. Here’s how to add it to the system startup

  1. Menu -> Control Center -> Startup Applications
  2. Click Add
  3. Give Name: NVIDIATEAR (any name you want)
  4. Command:  paste script shown below (or your modified version of the script)
  5. Comment: Screen tearing fix

nvidia-settings –assign CurrentMetaMode=”DVI-D-0:1600x900_60 +0+0 { ForceFullCompositionPipeline = On }, HDMI-0:1920x1080_60 +1600+0 { ForceFullCompositionPipeline = On }, DP-1:1600x900_60 +3520+0 { ForceFullCompositionPipeline = On }”

If you only have one monitor, you won’t need the additional parts after the comma.

You will of course need to change things like “DVI-D-0”, “HDMI-0” and “DP-1” to the connections your monitor is using (or monitors in my case as I have three). You can find them out by running the “xrandr” command in terminal. It will give you a list of things, like this:

Screen 0: minimum 8 x 8, current 5120 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1600×900+0+0 (normal left inverted right x axis y axis) 443mm x 249mm
1600×900 59.9*+
1280×1024 75.0 60.0
1280×960 60.0
1280×800 59.8
1280×720 60.0
1152×864 75.0
1024×768 75.0 70.1 60.0
800×600 75.0 72.2 60.3 56.2
640×480 75.0 72.8 59.9
HDMI-0 connected primary 1920×1080+1600+0 (normal left inverted right x axis y axis) 531mm x 299mm
1920×1080 60.0*+
1680×1050 60.0
1600×1200 60.0
1440×900 59.9
1280×1024 75.0 60.0
1280×960 60.0
1152×864 75.0
1024×768 75.0 70.1 60.0
800×600 75.0 72.2 60.3 56.2
640×480 75.0 72.8 59.9
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 1600×900+3520+0 (normal left inverted right x axis y axis) 443mm x 249mm
1600×900 60.0*+ 60.0
1280×1024 75.0 60.0
1280×960 60.0
1280×800 59.8
1280×720 60.0
1152×864 75.0
1024×768 75.0 70.1 60.0
800×600 75.0 72.2 60.3 56.2
640×480 75.0 72.8 59.9

This entry was posted in drivers, graphics, linux, Linux Mint, Nvidia. Bookmark the permalink.