How To Fix Screen Tearing In Linux

How To Fix Screen Tearing In Linux

Subscribers:
10,800
Published on ● Video Link: https://www.youtube.com/watch?v=0Ux9bz_Tfw0



Category:
Tutorial
Duration: 3:42
26,873 views
452


This video covers a fix for screen tearing on Linux distributions when using a nVidia GPU by enabling the Full Composition Pipeline in the nVidia X Server Setting application.

For this to work you need to run the nVidia X Server Setting application as root in order to save and apply this settings permanently.

Please note the process will differ slightly depending on whether you are using Ubuntu, Arch or Manjaro.

1. For Arch Linux.

https://wiki.archlinux.org/title/NVIDIA/Troubleshooting#Avoid_screen_tearing

2. For Ubuntu based distributions.

First, type the following into the terminal:

sudo nvidia-settings

Then navigate to X Server Display Configuration / Advanced and enable "Force Composition Pipeline"

Repeat for all your monitors.

Click Save to X Configuration File and click Save.

This will save it to xorg.conf, which can be found at:

/etc/X11/xorg.conf

If you find you cannot save the changes, instead of clicking Save with the X-Server application, click on Show Preview, then take a copy the content.

Next navigate to /etc/X11/xorg.conf and open a Terminal window and type.

sudo nano xorg.conf

Clear all the content found in the existing file, and paste in the copied content, then save by typing CTRL + X.

If this file does not exist, then run the below in a Terminal window to generate one.

sudo nvidia-xconfig

3. For Manjaro.

Instead of Xorg.conf, Manjaro used a nvidia.conf file found at.

/etc/X11/mhwd.d

So instead of clicking Save with the X-Server application, instead click on Show Preview, then copy and paste that content into the mhwd.d file, and save.

Either way, whatever method you follow, screen tearing will be fixed, and more importantly this will be applied at each boot.

#linuxgaming #nvidia #tutorials







Tags:
linux gaming
nvidia
screen tearing
tutorial
force full composition pipeline
manjaro
xorg.conf
mhwd.d
x server display configuration