How can I get hibernation to work when I close my laptop's lid?

Before installing RebornOS, I created a swap partition, installed the OS, made the right changes to the logind.conf and sleep.conf files, and edited the grub.cnf file with resume=UUID= pointing to the swap partition, updated grub, rebooted, but hibernation still does not work.

Why is it so difficult to get hibernation working for a laptop with this version of Arch? In Manjaro, it works perfectly. Why is there this obsession with setting up the OS as if everybody were using a silly PC? It is the same problem with Ubuntu, Fedora, and other distros.

Not everyone has a static, dedicated PC. Many people use laptops.

Is there a way to get the option during installation to create a swap partition for hibernation, as Manjaro does?

Hi @Andre,

  1. Do you use Nvidia drivers?
  2. What is the output of swapon --show?
  3. What is the output of cat /etc/mkinitcpio.conf | grep -i HOOKS?
  4. Is your disk encrypted?

Did you add the resume hook to your mkinitcpio HOOKS and regenerate the initramfs? On Arch/RebornOS, changing logind.conf, sleep.conf and the GRUB kernel line is often not enough by itself; without the resume hook the initramfs may not be able to activate the swap and resume. Check that swapon --show lists the swap partition, then add resume after udev (or after encrypt if encrypted), run sudo mkinitcpio -P, and reboot.