Driver resetting xorg configuration after sleep

Hi, I am having issues every time I wake my PC up from sleep.
It seems that my xorg configuration is being changed from one monitor to two monitor setup every time the PC woke up from sleep. Every time switching all the windows to primary. I have a 4k screen on top (samsung secondary) and qhd on the bottom(asus primary).

nvidia driver version: 510.60.02

my journal is full of output changes:

apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRScreenChangeNotify
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31439925
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Config_timestamp:  31440234
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Window: 48234501
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Root: 485
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size ID: 65535
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size:  3840 3600
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         SizeMM:  912 855
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_CrtcChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31439925
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  440
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  472
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Geometry:  701 2160 2560 1440
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRScreenChangeNotify
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31439925
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Config_timestamp:  31440234
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Window: 48234501
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Root: 485
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size ID: 65535
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size:  3840 3600
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         SizeMM:  912 855
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_CrtcChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31439925
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  440
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  472
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Geometry:  701 2160 2560 1440
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_CrtcChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31441050
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  441
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  446
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Geometry:  0 0 3840 2160
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_OutputChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31441050
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Output:  445
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  441
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  446
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Connection:  "Connected"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Subpixel Order:  0
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRScreenChangeNotify
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31441050
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Config_timestamp:  31440234
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Window: 48234501
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Root: 485
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size ID: 65535
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Size:  3840 3600
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         SizeMM:  912 855
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_CrtcChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31441050
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  441
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  446
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Geometry:  0 0 3840 2160
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper: RRNotify_OutputChange
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Timestamp:  31441050
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Output:  445
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         CRTC:  441
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Mode:  446
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Connection:  "Connected"
apr 21 17:02:03 blaster kscreen_backend_launcher[3119]: kscreen.xcb.helper:         Subpixel Order:  0

my /etc/x11/xorg.conf

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

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

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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung U32J59x"
    HorizSync       30.0 - 135.0
    VertRefresh     30.0 - 75.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DP-2: 3840x2160_60 +0+0, DP-0: 2560x1440_165 +687+2160"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

/var/log/Xorg.0.log has messages about changing modes from one monitor to two monitor setup

[ 21009.449] (EE) client bug: timer event5 debounce short: scheduled expiry is in the past (-22ms), your system is too slow
[ 22654.996] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 25ms, your system is too slow
[ 23100.047] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 33ms, your system is too slow
[ 23100.539] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 35ms, your system is too slow
[ 25715.173] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 25715.173] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 25715.173] (--) NVIDIA(GPU-0): DFP-1: 2670.0 MHz maximum pixel clock
[ 25715.173] (--) NVIDIA(GPU-0): 
[ 25715.861] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 25716.076] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +0+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 25716.433] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): connected
[ 25716.433] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): Internal DisplayPort
[ 25716.433] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): 2670.0 MHz maximum pixel clock
[ 25716.433] (--) NVIDIA(GPU-0): 
[ 25717.206] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 25717.276] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}, DP-0: nvidia-auto-select @3840x2160 +0+0 {ViewPortIn=3840x2160, ViewPortOut=3840x2160+0+0}"
[ 25902.581] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 33ms, your system is too slow
[ 25924.605] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 27ms, your system is too slow
[ 25924.605] (EE) event5  - Logitech MX Master 3: WARNING: log rate limit exceeded (5 msgs per 60min). Discarding future messages.
[ 25930.277] (EE) client bug: timer event5 debounce short: scheduled expiry is in the past (-21ms), your system is too slow
[ 26074.012] (EE) event3  - Metadot - Das Keyboard DK4Q: client bug: event processing lagging behind by 21ms, your system is too slow
[ 31438.982] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 31438.982] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 31438.982] (--) NVIDIA(GPU-0): DFP-1: 2670.0 MHz maximum pixel clock
[ 31438.982] (--) NVIDIA(GPU-0): 
[ 31439.727] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 31439.929] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +0+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 31440.234] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): connected
[ 31440.234] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): Internal DisplayPort
[ 31440.234] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): 2670.0 MHz maximum pixel clock
[ 31440.234] (--) NVIDIA(GPU-0): 
[ 31441.052] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
[ 31441.115] (II) NVIDIA(0): Setting mode "DP-2: 2560x1440_165 @2560x1440 +701+2160 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}, DP-0: nvidia-auto-select @3840x2160 +0+0 {ViewPortIn=3840x2160, ViewPortOut=3840x2160+0+0}"
[ 31466.384] (EE) client bug: timer event5 debounce short: scheduled expiry is in the past (-22ms), your system is too slow
[ 31493.590] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 33ms, your system is too slow
[ 31566.190] (EE) event3  - Metadot - Das Keyboard DK4Q: client bug: event processing lagging behind by 36ms, your system is too slow
[ 31586.354] (EE) event5  - Logitech MX Master 3: client bug: event processing lagging behind by 21ms, your

Is there anything else I could do that would help to find the issue?
Thanks
nvidia-bug-report.log.gz (847.2 KB)

KDE is handling display arrangement with the kscreen2 service so don’t set any in xorg.conf.

Maybe alternatively, you could turn off KScreen 2?

On openSUSE, it’s Settings->System Settings->Background Services/Startup Services/KScreen 2. KScreen 2, I find, is useful for something like a laptop, where you might add/remove monitors, but for a fixed system, KScreen 2 isn’t really needed, as the monitor configuration isn’t dynamic.

Thanks, turning of KScreen 2 helped.

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