From: Karel Zak Date: Tue, 23 Apr 2013 11:20:15 +0000 (+0200) Subject: rtcwake: add support for "freeze" mode X-Git-Tag: v2.23~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ece44f19f423408f576f348fed2845c876d72c6e;p=thirdparty%2Futil-linux.git rtcwake: add support for "freeze" mode Supported by Linux since 3.9 (upstream commit 7e73c5ae6e7991a6c01f6d096ff8afaef4458c36). Signed-off-by: Karel Zak --- diff --git a/sys-utils/rtcwake.8 b/sys-utils/rtcwake.8 index dea5c940c5..def3faaefd 100644 --- a/sys-utils/rtcwake.8 +++ b/sys-utils/rtcwake.8 @@ -101,6 +101,12 @@ ACPI state S3 (Suspend-to-RAM). This state offers significant power savings as everything in the system is put into a low-power state, except for memory, which is placed in self-refresh mode to retain its contents. .TP +.B freeze +The processes are frozen, all the devices are suspended and all the processors +idles. This state is a general state that does not need any platform specific +support, but it saves less power than susepnd to RAM, because the system is +still in a running state. (since Linux 3.9) +.TP .B disk ACPI state S4 (Suspend-to-disk). This state offers the greatest power savings, and can be used even in the absence of low-level platform support for power diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 369b0c8716..f2efc8728f 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -434,6 +434,7 @@ int main(int argc, char **argv) || strcmp(optarg, "on") == 0 || strcmp(optarg, "no") == 0 || strcmp(optarg, "off") == 0 + || strcmp(optarg, "freeze") == 0 || strcmp(optarg, "disable") == 0 || strcmp(optarg, "show") == 0 ) {