I need some help using rtcwake . I would like my system to wake up every morning at 7:00am.
So the goal would be to run a cron job every day which would set the wake up time.
I've read several threads on the matter but haven't been successful.
I'm told rtcwake is supported on my Asrock Q1900-ITX.
I enabled it in the Bios (at least I think).
Here are some thing I tried.
Code
root@openmediavault:/# cat proc/acpi/wakeup
Device S-state Status Sysfs node
XHC1 S4 *enabled pci:0000:00:14.0
PXSX S4 *disabled
PXSX S4 *disabled
PXSX S4 *disabled
PXSX S4 *disabled
PWRB S0 *enabled
root@openmediavault:/# dmesg | grep rtc
[ 1.365341] rtc_cmos 00:00: RTC can wake from S4
[ 1.365489] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[ 1.365521] rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[ 1.368002] rtc_cmos 00:00: setting system clock to 2015-03-06 20:29:27 UTC (1425673767)
Alles anzeigen
Code
root@openmediavault:/# date -d'5 min'
Sun Mar 8 14:10:45 CET 2015
root@openmediavault:/# rtcwake -m off -t $(date -d'5m' +%s)
rtcwake: wakeup from "off" using /dev/rtc0 at Sun Mar 8 17:00:00 2015
shutdown: -H and -P flags can only be used along with -h flag.
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
root@openmediavault:/#
Alles anzeigen
Could some one help me?