[RESPONDED] Ubuntu 24.04 and hibernation (FW 13 12th gen)

Certainly! Here is what I’ve tried (can be not in a professional or even correct way)

Initially, there’s no swapfile. So, I used btrfs subvolume create and btrfs filesystem mkswapfile to create one. However, no matter how big the size I set to the swapfile, I received the “not enough swap space” message when trying to hibernate. Then I switch to swap partition with:

  1. use gnome-disk-utility to reduce the size of my filesystem partition. Then, create a partition and set its type to Linux swap.

  2. add the line to /etc/fstab: /dev/nvme0n1p6 swap swap defaults 0 0

  3. mkswap /dev/nvme0n1p6 then activate it with swapon /dev/nvme0n1p6

  4. edit /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/nvme0n1p6"

  5. update GRUB with update-grub

  6. test with systemctl hibernate and it worked.

1 Like