Hibernate not working after update

Hi, maybe someone can help me out, after updating EndeavourOS one month ago, Hibernation does not work properly anymore, if I press the Hibernate button, the computer does shut down as expected, but after loading back up, all open applications like chrome, vscode, etc. are shut down, like they would be after a restart. So, basically, Hibernation looks like a restart on my computer now and not like before the update, where the entire workspace was saved and I could just continue my workflow.

I fresh reinstalled EndeavourOS yesterday, at the installation, I have chosen the (swap + hibernate) option, also tried out different Desktop environments like KDE, GNOME, but hibernation still does not work. And I also tested it with the LTS kernel, the latest Kernel and the zen Kernel, all with the same negative result.

A user from Reddit suggested that I run the journalctl command after a failed Hibernate, so this is what I got from it:

 [vincent@misato ~]$ journalctl
May 29 05:01:51 misato kernel: microcode: microcode updated early to revision 0xf0, date = 2021-11-12
May 29 05:01:51 misato kernel: Linux version 5.18.0-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU >
May 29 05:01:51 misato kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=4239f092-dd10-434c-a85d>
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
May 29 05:01:51 misato kernel: x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compa>
May 29 05:01:51 misato kernel: signal: max sigframe size: 2032
May 29 05:01:51 misato kernel: BIOS-provided physical RAM map:
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009efff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000b810dfff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b810e000-0x00000000b8143fff] ACPI data
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b8144000-0x00000000b84e5fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e6000-0x00000000b84e6fff] ACPI NVS
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e7000-0x00000000b84e7fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e8000-0x00000000c51a9fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c51aa000-0x00000000c68b1fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c68b2000-0x00000000c68c4fff] ACPI data
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c68c5000-0x00000000c6a7ffff] usable
lines 1-27...skipping...
May 29 05:01:51 misato kernel: microcode: microcode updated early to revision 0xf0, date = 2021-11-12
May 29 05:01:51 misato kernel: Linux version 5.18.0-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Tue, 24 May 2022 22:00:36 +0000
May 29 05:01:51 misato kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=4239f092-dd10-434c-a85d-1d85d62143eb rw cryptdevice=UUID=7ffe9a70-e015-4563-b708-392ac91c1362:luks-7ffe9a70-e015-4563-b708-392ac91c1362 root=/dev/mapper/luks-7ffe9a70-e015-4563-b708-3>
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
May 29 05:01:51 misato kernel: microcode: microcode updated early to revision 0xf0, date = 2021-11-12
May 29 05:01:51 misato kernel: Linux version 5.18.0-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP >
May 29 05:01:51 misato kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=4239f092-dd10-434c-a85d-1d85d62143eb rw cryptd>
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
May 29 05:01:51 misato kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
May 29 05:01:51 misato kernel: x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
May 29 05:01:51 misato kernel: x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
May 29 05:01:51 misato kernel: signal: max sigframe size: 2032
May 29 05:01:51 misato kernel: BIOS-provided physical RAM map:
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009efff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000b810dfff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b810e000-0x00000000b8143fff] ACPI data
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b8144000-0x00000000b84e5fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e6000-0x00000000b84e6fff] ACPI NVS
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e7000-0x00000000b84e7fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000b84e8000-0x00000000c51a9fff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c51aa000-0x00000000c68b1fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c68b2000-0x00000000c68c4fff] ACPI data
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c68c5000-0x00000000c6a7ffff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c6a80000-0x00000000c70a7fff] ACPI NVS
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c70a8000-0x00000000c7a8efff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c7a8f000-0x00000000c7afefff] type 20
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c7aff000-0x00000000c7afffff] usable
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000c7b00000-0x00000000c7ffffff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000fe000000-0x00000000fe010fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
May 29 05:01:51 misato kernel: BIOS-e820: [mem 0x0000000100000000-0x0000000436ffffff] usable
May 29 05:01:51 misato kernel: NX (Execute Disable) protection: active
May 29 05:01:51 misato kernel: efi: EFI v2.50 by American Megatrends
May 29 05:01:51 misato kernel: efi: ACPI 2.0=0xb810e000 ACPI=0xb810e000 SMBIOS=0xc7a01000 SMBIOS 3.0=0xc7a00000 ESRT=0xc3900158 
May 29 05:01:51 misato kernel: SMBIOS 3.0.0 present.
May 29 05:01:51 misato kernel: DMI: System manufacturer System Product Name/Z170 PRO GAMING, BIOS 3805 05/16/2018
May 29 05:01:51 misato kernel: tsc: Detected 3500.000 MHz processor
May 29 05:01:51 misato kernel: tsc: Detected 3499.912 MHz TSC
May 29 05:01:51 misato kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
May 29 05:01:51 misato kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
May 29 05:01:51 misato kernel: last_pfn = 0x437000 max_arch_pfn = 0x400000000
May 29 05:01:51 misato kernel: x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
May 29 05:01:51 misato kernel: last_pfn = 0xc7b00 max_arch_pfn = 0x400000000
May 29 05:01:51 misato kernel: found SMP MP-table at [mem 0x000fcc70-0x000fcc7f]
May 29 05:01:51 misato kernel: esrt: Reserving ESRT space from 0x00000000c3900158 to 0x00000000c3900190.
May 29 05:01:51 misato kernel: e820: update [mem 0xc3900000-0xc3900fff] usable ==> reserved
May 29 05:01:51 misato kernel: Using GB pages for direct mapping
May 29 05:01:51 misato kernel: Secure boot disabled
May 29 05:01:51 misato kernel: RAMDISK: [mem 0x35cc5000-0x36e59fff]
May 29 05:01:51 misato kernel: ACPI: Early table checksum verification disabled
May 29 05:01:51 misato kernel: ACPI: RSDP 0x00000000B810E000 000024 (v02 ALASKA)
May 29 05:01:51 misato kernel: ACPI: XSDT 0x00000000B810E0A8 0000C4 (v01 ALASKA A M I    01072009 AMI  00010013)
May 29 05:01:51 misato kernel: ACPI: FACP 0x00000000B8137480 000114 (v06 ALASKA A M I    01072009 AMI  00010013)
May 29 05:01:51 misato kernel: ACPI: DSDT 0x00000000B810E200 02927E (v02 ALASKA A M I    01072009 INTL 20160422)
May 29 05:01:51 misato kernel: ACPI: FACS 0x00000000C70A7C40 000040
May 29 05:01:51 misato kernel: ACPI: APIC 0x00000000B8137598 000084 (v03 ALASKA A M I    01072009 AMI  00010013)
May 29 05:01:51 misato kernel: ACPI: FPDT 0x00000000B8137620 000044 (v01 ALASKA A M I    01072009 AMI  00010013)
May 29 05:01:51 misato kernel: ACPI: BGRT 0x00000000B8142D78 000038 (v01 ALASKA A M I    01072009 AMI  00010013)
1 Like

