> For the complete documentation index, see [llms.txt](https://docs.ramsdenj.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ramsdenj.com/johns-notes-and-documentation/introduction/introduction/introduction-1/hibernate.md).

# Hibernate

First set up swap.

[Next](https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Required_kernel_parameters) add `resume=swap_partition` to kernel parameters.

For example, with UUID add:

```shell
resume=UUID=8a1aac0b-487d-48d5-a683-417031d5098a
```

## Initramfs

If using the base hook, add resume after the udev hook in `/etc/mkinitcpio.conf`:

```
HOOKS="base udev resume autodetect modconf block filesystems keyboard fsck"
```

If using the systemd hook, resume isn't needed.
