You are not logged in.

#1 2018-03-07 21:07:04

Expez
Member
Registered: 2012-03-31
Posts: 14

[Solved] Can't get multi-monitor to work using nvidia-settings

I had a setup that's been working flawlessly for 3 years, using 3 monitors.  Then I moved, swapped the physical connection of 2 of the monitors while reconnecting, and updated my xorg.conf to match using nvidia-settings (without taking a backup of the working config sad().

I now have the following situation:

nvidia-settings seem to report an absolute layout for all monitors, even though I specify absolute for X screen 0 and relative for screen 1 and 2.
When I cursor to the left or right screen i get an X as a cursor (center screen works OK)
I can't open or drag windows onto the left or right screen
Sometimes the center screen loses focus and I can no longer highlight text / click buttons etc before shifting windows around within xmonad to re-focus.

Here's my xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 390.25  (builduser@anthraxx)  Thu Feb  8 13:45:56 CET 2018

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 387.34  (buildmeister@swio-display-x64-rhel04-15)  Tue Nov 21 03:31:45 PST 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1080 0
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" LeftOf "Screen0"
    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      "DELL U2715H"
    HorizSync       30.0 - 113.0
    VertRefresh     56.0 - 86.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL U2212HM"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "DELL U2211H"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:1:0:0"
    Screen          2
EndSection

Section "Screen"

# Removed Option "metamodes" "DP-0: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-2"
    Option         "metamodes" "DP-0: 2560x1440 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DP-2: nvidia-auto-select +0+0 {rotation=left, AllowGSYNC=Off}"
# Removed Option "metamodes" "DP-2: 1920x1080 {rotation=left}; DP-2: nvidia-auto-select {rotation=left, AllowGSYNC=Off}"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "DP-2: 1920x1080 +0+0 {rotation=left}; DP-2: nvidia-auto-select +0+0 {rotation=left, AllowGSYNC=Off}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DVI-D-0: nvidia-auto-select +0+0 {rotation=right, AllowGSYNC=Off}"
# Removed Option "metamodes" "DVI-D-0: 1920x1080 {rotation=right}; DVI-D-0: nvidia-auto-select {rotation=right, AllowGSYNC=Off}"
# Removed Option "metamodes" "DVI-D-0: 1920x1080 +0+0 {rotation=right}; DVI-D-0: nvidia-auto-select +0+0 {rotation=right, AllowGSYNC=Off}"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +0+0 {rotation=right, AllowGSYNC=Off}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

When I open nvidia-settings it now specifies the following server layout:

screen 2 (left physical monitor) Absolute: +0 +0
screen 0 (center physical monitor) Absolute: +1080 +0
screen 1 (center physical monitor) Absolute: +3640 +0

Given the resolution on the monitor this actually looks correct, but if I try to save the file again (without making any edits) it warns me that only one screen should be absolute and the other relative.

How can I reclaim the missing screen real-estate?

Last edited by Expez (2018-03-07 22:23:34)

Offline

#2 2018-03-07 21:36:25

cesura
Trusted User (TU)
From: Chicago, USA
Registered: 2010-01-23
Posts: 1,864

Re: [Solved] Can't get multi-monitor to work using nvidia-settings

I know this isn't a direct response to your question, but despite the fact that many claim nvidia-settings is the preferred method of configuring multiple monitors, I've had a flawless experience using only xrandr on the latest Nvidia binary drivers. A single line in my .xinitrc keeps me from having to fiddle with xorg.conf; maybe give it a shot if you don't get any suitable answers here?

Offline

#3 2018-03-07 22:09:15

seth
Member
Registered: 2012-09-03
Posts: 7,616

Re: [Solved] Can't get multi-monitor to work using nvidia-settings

I can't open or drag windows onto the left or right screen

Because you configured a zaphod setup.
Remove that xorg.conf and configure the setup dynamically using the randr extension, either by xrandr scripts of xorg configlets for the outputs (use the output names as reported by xrandr as Identifiers and make use of the RightOf options, see "man xorg.conf" for details)

Online

#4 2018-03-07 22:17:36

Expez
Member
Registered: 2012-03-31
Posts: 14

Re: [Solved] Can't get multi-monitor to work using nvidia-settings

cesura wrote:

I know this isn't a direct response to your question, but despite the fact that many claim nvidia-settings is the preferred method of configuring multiple monitors, I've had a flawless experience using only xrandr on the latest Nvidia binary drivers. A single line in my .xinitrc keeps me from having to fiddle with xorg.conf; maybe give it a shot if you don't get any suitable answers here?

I'm cool with trying something new.  As a starting point for using xrandr, this doesn't seem very promising, though:

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.97  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1200x960      59.90  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Only one physical monitor seems to have been detected?

Offline

#5 2018-03-07 22:22:54

Expez
Member
Registered: 2012-03-31
Posts: 14

Re: [Solved] Can't get multi-monitor to work using nvidia-settings

The mistake I made was to create 3 screens, instead of 1 screen spanning all 3 physical monitors.

Once I did that everything worked as it should.

Thanks seth and cesura for making my delete my xorg.conf and just start from scratch, which caused me to something new!

Offline

Board footer

Powered by FluxBB