hibernate - 如何自动 hibernate 并重新唤醒我的 Ubuntu 服务器?

标签 hibernate ubuntu server

关闭。这个问题不符合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/

相关文章:

java - 将数据库查找映射到 jpa 实体

java - 拥有方与非拥有方在 hibernate 中及其在元素映射引用中的用法?

java - Hibernate REST Web 服务空指针异常

Ubuntu 12.10 libgtk-3-0 缺少符号

unix - 安装 grails 2.2.0 ubuntu grails-ppa 未找到

C程序文件传输,在客户端打印出服务器端错误

java - 无法使用serversocket在java中同时读取和发送请求

java - 我们可以对多个数据库使用相同的 hibernate 注释 pojo 类吗?

javascript - 无法访问外部脚本

ubuntu - 如何在 PHP CLI 中调试段错误?