Hi @maxyul and welcome to EnOSā€™ community!

Screenshot from 2022-05-29 19-59-28

*pressing :wink: :blush:

1 Like

Letā€™s gather some information:

  1. Please try to invoke hibernation (preferably after a clean boot) with
    systemctl hibernate

  2. Then post the output of

  • journalctl -b -u systemd-hibernate.service
  • journalctl -b -t systemd-sleep
  • journalctl -b | grep hiber

  1. Some (redundant :wink: ) general system info; just in caseā€¦
  • free -h
  • swapon --show
  • inxi -F
  • cat /etc/fstab | grep swap
  • cat /etc/default/grub | grep resume

Hi, so I did a clean boot, than invoked hibernation and this is what I got from the commands:

 journalctl -b -u systemd-hibernate.service
 
 [vincent@misato ~]$ journalctl -b -u systemd-hibernate.service
-- No entries --
journalctl -b -t systemd-sleep

[vincent@misato ~]$ journalctl -b -t systemd-sleep
-- No entries --
journalctl -b | grep hiber

[vincent@misato ~]$ journalctl -b | grep hiber
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0x00058000-0x00058fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x000fffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xb810e000-0xb8143fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xb84e6000-0xb84e6fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xb84e7000-0xb84e7fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc2389000-0xc23cefff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc3900000-0xc3900fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc51aa000-0xc68b1fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc68b2000-0xc68c4fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc6a80000-0xc70a7fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc70a8000-0xc7a8efff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc7a8f000-0xc7afefff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc7b00000-0xc7ffffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xc8000000-0xf7ffffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfc000000-0xfdffffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfe000000-0xfe010fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfe011000-0xfebfffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfec01000-0xfedfffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
May 30 16:45:23 misato kernel: PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff]
[vincent@misato ~]$
 free -h

