In this video I cover how to permanently fix screen tearing and enable G-SYNC / FreeSync on Linux if you have Nvidia hardware.
Step 1. Enable Force Compositor Pipeline.
A simple fix to prevent screen tearing regardless of Linux distribution is using a function called Force Composition Pipeline which does not incur a noticeable performance hit.
To do this, launch the Nvidia Settings application, click on the X Server Display Configuration tab and then click the Advanced tab.
From here, tick the Force Composition Pipeline option, click the Apply button to enable.
You will find that the screen will go black, and once back, screen tearing will no-longer occur on your system.
Step 2. Enable G-SYNC / FreeSync.
Alternatively if you have a monitor that supports either G-SYNC or FreeSync, which are variable refresh rate (VRR) technologies, you can also enable that using the Nvidia Settings application.
However on Linux there are some limitations, firstly, VRR is only supported on one monitor if you are using Xorg as your display server, and it only works with a display port cable, not HDMI.
And secondly, if you are using Wayland as your display server, you are able to use VRR with multiple monitors, but it will only work with KDE Plasma, not Gnome.
To enable support for G-SYNC / FreeSync, first open the Nvidia Settings application, and click on the X Server Display Configuration tab.
From here, click the Advanced button, tick the Allow G-SYNC on monitor not validated as G-SYNC Compatible option, and then click Apply to enable.
Next, click on the OpenGL Settings tab, and tick both Allow G-SYNC/G-SYNC Compatible option and allow flipping.
You can also tick the Enable G-SYNC/G-SYNC Compatible Visual Indicator which will appear in the top right as NORMAL in grey when G-SYNC is not enabled, and G-SYNC in green when it is.
A final thing to note, if you are going to be recording game footage using OBS Studio, then this will automatically disable G-SYNC, so if you experience screen tearing whilst recording you will need to use the Force Composition Pipeline option.
Step 3. Retain Settings on Boot.
It should be noted that, all the previous settings will be lost on reboot, unless you save the configuration to an Xorg.conf file.
To do this, open the Nvidia Setting application, click on the X Server Display Configuration tab, and then click the Save to X Configuration File button.
From here, click the Show preview button, select all the text, and copy to your clipboard.
Next open your file explorer, and navigate to:
/etc/X11
And within this location, open a Terminal window, and run the following command:
sudo nano xorg.conf
This will create a new file called xorg.conf using nano, a command line-based text editor.
From here, paste in the copied data, press CTRL + X to save and Y to confirm.
Now when the machine is booted, the configuration will be retained.
#linux #nvidia #g-sync
Social Media Links
Discord - / discord
Facebook - / intelligent-gaming-101640054531594
Mastodon - https://mastodon.social/@Intelligentg...
Patreon - https://www.patreon.com/user?u=102737305
Reddit - / intelligentgaming2020
Twitter - / inspectorgecko
Watch video "How To Eliminate Screen Tearing and Enable G-Sync On Linux - Step-by-Step Guide" online without registration, duration hours minute second in high quality. This video was added by user Intelligent Gaming 01 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,073 once and liked it 94 people.