This commit is contained in:
		| @ -1,5 +1,12 @@ | ||||
| # right fit swap for laptop hibernation Ubuntu 20.04 full ZFS install | ||||
|  | ||||
| ## bios setup | ||||
|  | ||||
| You have to disable secure boot in bios to permit Hibernate because of *kernel lockdown prevent hibernation* see links bellow : | ||||
|  | ||||
| * [](https://unix.stackexchange.com/questions/591488/why-does-the-kernel-lockdown-prevent-hibernation) | ||||
| * [](https://rephlex.de/blog/2019/12/27/how-to-hibernate-and-resume-from-swap-file-in-ubuntu-20-04-using-full-disk-encryption/) | ||||
|  | ||||
| ## create swap partition to permit Hibernate | ||||
|  | ||||
| create a swap partition right sized for hibernation. | ||||
| @ -88,12 +95,12 @@ And add this value to it (The number represents seconds you want to pass in slee | ||||
| HibernateDelaySec=7200 | ||||
| ~~~ | ||||
|  | ||||
| [](https://doc.ubuntu-fr.org/tutoriel/activer_hibernation) | ||||
| Modify this two lines in /etc/systemd/logind.conf for sleep key and closing the lid actions if that's how you want it: | ||||
|  | ||||
| kernel lockdown prevent hibernation : | ||||
|  | ||||
| [](https://unix.stackexchange.com/questions/591488/why-does-the-kernel-lockdown-prevent-hibernation) | ||||
| [](https://rephlex.de/blog/2019/12/27/how-to-hibernate-and-resume-from-swap-file-in-ubuntu-20-04-using-full-disk-encryption/) | ||||
| ~~~ | ||||
| HandleSuspendKey=suspend-then-hibernate | ||||
| HandleLidSwitch=suspend-then-hibernate | ||||
| ~~~ | ||||
|  | ||||
| Hiberner au bout de x secondes après une mise en veille | ||||
| [](https://doc.ubuntu-fr.org/veille_et_hibernation) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user