在 Linux 上持续唤醒和睡眠以最小化功耗?

发布于 2024-07-16 10:37:27 字数 103 浏览 5 评论 0原文

我想纯粹使用 Linux 电脑来收集 rss 提要,但希望尽可能减少其功耗。

想必我会创建某种 cron 作业来使其进入和退出睡眠模式,或者是否有更好的方法来解决这个问题?

I'd like to use a linux pc purely to collect rss feeds, but would like to minimise it's power usage as much as possible.

Presumably I would create some kind of cron job to bring it in and out of sleep mode or are there better ways of tackling this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千紇 2024-07-23 10:37:27

在 RTC 中设置唤醒闹钟,然后将计算机置于待机或挂起(至 RAM)模式。 有些主板支持从休眠状态唤醒(挂起到磁盘),但我想这会太慢。

echo `date '+%s' -d '+ 5 minutes'` > /sys/class/rtc/rtc0/wakealarm
echo -n "mem" > /sys/power/state

将“mem”替换为“standby”表示待机而不是挂起。

顺便提一句。 MythTV 的 wiki 有一些更深入的信息示例。
http://www.mythtv.org/wiki/ACPI_Wakeup

Set wake up alarm in RTC, then put the computer in standby or suspend(-to-RAM) mode. Some motherboards support waking up from hibernation (suspend-to-disk), but I guess that'll be too slow.

echo `date '+%s' -d '+ 5 minutes'` > /sys/class/rtc/rtc0/wakealarm
echo -n "mem" > /sys/power/state

Replace "mem" with "standby" for stand-by instead of suspend.

BTW. MythTV's wiki has got some more in-depth info end examples.
http://www.mythtv.org/wiki/ACPI_Wakeup

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文