summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2013-04-23 13:20:15 +0200
committerKarel Zak2013-04-23 13:20:15 +0200
commitece44f19f423408f576f348fed2845c876d72c6e (patch)
tree205f10d5bc3e671df761afe09639d1a1a2e4c93d /sys-utils
parentumount: use devno to identify --all-target devices (diff)
downloadkernel-qcow2-util-linux-ece44f19f423408f576f348fed2845c876d72c6e.tar.gz
kernel-qcow2-util-linux-ece44f19f423408f576f348fed2845c876d72c6e.tar.xz
kernel-qcow2-util-linux-ece44f19f423408f576f348fed2845c876d72c6e.zip
rtcwake: add support for "freeze" mode
Supported by Linux since 3.9 (upstream commit 7e73c5ae6e7991a6c01f6d096ff8afaef4458c36). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/rtcwake.86
-rw-r--r--sys-utils/rtcwake.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/rtcwake.8 b/sys-utils/rtcwake.8
index dea5c940c..def3faaef 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 369b0c871..f2efc8728 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
) {