This commit is contained in:
Michel Le Cocq 2020-06-22 09:01:44 +02:00
parent 3a4f3e75b4
commit 5b25b48386

View File

@ -214,6 +214,18 @@ Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-
ResultActive=yes ResultActive=yes
~~~ ~~~
## configure hibernate to auto switch from sleep to hibernate
edit : */etc/systemd/sleep.conf*
And add this value to it (The number represents seconds you want to pass in sleep, after which the computer will switch to hibernation, so you can put it in 60 seconds or something short just to check it's working and after that you can put whatever ammount of time you want):
~~~
[Sleep]
HibernateDelaySec=7200
~~~
[](https://doc.ubuntu-fr.org/tutoriel/activer_hibernation) [](https://doc.ubuntu-fr.org/tutoriel/activer_hibernation)
kernel lockdown prevent hibernation : kernel lockdown prevent hibernation :