# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ramsdenj.com/johns-notes-and-documentation/introduction/introduction/introduction-1/hibernate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
