Secondary monitor are disabled in nvidia-settings and disconnected in xrandr

Hello! :wave:

I just setup Manjaro in dualboot with Windows, and I have a problem with my secondary monitor:

When I run “xrandr” the monitor are disconnected, and when I run “nvidia-settings” it shows the secondary monitor but its marked as “disabled”, and unable to change it for “New X screen” :confused:

Here my xrandr:

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 698mm x 393mm
   2560x1440    144.00*+ 239.96   120.00    59.95  
   1920x1080    239.76   143.98   119.88    60.00    59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   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  
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

EDIT: Here my nvidia-settings file:

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

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 510.54

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      "Samsung LC32G7xT"
    HorizSync       358.0 - 358.0
    VertRefresh     60.0 - 240.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL U2415"
    HorizSync       30.0 - 83.0
    VertRefresh     49.0 - 61.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3080"
    BusID          "PCI:11:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3080"
    BusID          "PCI:11:0:0"
    Screen          1
EndSection

Section "Screen"

# Removed Option "metamodes" "DP-4: nvidia-auto-select +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 2560x1440_240 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 2560x1440_120 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 2560x1440_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080_144 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080_120 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080_60_0 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1920x1080_50 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1680x1050 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1600x900 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1440x900 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x1024 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x1024_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x800 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x720 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x720_60_0 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1280x720_50 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1152x864 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1024x768 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1024x768_70 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 1024x768_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 800x600 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 800x600_72 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 800x600_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 800x600_56 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 720x576 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 720x480 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 640x480 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 640x480_72 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: 640x480_60 +1920+0, DP-2: nvidia-auto-select +0+0; DP-4: nvidia-auto-select +1920+0 {viewportin=1920x1200, viewportout=2304x1440+128+0}, DP-2: nvidia-auto-select +0+0; DP-4: nvidia-auto-select +1920+0 {viewportin=1600x1200, viewportout=1920x1440+320+0}, DP-2: nvidia-auto-select +0+0; DP-4: nvidia-auto-select +1920+0 {viewportin=1366x768, viewportout=2560x1439+0+0}, DP-2: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DP-4: nvidia-auto-select +1920+0, DP-2: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DP-4: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-7"
    Option         "Stereo" "0"
    Option         "metamodes" "DP-2: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DP-4: nvidia-auto-select +0+0 {AllowGSYNC=Off} {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Anyone has the solution?

Thanks! :blush:

PS: Sorry for my bad english, I’m french :sweat_smile:

Hello,

That is only “required” if you want multihead.

That is /etc/X11/mhwd.d/nvidia.conf and you mixed stuff up. Let me clean it up for you:

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

Section "Files"
EndSection

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

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Samsung"
    ModelName      "Samsung LC32G7xT"
    HorizSync       358.0 - 358.0
    VertRefresh     60.0 - 240.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3080"
    Option  "ConnectToAcpid"    "Off"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-7"
    Option         "Stereo" "0"
    Option         "metamodes" "DP-2: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, DP-4: nvidia-auto-select +2560+0 {AllowGSYNC=Off} {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

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

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

Since i do not know the exact position of your Monitors in relation to one another, i made it so the secondary is on your right from the primary.

THANKS THANKS THANKS ! It works :smiley:

And thanks I understand how it works, my secondary monitor are at left but I adapted your file for the right position

Thanks for the fast answer ^^

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.