[vincent@misato ~]$ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       1.5Gi        13Gi        78Mi       1.0Gi        13Gi
Swap:           17Gi          0B        17Gi
[vincent@misato ~]$
 swapon --show

[vincent@misato ~]$ swapon --show
NAME      TYPE       SIZE USED PRIO
/dev/dm-1 partition 17.1G   0B   -2
[vincent@misato ~]$
inxi -F

[vincent@misato ~]$ inxi -F
System:
  Host: misato Kernel: 5.18.0-arch1-1 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.24.5 Distro: EndeavourOS
Machine:
  Type: Desktop Mobo: ASUSTeK model: Z170 PRO GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3805
    date: 05/16/2018
Battery:
  ID-1: hidpp_battery_0 charge: 100% condition: N/A
CPU:
  Info: quad core model: Intel Core i5-6600K bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 900 min/max: 800/3900:4300 cores: 1: 900 2: 900 3: 900
    4: 900
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2070 Rev. A] driver: nvidia
    v: 515.43.04
  Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: nvidia
    unloaded: modesetting gpu: nvidia,nvidia-nvswitch
    resolution: 3840x2160~60Hz
  OpenGL: renderer: NVIDIA GeForce RTX 2070/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.43.04
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    driver: snd_hda_intel
  Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.18.0-arch1-1 running: yes
  Sound Server-2: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full
    mac: 34:97:f6:93:9a:d1
Drives:
  Local Storage: total: 931.51 GiB used: 10.14 GiB (1.1%)
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
Partition:
  ID-1: / size: 898.67 GiB used: 10.14 GiB (1.1%) fs: ext4 dev: /dev/dm-0
  ID-2: /boot/efi size: 299.4 MiB used: 448 KiB (0.1%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 17.12 GiB used: 0 KiB (0.0%)
    dev: /dev/dm-1
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 209 Uptime: 4m Memory: 15.57 GiB used: 1.84 GiB (11.8%)
  Shell: Bash inxi: 3.3.16
[vincent@misato ~]$
cat /etc/fstab | grep swap

[vincent@misato ~]$ cat /etc/fstab | grep swap
/dev/mapper/luks-f5fe9a42-a081-43ef-85f2-a41d16878890 swap           swap    defaults   0 0
[vincent@misato ~]$

cat /etc/default/grub | grep resume

[vincent@misato ~]$ cat /etc/default/grub | grep resume
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=7ffe9a70-e015-4563-b708-392ac91c1362:luks-7ffe9a70-e015-4563-b708-392ac91c1362 root=/dev/mapper/luks-7ffe9a70-e015-4563-b708-392ac91c1362 resume=/dev/mapper/luks-f5fe9a42-a081-43ef-85f2-a41d16878890 loglevel=3 nowatchdog nvme_load=YES nvidia-drm.modeset=1"
[vincent@misato ~]$

Ah, your system and swap partition are encrypted. Havenā€™t seen that in a while and may not be able to help as I havenā€™t set up something like that in ages. I used to manually set up logical volumes to help with the chain unlocking of swap and other ā€˜partitionsā€™ and havenā€™t followed how calamares sets this up now. I prefer a swapfile residing on the encrypted root drive (btrfs) nowadays.

Letā€™s see the output of ā€¦

  • cat /etc/fstab | grep -v '#'
  • sudo lvdisplay
  • sudo cat /etc/crypttab | grep -v '#'
  • cat /etc/mkinitcpio.conf | grep -v '#' | grep 'HOOKS\|FILES'

You could also try to manually regenerate the initramfs; this sometimes helps if files were changed and/or an update got botched.

sudo mkinitcpio -p linux
sudo grub-mkconfig -o /boot/grub/grub.cfg

Here are some starting points if you want to rebuild the encrypted swap partition from scratch:
dm-crypt: Using a swap partition
|ā€¦ mkinitcpio hook
dm-crypt: The encrypt hook and multiple disks


If you simply want to get hibernation working without reinstalling you could also just create and use a swapfile residing on your root instead of a dedicated swap partition. Check this old wiki entry of mine for some hints on how to achieve this. Scroll down to the section ā€œOPTIONAL ā€“ Add a swapfile (with working hibernation)ā€.