Laptop can't go to sleep with external monitor plugged in

Hi there, the machine is Lenovo Legion Pro 5 with Ryzen 9 7945HX and NVIDIA RTX 4060, this problem is occurring since the beginning (doesn’t matter if it is X11 or Wayland, or the driver version - 550, 560, 565, 570). (disregard the popOS screenshot, the problem is the same, I checked yesterday)

The problem is that the laptop can’t go to sleep, the monitor signal wakes it up
I tried with the built in HDMI port, as well as a type c to DP adapter.

Running the latest NVIDIA 570 drivers.

I posted the issue quite some time ago in the NVIDIA forum as well, but no solution was provided.

How can I solve this problem?

@aleksandarbayrev Is this dual graphics, AMD/Nvidia? Please show inxi -GSaz

hi @malcolmlewis
yes it is, but the laptop has a MUX switch, so I have disabled the integrated GPU

System:
  Kernel: 6.13.1-1-default arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.13.1-1-default
    root=UUID=6ab20148-c2ac-4aac-98f8-3a8b2bf48ce5 splash=silent quiet
    security=apparmor rd.driver.blacklist=nouveau amd_pstate=passive
    mitigations=auto
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A info: frameworks v: 6.10.0
    wm: kwin_wayland with: krunner tools: avail: xscreensaver vt: 3 dm: SDDM
    Distro: openSUSE Tumbleweed 20250209
Graphics:
  Device-1: NVIDIA AD107M [GeForce RTX 4060 Max-Q / Mobile] vendor: Lenovo
    driver: nvidia v: 570.86.16 alternate: nouveau,nvidia_drm
    non-free: 550/565.xx+ status: current (as of 2025-01) arch: Lovelace
    code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 4
    speed: 16 GT/s lanes: 8 ports: active: none off: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:28e0
    class-ID: 0300
  Device-2: Luxvisions Innotech Integrated Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.4:3
    chip-ID: 30c9:00ac class-ID: fe01 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
    compositor: kwin_wayland driver: X: loaded: nvidia
    unloaded: modesetting,vesa alternate: fbdev,nouveau,nv
    gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: eDP-1 model: California Institute of 0x161B/0x00006000
    serial: <filter> built: 2022 res: mode: 2560x1600 hz: 240 scale: 125% (1.25)
    to: 2048x1280 dpi: 189 gamma: 1.2 size: 344x215mm (13.54x8.46")
    diag: 406mm (16") ratio: 16:10 modes: 2560x1600
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia gbm:
    drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11: drv: nvidia
  API: OpenGL v: 4.6.0 vendor: nvidia v: 570.86.16 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
    memory: 7.81 GiB display-ID: :1.0
  API: Vulkan v: 1.4.304 layers: 2 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 4060 Laptop GPU driver: N/A device-ID: 10de:28e0
    surfaces: xcb,xlib,wayland
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr

@aleksandarbayrev Can you add fbdev=1 nvidia_drm.modeset=1 to the GRUB kernel options via YaST Bootloader, reboot and see if that helps.

the options are already set


image

@aleksandarbayrev well I wonder if deep down it still sees the AMD gpu, know issue with those and one has to add amdgpu.dc=0 for the monitor(s) to sleep.

Ever thought about using the AMD GPU and use the nvidia with Prime Render Offload instead?

I tried to enable the AMD GPU as well and the problem is the same there, will try with this parameter now.

And by the way the external monitors connectivity (doesn’t matter if it is HDMI or USB) - they are hooked to the NVIDIA GPU

amdgpu module is not loaded at all on my system when the iGPU is disabled, so that is not the culprit for sure

@aleksandarbayrev can you show the output from /sbin/lspci -nnk | grep -EA3 "VGA|Display|3D"

image

@aleksandarbayrev not really sure then, since it’s been an outstanding issue, the only solution to try is activating the amdgpu and try Prime Render Offload. When amdgpu is present add the boot option…

@aleksandarbayrev Have a look at these two threads, there are probably others…
https://forums.opensuse.org/t/having-trouble-keeping-my-screens-off/178084
https://forums.opensuse.org/t/black-screen-when-resuming-from-suspend-or-hibernation/176424

nope, I guess it is strictly related to NVIDIA for some reason, even made a check with Gemini for this

@aleksandarbayrev OK, hopefully some other AI can advise. Plus I don’t run Plasma…

I’ve reported the issue to NVIDIA Open Kernel module issue page in github

Pasting it here for reference if the issue is solved sometime in the future

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