For almost a decade I have had ForceCompositionPipeline=On in xorg settings and it was fine.
Recently, I changed to a dual monitor setup. So I made the following changes to the conf file. Note the latest line at the bottom after the commented out lines from earlier configurations.
$ cat /etc/X11/xorg.conf.d/20-nvidia-noscreentearing.conf
Section "Screen"
Identifier "Screen0"
# Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
# Option "metamodes" "DP-0: 2560x1440_144 +0+0 {ForceCompositionPipeline=On, AllowGSYNC=On, AllowGSYNCCompatible=On}, HDMI-0: 2560x1440_144 +2560+0 {ForceCompositionPipeline=On}"
# Option "metamodes" "DP-0: 2560x1440_144 +0+748 {ForceCompositionPipeline=On, AllowGSYNC=On, AllowGSYNCCompatible=On}, HDMI-0: 2560x1440_144 +2560+0 {rotation=right, ForceCompositionPipeline=On}"
Option "metamodes" "DP-0: 2560x1440_144 +0+748 {ForceCompositionPipeline=On}, HDMI-0: 2560x1440_144 +2560+0 {rotation=right, ForceCompositionPipeline=On}"
EndSection
However, the setting is sometimes reverting to Off on its own, verified through nvidia-settings. Not sure of the cause but it happens many times after the screen is locked and then unlocked. Screen tearing is very noticeable on video playback with it Off.
Why is this happening and how can I maintain the On setting permanently, as it was for so long before?
The monitors are connected by HDMI for one, and DP 2.1 for the other. Nvidia driver version 580.178.04
.',;::::;,'.
.';:cccccccccccc:;,. ------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 44 (Forty Four) x86_64
.:cccccccccccccccccccccccccc:. Kernel: Linux 7.2.5-200.fc44.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 22 hours, 5 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 9 (flatpak), 5658 (rpm)
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Shell: bash 5.3.9
,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Display (MGB270U P2): 2560x1440 @ 1.25x in 27", 144 Hz [External] *
:cccccccccccccc;MMM.;cccccccccccccccc: Display (MGB270U P2): 2560x1440 @ 1.25x in 27", 144 Hz [External]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: Mate 1.28.2
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Marco (X11)
ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Arc-Darker
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Fusion [Qt], Arc-Darker [GTK2/3/4]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: EvoPop [Qt], Material-Black-Blueberry-Numix [GTK2/3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: DejaVu Sans (10pt) [Qt], Sans (11pt) [GTK2/3/4]
cccccccc;.:odl:.;cccccccccccccc:,. Cursor: mate (32px)
ccccccccccccccccccccccccccccc:'. Terminal: mate-terminal 1.28.3
:ccccccccccccccccccccccc:;,.. Terminal Font: Monospace (11pt)
':cccccccccccccccc::;,. CPU: AMD Ryzen 7 2700X (16) @ 4.35 GHz
GPU: NVIDIA GeForce GT 1030 [Discrete]
Memory: 18.51 GiB / 31.23 GiB (59%)
Swap: 2.03 GiB / 31.23 GiB (6%)
Disk (/): 74.72 GiB / 98.12 GiB (76%) - ext4
Disk (/home): 113.53 GiB / 196.30 GiB (58%) - ext4
Disk (/media/data): 874.47 GiB / 1.54 TiB (55%) - ext4
Local IP (wlp6s0): 192.168.2.8/24
Locale: en_US.UTF-8