Lenovo Legion 7 Pro - Unable to suspend

Hi, great community of Manjaro!

Among other problems with running Manjaro on Lenovo Legion 7 Pro, the one that troubles the most is inability to suspend it.

First of all, I installed optimus-manager with a hope to be able to seamlessly switch between integrated and nvidia graphics cards, but this will wait for some time because I can’r run external displays without nvidia, but that story is for some other topic.

So, I’m running optimus with nvidia as my usual mode. When I try to suspend the notebook (either by closing the lid or clicking suspend), notebook looks like it’s going to sleep, but it wakes up few seconds later with sddm login screen. After login, integrated graphics card is active.

I captured full journalctl from suspend attempt to waking up:

I’m running xorg since I have stability issues with Wayland.

Any help in journalctl log decypher and suggestions would be great.

My system info:

eden@echo:[~]: inxi -Fazy                                                                                                                                                                   
System:
  Kernel: 6.7.7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.7-x86_64
    root=UUID=a340900a-5d25-4116-ae33-86942b95dca6 rw quiet
    cryptdevice=UUID=acc2baf7-f037-4bb7-8dc7-682bea6d1aad:luks-acc2baf7-f037-4bb7-8dc7-682bea6d1aad
    root=/dev/mapper/luks-acc2baf7-f037-4bb7-8dc7-682bea6d1aad splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 info: frameworks
    v: 5.115.0 wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82WS v: Legion Pro 7 16ARX8H
    serial: <superuser required> Chassis: type: 10 v: Legion Pro 7 16ARX8H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    part-nu: LENOVO_MT_82WS_BU_idea_FM_Legion Pro 7 16ARX8H
    uuid: <superuser required> UEFI: LENOVO v: LPCN49WW date: 01/10/2024
Battery:
  ID-1: BAT0 charge: 102.5 Wh (99.0%) condition: 103.5/99.9 Wh (103.6%)
    volts: 17.7 min: 15.5 model: SMP L22M4PC1 type: Li-poly serial: <filter>
    status: full cycles: 5
  Device-1: hidpp_battery_2 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: AMD Ryzen 9 7945HX with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 4 gen: 5 level: v4 note: check built: 2022+ process: TSMC n5 (5nm)
    family: 0x19 (25) model-id: 0x61 (97) stepping: 2 microcode: 0xA601206
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 16 MiB desc: 16x1024 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 858 high: 3492 min/max: 400/5461 scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 3254 3: 400
    4: 400 5: 3492 6: 400 7: 3446 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
    14: 3481 15: 2994 16: 400 17: 400 18: 400 19: 400 20: 400 21: 400 22: 400
    23: 400 24: 400 25: 400 26: 400 27: 400 28: 400 29: 400 30: 400 31: 400
    32: 400 bogomips: 159765
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB: conditional,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA AD104M [GeForce RTX 4080 Max-Q / Mobile] vendor: Lenovo
    driver: nvidia v: 550.54.14 alternate: nouveau,nvidia_drm non-free: 545.xx+
    status: current (as of 2024-02) arch: Lovelace code: AD1xx
    process: TSMC n4 (5nm) built: 2022+ pcie: gen: 2 speed: 5 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: none off: DP-3 empty: DP-1,
    DP-2, HDMI-A-1, eDP-2 bus-ID: 01:00.0 chip-ID: 10de:27e0 class-ID: 0300
  Device-2: AMD Raphael vendor: Lenovo driver: amdgpu v: kernel arch: RDNA-2
    code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: none bus-ID: 05:00.0
    chip-ID: 1002:164e class-ID: 0300 temp: 59.0 C
  Device-3: 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:4
    chip-ID: 30c9:00ac class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia dri: radeonsi
    gpu: amdgpu,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6400x2160 s-dpi: 96 s-size: 1691x571mm (66.57x22.48")
    s-diag: 1785mm (70.27")
  Monitor-1: DP-3 mapped: DP-5 note: disabled pos: primary,top-left
    model: LG (GoldStar) HDR 4K serial: <filter> built: 2022 res: 3840x2160
    hz: 60 dpi: 140 gamma: 1.2 size: 697x392mm (27.44x15.43")
    diag: 806mm (31.7") ratio: 16:9 modes: max: 3840x2160 min: 640x480
  Monitor-2: eDP-1 mapped: eDP-1-1 pos: bottom-r model: BOE Display 0x0b11
    serial: <filter> built: 2022 res: 2560x1600 hz: 240 dpi: 188 gamma: 1.2
    size: 345x215mm (13.58x8.46") diag: 407mm (16") ratio: 16:10 modes:
    max: 2560x1600 min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
    drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast surfaceless:
    drv: nvidia x11: drv: nvidia inactive: gbm,wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.54.14
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4080 Laptop
    GPU/PCIe/SSE2 memory: 11.71 GiB
  API: Vulkan v: 1.3.279 layers: 1 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 4080 Laptop GPU driver: nvidia v: 550.54.14
    device-ID: 10de:27e0 surfaces: xcb,xlib device: 1 type: integrated-gpu
    name: AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO) driver: mesa radv
    v: 24.0.2-manjaro1.1 device-ID: 1002:164e surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
    driver: snd_rpl_pci_acp6x v: kernel alternate: snd_pci_acp3x,
    snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh,
    snd_sof_amd_acp63 pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.7.7-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    vendor: Lenovo driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14c3:0616 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo RTL8111/8168/8411 driver: r8168 v: 8.052.01-NAPI
    modules: r8169 pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000
    bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0 state: down mac: <filter>
  IF-ID-1: br-f5e45f322306 state: down mac: <filter>
  IF-ID-2: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
  IF-ID-3: veth2e2a7fe state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-4: veth5a2f728 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-5: vethabffa45 state: up speed: 10000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager, ntpd, sshd, systemd-timesyncd,
    wpa_supplicant
Bluetooth:
  Device-1: Foxconn / Hon Hai Bluetooth Adapter driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-1.1:3
    chip-ID: 0489:e0d8 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 226.36 GiB (23.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVL21T0HCLR-00BL2
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: EL1QGXA7 temp: 45.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 953.57 GiB size: 937.53 GiB (98.32%)
    used: 226.33 GiB (24.1%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-acc2baf7-f037-4bb7-8dc7-682bea6d1aad
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 32.4 MiB (10.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 62.1 C mobo: 50.0 C
  Fan Speeds (rpm): N/A
  GPU: device: nvidia screen: :0.0 temp: 48 C device: amdgpu temp: 59.0 C
Info:
  Memory: total: 32 GiB note: est. available: 30.54 GiB used: 5.12 GiB (16.8%)
  Processes: 551 Power: uptime: 5h 45m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 1 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.18 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1475 libs: 385 tools: octopi,pamac,yay
    pm: flatpak pkgs: 0 Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9
    running-in: konsole inxi: 3.3.33
eden@echo:[~]: mhwd --list                                                                                                                                                                  
> 0000:01:00.0 (0300:10de:27e0) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
          video-nvidia            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:05:00.0 (0300:1002:164e) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:04:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2023.09.12                true            PCI

did it happened also before you installed optimus? if not remove optimus and its configs, reboot and try again

Update: Suspend seems to work, but only when I disconnect external display prior to suspend. Strange, but it works.

I uninstalled optimus-manager and installed envycontrol. My notebook is running in hybrid mode.

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