Help with hibernation / zram conflict

Hello Comunity.
First of all thank you for this great linux distribution. Everything works great.
I haven't been able to make hibernation work. I understand that zram (which comes by default in garuda) conflicts with hibernation.
To reach this I think I need to disable zram, which I think I disabled by:

sudo systemctl stop /dev/zram0

running swapon shows only my disk swap:

NAME           TYPE       SIZE   USED PRIO
/dev/nvme0n1p4 partition 15,6G 664,3M   -2

Hibernation seems to work (save RAM data to disk), but when boot again, system boots into a fresh / new session, not previous / saved session.

Below is my garuda-inxi.

Any help / clarification is highly appreciated.

System:
  Kernel: 6.4.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=b5bba6b0-160e-4711-833f-21731ba61ab4 rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP ZBook Firefly 14 inch G8 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 880D v: KBC Version 30.37.00 serial: <superuser required>
    UEFI: HP v: T76 Ver. 01.08.00 date: 01/11/2022
Battery:
  ID-1: BAT0 charge: 39.8 Wh (99.0%) condition: 40.2/53.2 Wh (75.6%)
    volts: 12.5 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: not charging cycles: 130
CPU:
  Info: model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP
    arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
    process: Intel 10nm family: 6 model-id: 0x8C (140) stepping: 1
    microcode: 0xAA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 3060 high: 4300 min/max: 400/4700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 3100 2: 2800 3: 4300
    4: 3795 5: 3936 6: 843 7: 3652 8: 2061 bogomips: 44851
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21
    ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300
  Device-2: NVIDIA TU117GLM [Quadro T500 Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 535.54.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-05) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 4 speed: 16 GT/s lanes: 4
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1fbb class-ID: 0302
  Device-3: Chicony HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2:2 chip-ID: 04f2:b6bf
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
    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: AU Optronics 0x559c built: 2021 res: 1920x1080
    hz: 60 dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14")
    ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.1.3 renderer: Mesa Intel Xe Graphics (TGL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:a0c8 class-ID: 0401
  API: ALSA v: k6.4.2-zen1-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 0.3.73 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 Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:a0f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0026
    class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 00:0e.0 chip-ID: 8086:9a0b rev: class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 275.97 GiB (57.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVL2512HCJQ-00BH1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS2NGXH temp: 40.9 C scheme: MBR
Partition:
  ID-1: / raw-size: 62.7 GiB size: 62.7 GiB (100.00%) used: 20.64 GiB (32.9%)
    fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 398.32 GiB size: 391 GiB (98.16%)
    used: 254.96 GiB (65.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 62.7 GiB size: 62.7 GiB (100.00%)
    used: 20.64 GiB (32.9%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-5: /var/tmp raw-size: 62.7 GiB size: 62.7 GiB (100.00%)
    used: 20.64 GiB (32.9%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 15.62 GiB used: 377.5 MiB (2.4%)
    priority: -2 dev: /dev/nvme0n1p4 maj-min: 259:4
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 264 Uptime: 5m wakeups: 17798 Memory: available: 15.31 GiB
  used: 4.85 GiB (31.7%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1576 libs: 427 tools: octopi,pamac,paru,yay Shell: fish v: 3.6.1
  running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
  System install date:     2023-07-08
  Last full system update: 2023-07-09
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut(custom) mkinitcpio nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Hi there, welcome to the forum!
First off, but not cause of your issue, you don't need to disable zram. You will only loose a bit of performance. For sure you can't use zram to hibernate on, you use your swap partition.
The first thing you seem to be missing is the resume kernel boot parameter, pointing to your swap partition.
Then you'll need a dracut config.
I'm linking below a somewhat similar thread for zram and dracut. The kernel parameter should not be a problem of course.
If necessary, see also the Arch wiki.

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation
Careful, the initramfs part for you is different because you have dracut instead of mkinitcpio.
https://wiki.archlinux.org/title/Dracut#Hibernation
Then regenerate with

sudo dracut-rebuild
2 Likes

Thanks, very clear
Worked perfectly !

1 Like

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