RTC-Alarm,S3,S4唤醒

本文详细介绍了Real Time Clock (RTC) 唤醒机制的工作原理及其在不同睡眠状态下的支持情况。探讨了ACPI规范中RTC_STS和RTC_EN位的作用,并提供了在GNU/Linux环境下设置RTC唤醒的具体方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Warning: /proc/acpi is being replaced by interfaces in /sys and new software should not look in /proc.

If implemented, the Real Time Clock (RTC) alarm must generate a hardware wake event when in the sleeping state. The RTC can be programmed to generate an alarm. An enabled RTC alarm can be used to generate a wake event when the system is in a sleeping state. ACPI provides for additional hardware to support OSPM in determining that the RTC was the source of the wake event: the RTC_STS and RTC_EN optional bits.
If the RTC_STS and RTC_EN bits are not supported, OSPM will attempt to identify the RTC as a possible wake source; however, it might miss certain wake events. If implemented the RTC wake feature is required to work in the following sleeping states: S1-S3. S4 wake is optional and supported through the RTC_S4 flag within the FADT (if set, then the platform supports RTC wake in the S4 state).
The user-space interface can be found in GNU/Linux at /proc/acpi/alarm .

 

 

echo yyyy-mm-dd hh:mm:ss > alarm
where the characters denote the appropriate elements of a date, for instance:
echo 2004-02-22 15:00:00 > alarm
Afterwards you might put the system to sleep with:
echo 5 > /proc/acpi/sleep
but be careful to stop any services, file systems, etc. before powering off, e.g. use /sbin/halt instead.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值