From adf2c92774704ab72c80adb2d7411661d6aefc5a Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Mon, 22 Jun 2020 10:30:18 +0200 Subject: [PATCH] --- ...hibernation-Ubuntu-20.04-full-ZFS-install.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md index b8e32fd..c67590b 100644 --- a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md +++ b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md @@ -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)