PC won't sleep after update

Ok, so there may have been several updates ago that the issue started, since I haven’t used the sleep function on my computer for several months.

What happens now is that if I try putting the computer to sleep is that the display goes black for a second, peripherals (keyboard, mouse, microphone) blink off and on, and I’m back in the desktop session again. This happens whether I use the power button, select sleep from the power menu, or prompt sleep from the terminal.

I haven’t changed any settings in power management or display manager, all I can tell is this has happened sometime after Wayland became the default.

What I’ve tried:
Changed from Wayland to X11 session and back again - same result.
Checked settings in power management.
Disconnected peripherals one by one in case some of them are sending a wake-up signal somehow.

Can someone please point me in the right direction as to which logs etc I need to check?

Specs:
AMD Ryzen 5, 16gb RAM, Nvidia GTX 1650

Do you have nvidia-suspend.service and nvidia-resume.service enabled?

systemctl enable nvidia-suspend nvidia-resume

Then try sleeping.

If you get a black screen on resume, you may also need to preserve video memory:

$ sudo nano /etc/modprobe.d/nvidia.conf

options nvidia NVreg_PreserveVideoMemoryAllocations=1

$ sudo mkinitcpio -P
$ sudo nano /etc/default/grub

Then reboot.

https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend

Can we get a better system info snapshot?

inxi -Farz
System:
  Kernel: 6.12.1-4-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.12-x86_64
    root=UUID=8d0b8859-fe9f-4a99-bfc2-bdb10fde7e10 rw nvidia_drm.modeset=1
    nvidia_drm.fbdev=1 quiet apparmor=1 security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A info: frameworks v: 6.8.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: LENOVO product: 90L50016MW v: IdeaCentre T540-15AMA G
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: LENOVO model: 3148 v: SDK0J40700 WIN 3258167500689
    serial: <superuser required> part-nu: LENOVO_MT_90L5_BU_Lenovo_FM_IdeaCentre
    T540-15AMA G uuid: <superuser required> UEFI: LENOVO v: M2CKT30A
    date: 02/20/2020
CPU:
  Info: model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 gen: 2
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 6 threads: 12 tpc: 2
    smt: enabled cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB
    desc: 6x512 KiB L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 2137 min/max: 2200/4208 boost: enabled scaling:
    driver: acpi-cpufreq governor: schedutil cores: 1: 2137 2: 2137 3: 2137
    4: 2137 5: 2137 6: 2137 7: 2137 8: 2137 9: 2137 10: 2137 11: 2137 12: 2137
    bogomips: 86435
  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: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  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: Retpolines; IBPB: conditional; STIBP:
    always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: ZOTAC driver: nvidia
    v: 550.135 alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current
    (as of 2024-09; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 3 speed: 8 GT/s
    lanes: 16 ports: active: none off: DP-2 empty: DP-1,HDMI-A-1
    bus-ID: 0d:00.0 chip-ID: 10de:1f82 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 108 s-size: 602x342mm (23.70x13.46")
    s-diag: 692mm (27.26")
  Monitor-1: DP-2 note: disabled model: AOC Q27G2SG4 serial: <filter>
    built: 2024 res: 2560x1440 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.135
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
    memory: 3.91 GiB
  API: Vulkan v: 1.3.295 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce GTX 1650 driver: nvidia v: 550.135 device-ID: 10de:1f82
    surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA vendor: ZOTAC driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 0d:00.1 chip-ID: 10de:10fa class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: C-Media Svive Hydra Elite
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-14:3 chip-ID: 0d8c:0155 class-ID: 0300
  API: ALSA v: k6.12.1-4-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off with: nsmd status: off tools: N/A
  Server-2: PipeWire v: 1.2.7 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 09:00.0 chip-ID: 10ec:c82f
    class-ID: 0280
  IF: wlp9s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: d000 bus-ID: 0c:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp12s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-2:2 chip-ID: 0bda:c02f
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 1.38 TiB used: 763.13 GiB (54.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB512HBJQ-000L7 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 4M2QEXF7 temp: 28.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LX015-1U7172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: SDM1 scheme: GPT
Partition:
  ID-1: / raw-size: 113.56 GiB size: 111.22 GiB (97.94%)
    used: 83.16 GiB (74.8%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 29.1 MiB (11.4%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 931.51 GiB size: 915.81 GiB (98.31%)
    used: 677.8 GiB (74.0%) fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 12.03 GiB used: 2.14 GiB (17.8%)
    priority: -2 dev: /dev/nvme0n1p6 maj-min: 259:6
Sensors:
  System Temperatures: cpu: 68.1 C mobo: N/A gpu: nvidia temp: 37 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 20%
Repos:
  Packages: 2088 pm: pacman pkgs: 2065 libs: 510 tools: pamac pm: flatpak
    pkgs: 23
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirror.raiolanetworks.com/manjaro/testing/$repo/$arch
    2: https://southfront.mm.fcix.net/manjaro/testing/$repo/$arch
    3: https://ziply.mm.fcix.net/manjaro/testing/$repo/$arch
    4: https://ba.mirror.garr.it/mirrors/manjaro/testing/$repo/$arch
    5: https://edgeuno-bog2.mm.fcix.net/manjaro/testing/$repo/$arch
    6: https://mirrors.xtom.jp/manjaro/testing/$repo/$arch
    7: https://mirror.aarnet.edu.au/pub/manjaro/testing/$repo/$arch
    8: https://manjaro.c3sl.ufpr.br/testing/$repo/$arch
Info:
  Memory: total: 16 GiB available: 15.55 GiB used: 10.74 GiB (69.1%)
  Processes: 439 Power: uptime: 4d 9h 52m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 6.16 GiB
    services: org_kde_powerdevil,upowerd Init: systemd v: 256
    default: graphical tool: systemctl
  Compilers: clang: 18.1.8 gcc: 14.2.1 alt: 13 Shell: Bash v: 5.2.37
    running-in: yakuake inxi: 3.3.36

That did it, thanks! Must have been disabled during some upgrade.

1 Like

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