Score:0

Why hybrid sleep mode(systemctl hybrid-sleep) has default of shutting down?

ms flag

System Info

$ cat /etc/issue
Ubuntu 20.04.3 LTS \n \l

$ uname -r
5.11.0-27-generic

From the official document shown on http://manpages.ubuntu.com/manpages/groovy/man8/pm-action.8.html,

pm-suspend-hybrid Hybrid-suspend is the process where the system does everything it needs to hibernate, but suspends instead of shutting down. This means that your computer can wake up quicker than for normal hibernation if you do not run out of power, and you can resume even if you run out of power. s2both(8) is an hybrid-suspend implementation.

suepend-hybrid or hybrid-sleep are referring to suspend to disk and suspend to RAM without shutting down the computer. However, when I am trying either of the following two commands. My computer shuts down.

$ sudo pm-suspend-hybrid
$ sudo systemctl hybrid-sleep

I have double checked my hibernate mode, which works just fine and my swap configuration is fine. Then I checked file /etc/systemd/sleep.conf and found the following commented lines.

#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min

I took the commented line as default configuration and found that both hibernate mode and hybrid sleep mode would shutdown my computer. Why hybrid sleep mode would shutdown my computer by default? Why its default implementation differs from the definition from official document?

Thank you for replying in advance.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.