我有一台应该是服务器的Ubuntu 10.10机器。它只使用大约150W运行,但是电力不是免费的:(没有人在夜间实际使用它,我想让它自动休眠并自动唤醒。我知道rtcwake
命令,但是我不知道如何让它自动休眠。
有人能指出一些关于如何做到这一点的想法吗?比如每天晚上10点将其设置为休眠状态,并在早上6:45醒来。
答案 0 :(得分:1)
这个问题的答案如下:https://askubuntu.com/questions/61708/automatically-sleep-and-wake-up-at-specific-times
基本上,解决方案是将rtcwake
与--mode
选项一起使用。以下是man rtcwake
的说明:
-m mode | --mode mode
Use standby state mode. Valid values are:
standby ACPI state S1. This state offers minimal, though real, power savings,
while providing a very low-latency transition back to a working
system. This is the default mode.
mem 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.
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 management. This state operates similarly to
Suspend-to-RAM, but includes a final step of writing memory contents
to disk.
off ACPI state S5 (Poweroff). This is done by calling '/sbin/shutdown'.
Not officially supported by ACPI, but usually working.