Many articles seem to have been dedicated to installing hiberate under Ubuntu 18.04 x64 / Kernel 4.20. But, I still cannot get my system loading the swapfile after hibernation. This is what I did:

  1. Install hibernate GNOME extension

  2. Create new swap file of 16GB

sudo swapon --show


/swapfile file 16G 0B -2

  1. Update etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sda1 resume_offset=15140864"

  1. Update to kernel 4.20

After these actions the systems does go into hibernation but, never loads the old system state.

Is there anything I am overlooking here?

  • Are swap files supported for hibernation now? At least a while ago, you could only hibernate to swap partitions, but swap files were not supported. Not sure if that has changed yet. – Byte Commander Dec 30 '18 at 16:20
  • Check /etc/initramfs-tools/conf.d/resume is configured, then do sudo update-initramfs -c. Why the offset in your GRUB line? Report back to @heynnema – heynnema Dec 31 '18 at 14:57

I had the same situation here. I've just tried with UUID and it worked like a charm:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=d2175d30-aee3-418b-8c3f-d4ae61d13b3f resume_offset=2367488"

Hope it helps, Br, Martin

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.