adaptation titrage

Michel Le Cocq 2022-08-01 06:51:32 +02:00
parent bf754ce043
commit 27033c3d84

@ -1,4 +1,6 @@
# explication # Mise en Veille vers Hibernation
## explication
Si la machine est en veille 5min alors elle passe en hibernation. Si la machine est en veille 5min alors elle passe en hibernation.
@ -40,9 +42,9 @@ rtcwake - enter a system sleep state until specified wakeup time
no Don't suspend, only set the RTC wakeup time. no Don't suspend, only set the RTC wakeup time.
~~~ ~~~
# script complet ## script complet
## systemd suspend.target ### systemd suspend.target
ajouter : Requires=suspend-to-hibernate.service dans /lib/systemd/system/suspend.target : ajouter : Requires=suspend-to-hibernate.service dans /lib/systemd/system/suspend.target :
@ -64,7 +66,7 @@ After=systemd-suspend.service
Requires=suspend-to-hibernate.service Requires=suspend-to-hibernate.service
~~~ ~~~
## suspend-to-hibernate.service ### suspend-to-hibernate.service
edit : /lib/systemd/system/suspend-to-hibernate.service edit : /lib/systemd/system/suspend-to-hibernate.service
@ -113,32 +115,32 @@ Created symlink from /etc/systemd/system/sleep.target.wants/suspend-to-hibernate
root@houyo:/lib/systemd/system# root@houyo:/lib/systemd/system#
~~~ ~~~
# Gestionnaire Alimention Xfce ## Gestionnaire Alimention Xfce
![](/Sleep-Hibernate/ges-alim-1.png) ![](/Sleep-Hibernate/ges-alim-1.png)
![](/Sleep-Hibernate/ges-alim-2.png) ![](/Sleep-Hibernate/ges-alim-2.png)
![](/Sleep-Hibernate/ges-alim-3.png) ![](/Sleep-Hibernate/ges-alim-3.png)
![](/Sleep-Hibernate/ges-alim-4.png) ![](/Sleep-Hibernate/ges-alim-4.png)
# ce qui dois arriver ## ce qui dois arriver
## inactivitée sur batterie ### inactivitée sur batterie
* 1m30s : reduire la luminosité à 5% * 1m30s : reduire la luminosité à 5%
* 2m : écran vide * 2m : écran vide
* 15m : mettre en veille sur Ram le système * 15m : mettre en veille sur Ram le système
* 40m : passer de veille sur Ram à veille sur disque * 40m : passer de veille sur Ram à veille sur disque
## inactivitée sur secteur ### inactivitée sur secteur
Quand branché sur le secteur aucun paramètre de mise en veille n'est activé. Quand branché sur le secteur aucun paramètre de mise en veille n'est activé.
* 1m30s : reduire la luminosité à 5% * 1m30s : reduire la luminosité à 5%
* 2m : écran vide * 2m : écran vide
# trouble ## trouble
## ask for passwd ### ask for passwd
Automatic suspend from the xfce power manager does not work, as a window opens and asks for my password. Well, if it wants to suspend the system after a given timeout, I cannot enter my password as I'm not in front of my system then. Once I'm able to enter my password it is too late to run the suspend action. Automatic suspend from the xfce power manager does not work, as a window opens and asks for my password. Well, if it wants to suspend the system after a given timeout, I cannot enter my password as I'm not in front of my system then. Once I'm able to enter my password it is too late to run the suspend action.
@ -154,7 +156,7 @@ see :
* [Ubuntu Bug : 1605189 Authentication is required for suspending the system](https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1605189) * [Ubuntu Bug : 1605189 Authentication is required for suspending the system](https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1605189)
* [Xubuntu Bug : Failing to sleep after inactivity - power manager error ?](https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1441460) * [Xubuntu Bug : Failing to sleep after inactivity - power manager error ?](https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1441460)
## There's already a shutdown or sleep operation in progress ### There's already a shutdown or sleep operation in progress
~~~ ~~~
Failed to hibernate system via logind: There's already a shutdown or sleep operation in progress Failed to hibernate system via logind: There's already a shutdown or sleep operation in progress
@ -167,7 +169,7 @@ missing in : /lib/systemd/system/suspend.target
Requires=suspend-to-hibernate.service Requires=suspend-to-hibernate.service
~~~ ~~~
# source ## source
* [askubuntu how-to-go-automatically-from-suspend-into-hibernate](http://askubuntu.com/questions/12383/how-to-go-automatically-from-suspend-into-hibernate/662701#662701?newreg=9ae06dac594046939234f1aa433c9a16) * [askubuntu how-to-go-automatically-from-suspend-into-hibernate](http://askubuntu.com/questions/12383/how-to-go-automatically-from-suspend-into-hibernate/662701#662701?newreg=9ae06dac594046939234f1aa433c9a16)
* [ArchLinux suspend broken since systemd update](https://bbs.archlinux.org/viewtopic.php?id=204346) * [ArchLinux suspend broken since systemd update](https://bbs.archlinux.org/viewtopic.php?id=204346)