rtcwake 定时唤醒休眠的linux

版权声明:本文为博主原创文章,可以自由转载。 https://blog.csdn.net/u010953692/article/details/85787391

rtcwake linux系统休眠,指定时间自动唤醒

1,rtcwake设置

  • 休眠10s后唤醒
# rtcwake -m standby -s 10
rtcwake:将假设 RTC 使用 UTC...
rtcwake: wakeup from "standby" using /dev/rtc0 at Fri Jan  4 10:00:03 2019
  • 休眠模式
# rtcwake --list-modes
freeze standby mem disk off no on disable show 
# hwclock -r
2019年01月04日 星期五 17时48分57秒  .561969 seconds
  • 设置指定时间唤醒
# rtcwake -m mem --date "2019-01-04 18:30:00"
rtcwake:将假设 RTC 使用 UTC...
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Jan  4 10:30:00 2019
  • 设置指定时间唤醒并播放音乐
# rtcwake -m mem --date "2019-01-04 19:06" && ffplay -showmode 1  雪落下的声音-秦岚.mp3

参考:

  1. rtcwake - enter a system sleep state until specified wakeup time
  2. rtcwake - 进入系统睡眠状态,直到指定唤醒时间
  3. 使用rtcwake定时唤醒linux
  4. rtcwake - Problem with date

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/85787391