Specified resume device is missing

Here is my swap config:

❯ swapon -s
Nome de arquivo                         Tipo            Tamanho         Usado   Prioridade
/dev/zram0                              partition       29686780        0               100
/dev/nvme0n1p4                          partition       28661756        0               -2

And this is what happens when I try to hibernate:

❯ systemctl hibernate
Call to Hibernate failed: Specified resume device is missing or is not an active swap device

I have already setup the resume hook in /etc/mkinitcpio.conf, run mkinitcpio -P, and added resume parameter in /boot/refind_linux.conf.

I don’t know if zram0 is the guilty of not being able to hibernate.

there is created a swap-partition on nvme0n1p4 ?
what size is it and what size is your RAM ?

for an answer see archwiki :

Hibernating to swap on zram is not supported, even when zram is configured with a backing device on permanent storage

1 Like

Thanks for answering
It is a smaller (27,3 Gb) than this size of RAM (64 Gb). That is probably the cause.
The used RAM is 8,59 Gb.
Which size should I use.
I think it can be smaller thanks to compression, but don’t know how much smaller.
Other solution is to use a swap file…

I have found this:
https://linuxreviews.org/HOWTO_choose_the_right_swap_partition_size

hibernation means “suspend to disk” :wink:
a simple rule is to create a partition at least of the same size as RAM is.

— but everybody does as he wants to… :sunglasses:

RAM plus VRAM according to some sources.