Sleep - how to?

My laptop is no longer sleeping.
Shutting the lid for example will send it to a wall of text.

sleep.conf

[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
MemorySleepMode=deep
#HibernateDelaySec=
#HibernateOnACPower=yes
#SuspendEstimationSec=60min
systemctl list-unit-files | grep nvidia
nvidia-hibernate.service                                                  enabled         disabled
nvidia-persistenced.service                                               disabled        disabled
nvidia-powerd.service                                                     disabled        disabled
nvidia-resume.service                                                     enabled         disabled
nvidia-suspend-then-hibernate.service                                     disabled        disabled
nvidia-suspend.service                                                    enabled         disabled
garuda-inxi
System:
  Kernel: 6.12.15-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=cfe58ff1-10f6-4a0f-bf00-e7c82f3b3a89 rw rootflags=subvol=@
    quiet resume=UUID=804a5b91-748b-4e0e-9b50-cd4994cf4a32 loglevel=3
    snd_hda_intel.dmic_detect=0 ibt=off
  Desktop: KDE Plasma v: 6.3.1 tk: Qt v: N/A info: frameworks v: 6.11.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Precision 5520 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0R6JFH v: A00 serial: <superuser required> part-nu: 07BF
    uuid: <superuser required> UEFI: Dell v: 1.40.0 date: 09/03/2024
Battery:
  ID-1: BAT0 charge: 21.6 Wh (36.4%) condition: 59.3/97.1 Wh (61.1%)
    volts: 12.0 min: 11.8 model: LGC-LGC8.33 DELL 5XJ28 type: Li-ion
    serial: <filter> status: charging
CPU:
  Info: model: Intel Core i7-7820HQ bits: 64 type: MT MCP arch: Kaby Lake
    gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF8
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 threads: 8 tpc: 2
    smt: enabled cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB
    desc: 4x256 KiB L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 800 min/max: 800/3900 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 bogomips: 46419
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Dell driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:591b
    class-ID: 0300
  Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] vendor: Dell
    driver: nvidia v: 570.86.16 alternate: nouveau,nvidia_drm
    non-free: 550/565.xx+ status: current (as of 2025-01; EOL~2026-12-xx)
    arch: Maxwell code: GMxxx process: TSMC 28nm built: 2014-2019 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0
    chip-ID: 10de:13b6 class-ID: 0302
  Device-3: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-12:3
    chip-ID: 0c45:6713 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.5
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: Sharp 0x1453 built: 2015 res: mode: 1920x1080
    hz: 60 scale: 100% (1) dpi: 141 gamma: 1.2 size: 346x194mm (13.62x7.64")
    diag: 397mm (15.6") ratio: 16:9 modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris gbm: drv: iris surfaceless: drv: nvidia x11:
    drv: iris inactive: wayland
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 24.3.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 630 (KBL GT2)
    device-ID: 8086:591b memory: 15.17 GiB unified: yes
  API: Vulkan v: 1.4.303 layers: 5 device: 0 type: integrated-gpu name: Intel
    HD Graphics 630 (KBL GT2) driver: N/A device-ID: 8086:591b
    surfaces: xcb,xlib device: 1 type: discrete-gpu name: Quadro M1200
    driver: N/A device-ID: 10de:13b6 surfaces: xcb,xlib device: 2 type: cpu
    name: llvmpipe (LLVM 19.1.7 256 bits) driver: N/A device-ID: 10005:0000
    surfaces: xcb,xlib
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel CM238 HD Audio vendor: Dell driver: snd_soc_avs v: kernel
    alternate: snd_hda_intel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
  API: ALSA v: k6.12.15-1-lts status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:08b2 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: wg0-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
  Info: services: NetworkManager, smbd, sshd, systemd-timesyncd,
    wpa_supplicant
Drives:
  Local Storage: total: 1.86 TiB used: 1.38 TiB (74.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: SX8200PNP
    size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 42AZS6AC temp: 32.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 1.83 TiB size: 1.83 TiB (100.00%) used: 1.38 TiB (75.5%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 20.1 MiB (6.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 1.83 TiB size: 1.83 TiB (100.00%)
    used: 1.38 TiB (75.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 1.83 TiB size: 1.83 TiB (100.00%)
    used: 1.38 TiB (75.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 1.83 TiB size: 1.83 TiB (100.00%)
    used: 1.38 TiB (75.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 34.18 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: swap-2 type: zram size: 31.07 GiB used: 19.2 MiB (0.1%)
    priority: 100 comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842
    max-streams: 8 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C pch: 42.0 C mobo: 42.0 C
  Fan Speeds (rpm): cpu: 2501 fan-2: 2487
Info:
  Memory: total: 32 GiB note: est. available: 31.07 GiB used: 7.11 GiB (22.9%)
  Processes: 341 Power: uptime: 9m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.37 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 257 default: graphical tool: systemctl
  Packages: 1787 pm: pacman pkgs: 1786 libs: 466 tools: octopi,paru
    pm: flatpak pkgs: 1 Compilers: clang: 19.1.7 gcc: 14.2.1 Shell: garuda-inxi
    default: fish v: 3.7.1 running-in: konsole inxi: 3.3.37
Garuda (2.6.26-1.1):
  System install date:     2024-05-31
  Last full system update: 2025-02-20
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:       

hello Anarchotaoist,

can you try to enable it and check it again please .

sudo systemctl enable nvidia-suspend-then-hibernate.service
systemctl list-unit-files | grep nvidia
nvidia-hibernate.service                                                  enabled         disabled
nvidia-persistenced.service                                               disabled        disabled
nvidia-powerd.service                                                     disabled        disabled
nvidia-resume.service                                                     enabled         disabled
nvidia-suspend-then-hibernate.service                                     enabled         disabled
nvidia-suspend.service                                                    enabled         disabled

Thanks but, it did not work.
What do the 2 columns mean? The first says enabled, but the 2nd says disabled!

So the service is enabled and after reboot didnt work.

Since when the issue happens? After a update? Then you can try a snapshot before the update.

Those double disabled i dont know exactly here. On debian means active or enabled services and second means vendor.

Correct. Enabled, then rebooted - but not working.

It started weeks ago. I do not know the trigger sorry!

nvidia-smi
Fri Feb 21 01:54:40 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.86.16              Driver Version: 570.86.16      CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  Quadro M1200                   Off |   00000000:01:00.0 Off |                  N/A |
| N/A   50C    P8             N/A /  200W |       7MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A             865      G   /usr/lib/Xorg                             2MiB |
+-----------------------------------------------------------------------------------------+

This mentions Cuda.
I do not have Cuda installed.
Relevant??

An improvement?

I set 'When sleeping, enter: to Hybrid sleep - previously set on ‘standby’

The system on lid close or timeout now goes to the logout screen - even though I have set ‘When inactive’ to ‘sleep’ and not show logout screen.

Logout screen flashes on and off every 75 seconds.
Who knows if it is in any sort of actual sleep mode!

When triggering sleep via the logout buttons it crashes to the error print still.

no is not relevant for it.

i should think thats another issue with the nvidia driver again. Many people reporting problems. i will look arround but my mobile data is bad today.

1 Like

can you try to enable also the nvidia-powerd.service and try again. other users disable it and works but maybe you need it ?

sudo systemctl enable nvidia-powerd.service (its own nvidia power manager)

also check that you have these packages installed.

sudo pacman -S nvidia nvidia-utils nvidia-settings

which error message you get?

sudo pacman -S nvidia nvidia-utils nvidia-settings
warning: nvidia-utils-570.86.16-2 is up to date -- reinstalling
warning: nvidia-settings-570.86.16-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
:: nvidia-570.86.16-7 and nvidia-dkms-570.86.16-2 are in conflict (NVIDIA-MODULE). Remove nvidia-dkms? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-dkms breaks dependency 'nvidia-dkms' required by garuda-nvidia-config

ups my mistake because you have a integraded one

sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings

No luck. The system still crashes after enabling this.

i dont have a nvidia card installed for testings.

after the wakeup which error it shows?( write down the error or take a picture and upload it)

did you try other tty`s with ctrl+alt+ F3 to get a login screen back?

Yes, It does not work.

did you get a login screen (black and white)output???

you can try to login with your user account and password ???

Sorry .But im not an nvidia user and intel user . i only can search for it but do get many nvidia issues due linux there are so many written on Forums ,Github>Gitlab>Reddit>Archwiki>GARUDA and many more about it.

Wait for Nvidia Hardcore User may they can more help but i use this some times as AMD Fan and it works.

  1. sudo systemctl stop sddm(wait some seconds if i had some running music it plays but stopped)
  2. sudo systemctl start sddm now you got the login plasma back and login.
  3. cant work the first time but sometime second try it comes back or try other tty with (ctrl+alt+) F4.

i read somewhere on arch wiki to do also try to unload and reload the module sudo modeprobe -r nvidia-dkms and sudo modeprobe nvidia-dkms but i cant approve it.

This looks relevant. ?

dkms status
nvidia/550.78: broken

Error! nvidia/550.78: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/550.90.07: broken

Error! nvidia/550.90.07: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/555.58: broken

Error! nvidia/555.58: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/555.58.02: broken

Error! nvidia/555.58.02: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/560.35.03: broken

Error! nvidia/560.35.03: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/565.57.01: broken

Error! nvidia/565.57.01: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/565.77: broken

Error! nvidia/565.77: Missing the module source directory or the symbolic link pointing to it.
Manual intervention is required!
nvidia/570.86.16, 6.12.16-1-lts, x86_64: installed
nvidia/570.86.16, 6.6.72-1-lts, x86_64: installed (Original modules exist) (Built modules are missing in the kernel modules folder)

Error log

Feb 28 11:30:53 LuNoHo kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5

Feb 28 11:30:53 LuNoHo kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5

Feb 28 11:30:53 LuNoHo kernel: PM: Some devices failed to suspend, or early wake event detected

Feb 28 11:30:53 LuNoHo systemd-sleep[7172]: Failed to put system to sleep. System resumed again: Input/output error

Feb 28 11:30:53 LuNoHo systemd[1]: Failed to start System Hybrid Suspend+Hibernate.

Should we use a :crystal_ball: for this or do you post the corresponding error messages?

Try the nvidia-lts drivers for the lts kernel.

Check the settings in the “System Settings” → Screen Locking” or disable it as a test.

w/o any helpfull error messages = :crystal_ball:

How to fix this “problem” has already been answered here several times - please use the forum search. It is also in the archwiki: DKMS-Remove modules-ArchWiki

Check this: NVIDIA-Preserve video memory after suspend-ArchWiki


More helpful links: NVIDIA - ArchWiki / NVIDIA/Troubleshooting - ArchWiki / NVIDIA/Tips and tricks - ArchWiki / NVIDIA Optimus - ArchWiki

1 Like

Thanks for the assistance!

 sudo /usr/lib/octopi/octphelper -ts
[sudo] password for anarcho:         
resolving dependencies...
looking for conflicting packages...
:: nvidia-lts-1:570.86.16-6 and nvidia-dkms-570.86.16-2 are in conflict (NVIDIA-MODULE). Remove nvidia-dkms? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-dkms breaks dependency 'nvidia-dkms' required by garuda-nvidia-config
PAKtC

Please provide instructions on how to get such messages. Thanks.

Thanks. I had tried this but it through an error. I rm them manually.

Thanks. Both PreserveVideoMemoryAllocations: 1, and also TemporaryFilePath: "/var/tmp" are correct.