Nvidia-Settings keeps disconnecting External displays

Hi all,

I’ve been using Manjaro for about 2 years now but around 4 months ago Nvidia-settings started to reset my display config so that only my left most vertical monitor was active.

Here is my xrandr output

Screen 0: minimum 8 x 8, current 3640 x 1920, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 1080x1920+0+0 right (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  59.99    59.94    50.00  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected (normal left inverted right x axis y axis)
   1920x1080     59.93 +  60.00    59.94    50.00  
   1680x1050     59.95  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected primary 2560x1080+1080+840 (normal left inverted right x axis y axis) 64mm x 27mm
   2560x1440     59.95 +
   2560x1080     59.94* 
   1920x1080     75.00    60.00    59.94    50.00  
   1720x1440     75.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  

Here is my xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 525.60.11

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VE247"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3060 Ti"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-6"
    Option         "metamodes" "DP-1: nvidia-auto-select +0+0 {rotation=right, AllowGSYNC=Off}, DP-5: 2560x1080 +1080+840 {AllowGSYNC=Off}; DP-1: 1024x768 +0+0, DP-5: nvidia-auto-select +1024+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1024x768_70 +0+0, DP-5: nvidia-auto-select +1024+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1024x768_60 +0+0, DP-5: nvidia-auto-select +1024+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600 +0+0, DP-5: nvidia-auto-select +800+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_72 +0+0, DP-5: nvidia-auto-select +800+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_60 +0+0, DP-5: nvidia-auto-select +800+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_56 +0+0, DP-5: nvidia-auto-select +800+0, DP-3: nvidia-auto-select +1080+840; DP-1: 720x576 +0+0, DP-5: nvidia-auto-select +720+0, DP-3: nvidia-auto-select +1080+840; DP-1: 720x480 +0+0, DP-5: nvidia-auto-select +720+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480 +0+0, DP-5: nvidia-auto-select +640+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_72 +0+0, DP-5: nvidia-auto-select +640+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_60 +0+0, DP-5: nvidia-auto-select +640+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_60_0 +0+0, DP-5: nvidia-auto-select +640+0, DP-3: nvidia-auto-select +1080+840; DP-1: nvidia-auto-select +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1920x1080_60_0 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1920x1080_60_1 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1920x1080_50 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1680x1050 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1600x1200 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1440x900 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1366x768 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x1024 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x1024_60 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x960 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x720 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x720_60_0 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1280x720_50 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1152x864 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1024x768 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1024x768_70 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 1024x768_60 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_72 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_60 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 800x600_56 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 720x576 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 720x480 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_72 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_60 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: 640x480_60_0 +0+0, DP-3: nvidia-auto-select +1080+840; DP-1: nvidia-auto-select +0+0 {viewportin=1280x800, viewportout=1728x1080+96+0}, DP-3: nvidia-auto-select +1080+840"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

When using Nvida-settings to fix the configuration it keeps loosing the reference to which ever monitor is selected (UI shows im modifying setting for my middle onitor, but settings get applied to the left most monitor (middle monitor is Acer and left most is Asus so Im not getting them confused in the UI). Some times when it get the correct reference to the monitor the monitor will flash black, show enabled in the UI then immediately go back to disabled. After constatly setting display settings, hitting cancel if the ref is wrong and retying it seems to work sometime between 5 - 30 reconfigs which is really annoying every morning.

Let me know if theres any other info I can provide, Thanks!


Added screen shot of my settings UI, took about 20 tries to get the central monitor working, I have given up on the third monitor as it takes enough time just getting the central one up and running

Heres what my actual setup is, savin/ applying this never works

xorg.conf should not exist on Manjaro install. Since MHWD is at work, for Nvidia GPU the correct config file location is /etc/X11/mhwd.d/nvidia.conf

You have mixed autoselect with partial fixed layout for each port, and you managed to multiply them ad nauseam too in the config. If you want a fixed layout, then please created to be so, one entry per port, remove you xorg.conf and append the proper config to nvidia.conf. Also, you should keep a backup close by, and also add the last lines that are missing from yours:

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Run the command:

sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf

From Configure Graphics Cards - Manjaro

The config will never apply on the fly, you need to save the nvidia.conf and reboot, then make sure the layout is the same in Plasma System Settings > Display and Monitor