You are not logged in.

#1 2021-05-07 10:05:16

geekmiki
Member
Registered: 2011-10-10
Posts: 74

Dual monitor configuration reset when monitors wake up

Hi,

I have a dual monitor setup running with the NVidia driver and configured like this:

xrandr --output DP-2 --mode 2560x1440 --rate 144 --pos 0x0 --rotate normal --output DP-4 --primary --mode 2560x1440 --rate 144 --pos 2560x0 --rotate normal 

In XFCE I have used the Power Manger to put the displays to sleep after 5 minutes. When waking up, the display config is reset, displays are mirrored (and not extended), refresh rate is again at 60, etc.

Is there a way to keep the configuration when waking up?

I have tried through the NVidia driver with these solutions, but with no concluding results:
https://forum.xfce.org/viewtopic.php?id=10951 Latest reply at bottom
https://wiki.archlinux.org/title/NVIDIA … er_suspend

Thank you in advance, any further hints to solve the issue appreciated

EDIT:
Adding Xorg.0.log info fo what is going on when going to sleep/waking:

[  3078.976] (--) NVIDIA(GPU-0): DFP-4: disconnected
[  3078.976] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[  3078.977] (--) NVIDIA(GPU-0): DFP-4: 1440.0 MHz maximum pixel clock
[  3078.977] (--) NVIDIA(GPU-0): 
[  3078.980] (II) NVIDIA(0): Setting mode "DP-4: 2560x1440_144 @2560x1440 +2560+0 {AllowGSYNCCompatible=On, ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[  3079.070] (--) NVIDIA(GPU-0): DFP-6: disconnected
[  3079.070] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[  3079.070] (--) NVIDIA(GPU-0): DFP-6: 1440.0 MHz maximum pixel clock
[  3079.070] (--) NVIDIA(GPU-0): 
[  3079.092] (II) NVIDIA(0): Setting mode "NULL"
[  3080.665] (--) NVIDIA(GPU-0): GBT G27Q (DFP-4): connected
[  3080.665] (--) NVIDIA(GPU-0): GBT G27Q (DFP-4): Internal DisplayPort
[  3080.665] (--) NVIDIA(GPU-0): GBT G27Q (DFP-4): 1440.0 MHz maximum pixel clock
[  3080.665] (--) NVIDIA(GPU-0): 
[  3080.670] (--) NVIDIA(GPU-0): GBT G27Q (DFP-6): connected
[  3080.670] (--) NVIDIA(GPU-0): GBT G27Q (DFP-6): Internal DisplayPort
[  3080.670] (--) NVIDIA(GPU-0): GBT G27Q (DFP-6): 1440.0 MHz maximum pixel clock
[  3080.670] (--) NVIDIA(GPU-0): 
[  3080.680] (II) NVIDIA(0): Setting mode "DP-2: nvidia-auto-select @2560x1440 +0+0 {AllowGSYNCCompatible=On, ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[  3080.728] (II) NVIDIA(0): Setting mode "DP-2: nvidia-auto-select @2560x1440 +0+0 {AllowGSYNCCompatible=On, ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}, DP-4: nvidia-auto-select @2560x1440 +0+0 {AllowGSYNCCompatible=On, ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"

Last edited by geekmiki (2021-05-10 11:06:50)

Offline

#2 2021-05-07 14:07:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,524

Re: Dual monitor configuration reset when monitors wake up

https://wiki.archlinux.org/title/Multih … _xorg.conf

The DPMS likely makes the output(s) un- and re-register, voiding transient configurations.

Online

#3 2021-05-08 00:30:32

geekmiki
Member
Registered: 2011-10-10
Posts: 74

Re: Dual monitor configuration reset when monitors wake up

I followed the wiki, created files for monitor and device, but still on wake up screens are mirrored.

Here are the conf files I've created, if there is something wrong:
10-monitor.conf

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "DP-4"
    VendorName     "Gigabyte"
    ModelName      "GBT G27Q"
    HorizSync       222.0 - 222.0
    VertRefresh     48.0 - 144.0
	Option		   "PrefferedMode" "2560x1440_144.00"
    Option         "DPMS" "true"
	Option		   "Primary" "true"
	Option		   "RightOf" "DP-2"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "DP-2"
    VendorName     "Gigabyte"
    ModelName      "GBT G27Q"
    HorizSync       222.0 - 222.0
    VertRefresh     48.0 - 144.0
	Option		   "PreferredMode" "2560x1440_144.00"
    Option         "DPMS" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "DP-4"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-6"
    Option         "metamodes" "DP-2: 2560x1440_144 +0+0 {AllowGSYNCCompatible=On}, DP-4: 2560x1440_144 +2560+0 {AllowGSYNCCompatible=On}; DP-2: nvidia-auto-select +0+0, DP-4: 2560x1440_144 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 2560x1440_120 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1920x1080 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1920x1080_120 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1920x1080_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1920x1080_60_0 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1920x1080_50 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1680x1050 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1680x1050_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1440x900 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1440x900_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1440x576 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1440x480 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1280x1024 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1280x1024_75 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1280x720 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1280x720_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1280x720_50 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1024x768 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1024x768_70 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 1024x768_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 800x600 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 800x600_72 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 800x600_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 800x600_56 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 720x576 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 720x480 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 640x480 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 640x480_72 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 640x480_60 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: 640x480_60_0 +2560+0; DP-2: nvidia-auto-select +0+0, DP-4: nvidia-auto-select +2560+0 {viewportin=1920x1200, viewportout=2304x1440+128+0}; DP-2: nvidia-auto-select +0+0, DP-4: nvidia-auto-select +2560+0 {viewportin=1600x1200, viewportout=1920x1440+320+0}; DP-2: nvidia-auto-select +0+0, DP-4: nvidia-auto-select +2560+0 {viewportin=1366x768, viewportout=2560x1439+0+0}; DP-2: nvidia-auto-select +0+0, DP-4: nvidia-auto-select +2560+0 {viewportin=1280x800, viewportout=2304x1440+128+0}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

20-nvidia.conf

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GTX 1060 6GB"
	Option		   "monitor-DP-4" "DP-4"
	Option		   "monitor-DP-2" "DP-2"
EndSection

Offline

#4 2021-05-08 06:05:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,524

Re: Dual monitor configuration reset when monitors wake up

Remove the monitor-* options from 20-nvidia.conf and the screen section from 10-monitor.conf
You may also briefty try the behavior in an openbox session to ensure you're not facing some overzealous xfce4 screen-managing daemon.

Online

#5 2021-05-09 13:49:58

geekmiki
Member
Registered: 2011-10-10
Posts: 74

Re: Dual monitor configuration reset when monitors wake up

Update:
Even after changing the configuration files, the problems persists. Displays will not keep the configuration in XFCE and will be mirrored when waking up from sleep.

If anyone has another suggestion, it is more than welcome.

Last edited by geekmiki (2021-05-10 11:08:39)

Offline

#6 2021-06-03 08:52:32

laurentO
Member
Registered: 2021-05-21
Posts: 1

Re: Dual monitor configuration reset when monitors wake up

I've got a similar issue with the following configuration:
- 3 monitors setup
- AMD RX 580 video card

When My computer wakes up, 2 of the 3 monitors are mirrored instead of been extended.
It occurs on OpenBox and XFCE desktops, both tested on garuda and archcraft distros.

I'll dig this issue to try to find a solution

Any suggestion is welcome

Offline

Board footer

Powered by FluxBB