After clicking hibernation, it wakes again
Version: Manjaro XFCE 21.3.7
RAM : 8GB
Your swapfile is already 4GB full and it would need to store the 8GB RAM additionally. This doesn’t work.
According to Power management/Suspend and hibernate - ArchWiki
About swap partition/file size
Even if your swap partition is smaller than RAM, you still have a big chance of hibernating successfully. See “image_size” in the kernel documentation for information on the
image_size
sysfs(5) pseudo-file.You may either decrease the value of
/sys/power/image_size
to make the suspend image as small as possible (for small swap partitions), or increase it to possibly speed up the hibernation process. For systems with a large amount of RAM, smaller values may drastically increase the speed of resuming a hibernating system. systemd#systemd-tmpfiles - temporary files can be used to make this change persistent:/etc/tmpfiles.d/hibernation_image_size.conf
# Path Mode UID GID Age Argument w /sys/power/image_size - - - - 0
The suspend image cannot span multiple swap partitions and/or swap files. It must fully fit in one swap partition or one swap file.[1]