关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。
我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。
6年前关闭。
Improve this question
我有一台应该是服务器的 Ubuntu 10.10 机器。它只使用大约 150W 来运行,但电力不是免费的 :( 实际上没有人在夜间使用它,我想让它自动 hibernate 和自动唤醒。我知道 rtcwake
命令,但我是不知道如何让它自动 hibernate 。
谁能给我一些关于如何做到这一点的想法?就像将其设置为每天晚上 10:00 hibernate 并在早上 6:45 醒来。
最佳答案
这个问题在这里有答案: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.
关于hibernate - 如何自动 hibernate 并重新唤醒我的 Ubuntu 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28660195/