You are not logged in.

#1 2015-08-01 18:00:08

JoKo
Member
Registered: 2010-04-09
Posts: 37

nVidia and non-permanent dual monitor setup

Hello,

I own an nVidia GeForce GTX 970 and use the binary drivers (currently 352.30) to drive my dual monitor setup. To the left there is a 1920x1200 monitor and to the right a 2560x1600 one.

nvidia-settings generated the following file:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 346.47  (buildmeister@swio-display-x86-rhel47-01)  Thu Feb 19 19:18:25 PST 2015

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      "DELL U3011"
    HorizSync       29.0 - 113.0
    VertRefresh     49.0 - 86.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 970"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-1: nvidia-auto-select +1920+0, DP-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

My question is if there is a way to have only my main monitor (the right one) working sometimes. With the current configuration file, if I don't switch on the left monitor, the right one is not working properly (screen is padded due to the +1920 setting in metamodes, I suppose). I have tried setting -1920+0 and +0+0, but it is not working. Would you suggest anything else?

Offline

#2 2015-08-01 21:08:15

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: nVidia and non-permanent dual monitor setup

I'm using xrandr commands packed into an .sh script, which I just run from console as needed.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

Board footer

Powered by FluxBB