From fc151a4266dd78ba63e7ed9dfdab00797b792b6a Mon Sep 17 00:00:00 2001 From: Hamish Moffatt Date: Jul 12 2021 11:30:55 +0000 Subject: Clarify the behaviour of suspend-then-sleep mode in the manual pages. Fixes #20125. (cherry picked from commit 33f899bd479534b0a920ce427cdf06739028f5ab) --- diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index d117a21..8a51d72 100644 --- a/man/systemd-sleep.conf.xml +++ b/man/systemd-sleep.conf.xml @@ -137,14 +137,17 @@ /sys/power/disk by, respectively, systemd-suspend.service8, - systemd-hibernate.service8, - systemd-hybrid-sleep.service8, or - systemd-suspend-then-hibernate.service8. + systemd-hibernate.service8, or + systemd-hybrid-sleep.service8. More than one value can be specified by separating multiple values with whitespace. They will be tried in turn, until one is written without error. If neither succeeds, the operation will be aborted. + + systemd-suspend-then-hibernate.service8 + uses the value of SuspendMode= when suspending and the value of HibernateMode= when hibernating. + @@ -156,13 +159,15 @@ /sys/power/state by, respectively, systemd-suspend.service8, - systemd-hibernate.service8, - systemd-hybrid-sleep.service8, or - systemd-suspend-then-hibernate.service8. + systemd-hibernate.service8, or + systemd-hybrid-sleep.service8. More than one value can be specified by separating multiple values with whitespace. They will be tried in turn, until one is written without error. If neither succeeds, the operation will be aborted. + + systemd-suspend-then-hibernate.service8 + uses the value of SuspendState= when suspending and the value of HibernateState= when hibernating. diff --git a/man/systemd-suspend.service.xml b/man/systemd-suspend.service.xml index c525a3b..2924936 100644 --- a/man/systemd-suspend.service.xml +++ b/man/systemd-suspend.service.xml @@ -103,8 +103,8 @@ - + Suspend, hibernate, suspend then hibernate, or put the system to hybrid sleep.