From 2f76f1cfaee2f775df8b367cb77aed751af45956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 17 May 2023 11:12:32 +0200 Subject: man: explain allowed values for /sys/power/{disk,state} Also fix the grammar: "neither" can only be used with two values, and here we have an inderminate number >= 1. Fixes #26460. --- man/systemd-sleep.conf.xml | 55 ++++++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 24 deletions(-) (limited to 'man') diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index f8f1694b57..bdc4c3c193 100644 --- a/man/systemd-sleep.conf.xml +++ b/man/systemd-sleep.conf.xml @@ -138,21 +138,24 @@ HibernateMode= HybridSleepMode= - The string to be written to - /sys/power/disk by, - respectively, + The string to be written to /sys/power/disk by, respectively, systemd-suspend.service8, - systemd-hibernate.service8, or + 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. - + 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 none of the writes succeed, the operation will + be aborted. + + The allowed set of values is determined by the kernel and is shown in the file itself (use + cat /sys/power/disk to display). See the + kernel documentation for more details. + + + systemd-suspend-then-hibernate.service8 + uses the value of SuspendMode= when suspending and the value of + HibernateMode= when hibernating. @@ -160,21 +163,25 @@ HibernateState= HybridSleepState= - The string to be written to - /sys/power/state by, - respectively, + The string to be written to /sys/power/state by, respectively, systemd-suspend.service8, - systemd-hibernate.service8, or + 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. + 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 none of the writes succeed, the operation will + be aborted. - systemd-suspend-then-hibernate.service8 - uses the value of SuspendState= when suspending and the value of HibernateState= when hibernating. - + The allowed set of values is determined by the kernel and is shown in the file itself (use + cat /sys/power/state to display). See the + kernel documentation for more details. + + + systemd-suspend-then-hibernate.service8 + uses the value of SuspendState= when suspending and the value of + HibernateState= when hibernating. -- cgit v1.2.1