You are not logged in.
Pages: 1
I'm currently dual-booting Windows and Arch Linux, and I can't get hibernation to work properly.
I have a LUKS-encrypted partition with Btrfs subvolumes on it. For the swap file, I followed this article.
When the system is not plugged in, it takes around 30 seconds to hibernate and shut down, which seems odd — when I was using GRUB instead of bootctl, it only took around 6–7 seconds.
When the laptop is plugged in, the screen goes black and the system becomes unresponsive. I have to force shutdown by holding the power button.
hardware & system info:
thinkpad t14 g1 amd, booted in uefi mode 16gb ram.
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 29.3G 0 disk
├─sda1 8:1 1 29.3G 0 part /mnt
└─sda2 8:2 1 32M 0 part
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part /boot
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 117.9G 0 part
├─nvme0n1p4 259:4 0 519M 0 part
└─nvme0n1p5 259:5 0 120G 0 part
└─main 254:0 0 120G 0 crypt /home
/swap
/var
/blkid:
/dev/nvme0n1p5: UUID="5d9e4d12-7fbb-42c2-8d61-36e3ac7e8918" TYPE="crypto_LUKS" PARTUUID="153627e9-3330-464e-8551-07c3a43eb4fd"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="E0A809B5A8098AEC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="1268d932-bb11-4764-b243-1d4ebbb752c2"
/dev/nvme0n1p1: UUID="CD10-766A" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="e4266bda-9833-4b4d-a027-3fef86c2fadb"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="D46C73726C734E6C" TYPE="ntfs" PARTUUID="1270683e-4b8c-4084-a5b7-31831cead8c2"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="9ee8ae4f-16e6-4d9a-8f95-5060b2c8689c"
/dev/mapper/main: UUID="0b4e8e08-0297-4e87-bd21-60a80514e96f" UUID_SUB="603375e2-fe84-4b28-911c-5d455607b56a" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="VTOYEFI" LABEL="VTOYEFI" UUID="2205-E719" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="VTOYEFI" PARTUUID="94fa2860-f98c-4bc3-bb61-25779ecf0395"
/dev/sda1: LABEL="Ventoy" UUID="4E21-0000" BLOCK_SIZE="512" TYPE="exfat" PARTLABEL="Ventoy" PARTUUID="77b4a2f9-4bff-4617-93ed-a6b7b078de0c"mkinitcpio.conf:
HOOKS=(base udev autodetect microcode modconf kms btrfs keyboard keymap block encrypt resume filesystems fsck)/boot/loaders/entries/arch.conf:
options cryptdevice=UUID=5d9e4d12-7fbb-42c2-8d61-36e3ac7e8918:main:allow-discards root=/dev/mapper/main rootflags=subvol=@ resume=UUID=0b4e8e08-0297-4e87-bd21-60a80514e96f resume_offset=949206 mem_sleep_default=deep quiet rw /etc/systemd/sleep.conf:
AllowSuspend=yes
AllowHibernation=yes
HibernateMode=shutdownsome outputs for swap:
NAME TYPE SIZE USED PRIO
/swap/swapfile file 20G 0B -2
Filename Type Size Used Priority
/swap/swapfile file 20971516 0 -2
freeze mem diskand /etc/fstab:
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/main
UUID=0b4e8e08-0297-4e87-bd21-60a80514e96f / btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvol=/@ 0 0
# /dev/mapper/main
UUID=0b4e8e08-0297-4e87-bd21-60a80514e96f /home btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvol=/@home 0 0
# /dev/mapper/main
UUID=0b4e8e08-0297-4e87-bd21-60a80514e96f /var btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvol=/@var 0 0
# /dev/mapper/main
UUID=0b4e8e08-0297-4e87-bd21-60a80514e96f /swap btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvol=/@swap 0 0
# /dev/nvme0n1p1
UUID=CD10-766A /boot vfat rw,relatime,fmask=077,dmask=077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /swap/swapfile
/swap/swapfile none swap defaults 0 0
#tmpfs
tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,mode=1777,size=4G 0 0Last edited by ryanDuke (2025-04-16 11:48:52)
Offline
I'm currently dual-booting Windows and Arch Linux, and I can't get hibernation to work properly.
3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.
When the system is not plugged in, it takes around 30 seconds to hibernate and shut down, which seems odd
Please post your complete system journal for the boot, eg.
sudo journalctl -b -1 | curl -F 'file=@-' 0x0.stfor the previous ("-1") one.
Since you're using a swapfile on btrfs, make sure to have seen https://wiki.archlinux.org/title/Power_ … ile_offset (though I'd assume you got that from the btrfs article on readthedocs, too - still…)
Offline
Pages: 1