Laptop Fails To Hibernate (Intermittent Issue) - Log Files To Troubleshoot?

Hello Everyone,

I have an occasional hibernate issue with my laptop, specifically under the ‘SuspendThenHibernate’ setting, it fails to work on my Manjaro Gnome (under Wayland) installation on my Dell XPS. Most of the time, it works without issues…however recently (after the last update), it fails to hibernate properly. Even when I execute:

systemctl hibernate

The laptop will act like it is going to hibernate (screen goes dark), and then a few seconds later I am back at my login screen (GDM). If I restart my machine, and then try to execute the hibernate command again, it will work correctly without issue.

So, I am trying to troubleshoot this issue properly. Is there any log files or anything I can check to see why my machine FAILS to hibernate? As I said, I know I can perform a restart and I’m back in a good working state, but I want to see if I can solve this issue permanently.

If I can provide any additional information to assist in the troubleshooting process, please let me know. Thank you in advance for all of your time and help, it is greatly appreciated!

Thanks,
Asif

Grabbed my journalctl log, it definitely lists a few things around failed hibernation:

Output:

Feb 17 06:32:03 aahmad-xps systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 06:32:02 aahmad-xps rtkit-daemon[727]: Successfully demoted thread 1015 of process 1005.
Feb 17 06:32:03 aahmad-xps systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Feb 17 06:32:02 aahmad-xps rtkit-daemon[727]: Successfully demoted thread 1005 of process 1005.
Feb 17 06:32:03 aahmad-xps systemd[1]: Failed to start Hibernate.
Feb 17 06:32:02 aahmad-xps rtkit-daemon[727]: Successfully demoted thread 1014 of process 1003.
Feb 17 06:32:03 aahmad-xps systemd[1]: Dependency failed for System Hibernation.
Feb 17 06:32:02 aahmad-xps rtkit-daemon[727]: Successfully demoted thread 1003 of process 1003.
Feb 17 06:32:03 aahmad-xps systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Feb 17 06:32:02 aahmad-xps rtkit-daemon[727]: Demoted 5 threads.
Feb 17 06:32:03 aahmad-xps systemd[1]: systemd-hibernate.service: Consumed 7.123s CPU time.

The whole log is here:
Log:
https://justpaste.it/6nvrm

Any ideas / feedback would be super helpful. Thanks everyone!

may you tell us a more detailed information. what dell xps for example ? please read the link and provide as minimum the requested basic infos. it’s a blame-game without them

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    [HowTo] Provide System Information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

Sure, no problem:

  1. System Information:
OS: Manjaro Linux x86_64 
Host: XPS 13 9350 
Kernel: 5.16.7-1-MANJARO 
hell: zsh 5.8 
DE: GNOME 41.3 
Terminal: gnome-terminal 
CPU: Intel i5-6200U (4) @ 2.800GHz 
GPU: Intel Skylake GT2 [HD Graphics 520] 
Memory: 3998MiB / 7813MiB 
  1. inxi Output:
System:
  Kernel: 5.16.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
    root=UUID=501de8bc-72f3-4eb8-8dd8-eb0381f16ebc ro
    resume=UUID=2314cba6-fa6e-443b-8fc2-de4d6ad99ffe apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: XPS 13 9350 v: N/A
    serial: <superuser required> Chassis: type: 9 serial: <superuser required>
  Mobo: Dell model: 076F9T v: A00 serial: <superuser required> UEFI: Dell
    v: 1.13.0 date: 02/10/2020
Battery:
  ID-1: BAT0 charge: 42.6 Wh (81.6%) condition: 52.2/57.5 Wh (90.7%)
    volts: 8.0 min: 7.6 model: SMP DELL JHXPY53 type: Li-poly serial: <filter>
    status: Discharging
