From 33f899bd479534b0a920ce427cdf06739028f5ab Mon Sep 17 00:00:00 2001 From: Hamish Moffatt Date: Mon, 5 Jul 2021 19:06:15 +1000 Subject: [PATCH] Clarify the behaviour of suspend-then-sleep mode in the manual pages. Fixes #20125. --- man/systemd-sleep.conf.xml | 17 +++++++++++------ man/systemd-suspend.service.xml | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index d117a212ac..8a51d729ff 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 c525a3bda2..29249365a0 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.