]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rtcwake: add support for "freeze" mode
authorKarel Zak <kzak@redhat.com>
Tue, 23 Apr 2013 11:20:15 +0000 (13:20 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Apr 2013 11:20:15 +0000 (13:20 +0200)
Supported by Linux since 3.9 (upstream commit
7e73c5ae6e7991a6c01f6d096ff8afaef4458c36).

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.8
sys-utils/rtcwake.c

index dea5c940c5485ebf244dddd5bfd646b00defdb26..def3faaefd778708ab3b7c28e647af34cb0bc070 100644 (file)
@@ -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
index 369b0c87160ffe58b2023d4984b279d49106ae9e..f2efc8728f96ffa2230d1628bd1afe1827fc22ef 100644 (file)
@@ -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
                           ) {