This commit is contained in:
Michel Le Cocq 2020-06-22 07:58:16 +02:00
parent 815bebf3f4
commit 638aaca6e4

View File

@ -173,14 +173,15 @@ Disable secure boot in bios to permit Hibernate.
souce : [](https://doc.ubuntu-fr.org/tutoriel/activer_hibernation) souce : [](https://doc.ubuntu-fr.org/tutoriel/activer_hibernation)
~~~
apt install pm-utils
~~~
~~~ ~~~
update-initramfs -u -k $(uname -r) update-initramfs -u -k $(uname -r)
pm-hibernate pm-hibernate
~~~ ~~~
Hiberner au bout de x secondes après une mise en veille
[](https://doc.ubuntu-fr.org/veille_et_hibernation)
~~~ ~~~
printf "RESUME=UUID=$(blkid | awk -F\" '/swap/ {print $2}')\n" | head -n 1| sudo tee /etc/initramfs-tools/conf.d/resume printf "RESUME=UUID=$(blkid | awk -F\" '/swap/ {print $2}')\n" | head -n 1| sudo tee /etc/initramfs-tools/conf.d/resume
update-initramfs -u -k all update-initramfs -u -k all
@ -197,6 +198,9 @@ kernel lockdown prevent hibernation :
[](https://unix.stackexchange.com/questions/591488/why-does-the-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/) [](https://rephlex.de/blog/2019/12/27/how-to-hibernate-and-resume-from-swap-file-in-ubuntu-20-04-using-full-disk-encryption/)
Hiberner au bout de x secondes après une mise en veille
[](https://doc.ubuntu-fr.org/veille_et_hibernation)
## encrypt swap partition ## encrypt swap partition
~~~ ~~~