Memory:
  RAM: total: 7.63 GiB used: 4.34 GiB (56.9%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-6200U bits: 64 type: MT MCP arch: Skylake
    family: 6 model-id: 0x4E (78) stepping: 3 microcode: 0xEA
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 2734 high: 2764 min/max: 400/2800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 2715 2: 2714 3: 2746
    4: 2764 bogomips: 19204
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
    f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
    hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm
    lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae
    pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti
    pts rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2
    sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  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: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Dell driver: i915
    v: kernel bus-ID: 00:02.0 chip-ID: 8086:1916 class-ID: 0300
  Device-2: Microdia Integrated Webcam HD type: USB driver: uvcvideo
    bus-ID: 1-5:3 chip-ID: 0c45:670c class-ID: 0e02
  Display: wayland server: X.org 1.21.1.3 compositor: gnome-shell driver:
    loaded: intel unloaded: modesetting alternate: fbdev,vesa display-ID: 0
    resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70
    class-ID: 0403
  Sound Server-1: ALSA v: k5.16.7-1-MANJARO running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.45 running: yes
Network:
  Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel bus-ID: 3a:00.0
    chip-ID: 8086:24f3 class-ID: 0280
  IF: wlp58s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-3:2 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 16 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 32.13 GiB (13.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM951 NVMe 256GB
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: BXV77D0Q temp: 41.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 79 GiB size: 77.26 GiB (97.80%) used: 19.69 GiB (25.5%)
    fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A
    uuid: 501de8bc-72f3-4eb8-8dd8-eb0381f16ebc
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 26.6 MiB (27.7%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 7294-110C
  ID-3: /home raw-size: 80 GiB size: 78.24 GiB (97.81%)
    used: 10.39 GiB (13.3%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
    label: N/A uuid: 82acc9d6-e635-41ea-86f7-b8d09946a03e
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
  ID-1: swap-1 type: partition size: 3.84 GiB used: 2.03 GiB (52.8%)
    priority: -2 dev: /dev/nvme0n1p7 maj-min: 259:7 label: N/A
    uuid: 2314cba6-fa6e-443b-8fc2-de4d6ad99ffe
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 499 MiB fs: ntfs label: N/A
    uuid: 4CB29579B295686A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 75.04 GiB fs: ntfs label: DRIVE
    uuid: 022401A424019C33
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2b class-ID: e001
  Device-2: 1-5:3 info: Microdia Integrated Webcam HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:670c class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 52.0 C pch: 46.0 C mobo: 39.0 C sodimm: SODIMM C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 280 Uptime: 2d 6h 25m wakeups: 27 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.1 Packages: pacman: 1505
  lib: 447 flatpak: 0 Shell: Zsh v: 5.8 running-in: gnome-terminal
  inxi: 3.3.12
  1. Journalctl Log

If I can provide any additional information, please let me know. Thank you for your guidance @Olli !

there are some useful links to your laptop that might help but will give you more information to your laptop. if you read them, there is support from dell and some hints. it’s important to update your firmware to the latest as described at the forum-links and the dell-support site.

https://wiki.archlinux.org/title/Dell_XPS_13_(9350)
https://bbs.archlinux.org/viewtopic.php?pid=1579113
https://www.dell.com/support/home/de-de/product-support/product/xps-13-9350-laptop/drivers

Thank you @Olli, I appreciate the basic troubleshooting + Dell links for my specific laptop. I have updated my firmware / BIOS to the latest version, and have been running this specific instance (installation) of Manjaro for over a year now. I do not believe this is a Dell driver issue, since it is NOT consistent, and the problem fixes itself on a fresh boot (I am able to hibernate successfully).

Since this is an intermittent issue, and there are several ‘hibernate failed’ messages in the Journalctl log snippet I pasted above, I believe the ‘root-cause’ of the issue is there. I am trying to parse through it now and see what I can identify.

If you have any other ideas or need additional information / logs, please let me know. Thanks @Olli !

okay, but we needed to know that the bios/firmware is up-to-date to be sure that it is not related to that silly flaw.

Makes sense, I can confirm everything is up to date on the BIOS / Firemware side. Thanks!

Feb 17 06:32:03 aahmad-xps systemd-sleep[30432]: Failed to put system to sleep. System resumed again: No space left on device

One way would be to increase swap size.

‘SuspendThenHibernate’ setting, it fails to work on my Manjaro Gnome (under Wayland) installation on my Dell XPS. Most of the time, it works without issues…however recently (after the last update), it fails to hibernate properly. Even when I execute:


Memory:
  RAM: total: 7.63 GiB used: 4.34 GiB (56.9%)
  
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
  ID-1: swap-1 type: partition size: 3.84 GiB used: 2.03 GiB (52.8%)

Is it possible that your ratio of used RAM and needed SWAP is too close. If you check the payload it could be critical in some situations that hibernation is not able, because there is not enough swap-space. in this case hibernation disrupts and stop the hibernation process. that would explain that hibernation doesn’t work only in some situations (when ratio of needed swap to used Ram is too close)

Just a thought, you are using nvme’s and by the fact that the lifetime of them is limited by the write-cycles i would not recommend hibernation and recommend to use the sleep (suspend to RAM) option instead.

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate

Thanks @ishaanbhimwal, I just saw that same error. I believe I still have lots of space on my “home” partition, looking at the used parameter:

 ID-3: /home raw-size: 80 GiB size: 78.24 GiB (97.81%) used: 10.39 GiB (13.3%) 

It looks like I am only using 10.39GB (13.3%) out of 78GB currently allocated. Similarly with the ‘raw-size’ partition it looks like I am only using 26% of the total space.

Possible SolutIon:
Currently, my swap partition is 3.84GB and as you correctly stated, it appears that is too small and there is not enough space to hibernate successfully (also explains why it works on a fresh boot when the swap partition is relatively fresh and empty). Is an easy way to fix the issue to increase the swap partition by reallocating some of the free GBs that I have from my home directory?

Follow-up Question:
If “stealing” some of my free GBs from my home partition is a valid solution, the next question is in terms of sizing. How large should I make the swap partition? 8GB total size (currently 3.84GB in total size) a good starting point?

Thanks @ishaanbhimwal and @olli, I super appreciate the help so far!

as already mentioned, the lifetime of the nvme’s is limited of their write-cycles. by using hibernation the lifetime of them drops down. the ram is powered even in hibernation/sleep. it’s a lot more effective to setup the sleep-mode (Suspend to RAM). in this case your nvme’s will be thankful and last much longer.

If you are using hibernation then swap size should be double the ram size. So in this case → 16GB.

Awesome, thank you @ishaanbhimwal !

well, why are you still using a swap-partition ? this is a ancient way, nowadays there’s the possibility to use a swapfile and you don’t have to think over size of swap.
https://wiki.archlinux.org/title/Swap#Swap_file

@A4orce84 If you want to increase the swap partition you can boot with a live usb and use a tool like gparted or kde disk manager to do so. As suggested above you can also create a swapfile as that is way easier than playing with partitions. Also see Swap - Manjaro.

Thanks everyone. I was able to increase my swap size by allocating some more GBs to it after shrinking my home partition slightly. I will give a swapfile a try the next time I do a full re-install of my system.

For now, a quick 5-minute partition change (to properly fix the issue in terms of space) was a lot easier to me to get things working properly again.

Thanks again @ishaanbhimwal and @Olli, I’ll do some reading regarding swapfiles and see how to set it up in the future.

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