I installed Endeavour OS on 3 different devices, using the latest 2 ISO (so the bug is definitely still there). I selected Hibernate to Swap, but trying to hibernate would also result in failure, and the system would simply go in standby.
I realised that the resume hook was simply missing, so adding “resume” to the path mkinitcpio and reloading fixed the problem. I suggest the dev add it automatically if the hibernation option is selected during installation.
Also this works on grub + mkinitcpio. I also had an install with systemd-boot + dracut. Same problem but adding the hook “resume” didn’t solve anything. I did follow the offical guide on archwiki but nothing, so I switched back to grub + mkinitcpio and it finally worked.
PS, I am a Linux enthusiast, not an expert of the Linux kernel, so please don’t flame me if I wrote something which is not quite correct.
Awesome thanks! Also if you could understand why adding the resume hook with dracut doesn’t work that’d be great! Really don’t like grub much, would be sweet to go back to systemd-boot!
if the module is not build in the initramfs it can be added added to do that on already installed system too no issue and no need to reinstalll the OS.
As in the post @2000 mentioned:
first generate the dracut configuration file for hibernation:
cat <<-EOF | sudo tee /etc/dracut.conf.d/resume.conf
add_dracutmodules+=" resume "
EOF
and regenerate initramfs
sudo dracut-rebuild
you can add the line: add_dracutmodules+=" resume "
also to the already existing eos dracut config file:
I did try that but it did not work. Will try again and maybe get the logs too.
As for the resume missing, I feel like it is a bug as selecting hibernate during the installation process should result in an actual working hibernation!
it is a BUG that it is not enabled yes… but it should work when you enable it, if this is not the case something else is interfering with your system, could be also related to firmware settings.
In some cases, hibernation is not working at all on specific devices.
So to check if resume is enabled in the kernel image check it: lsinitrd | grep resume could show
thank you so much! I confirm it does work with grub + mkinitcpio, though I haven’t tried with systemd-boot and dracut given that I wiped that installation. Looking forward to the next release, thank you for your great job