Gibt es hier jemanden, bei dem das im Lieferzustand funktioniert? (Wer also von NVRAM Wakeup auf ACPI Wakeup umstellt.) Kann doch eigentlich gar nicht, weil das in /etc/init.d/vdr-addon-acpiwakeup angesprochene /proc/acpi/alarm schon seit Äonen nicht mehr existiert.
Stellt man jedoch um auf /sys/class/rtc/rtc0/wakealarm, so wird die Zeit in Sekunden seit 1970 übergeben.
Ich habe es einmal wie folgt modifiziert:
vdr-addon-acpiwakeup.conf
Code
# Activate/deactivate ACPIWakeup with yes/no:
ACPI_ENABLED=yes
# How many minutes should the machine wake up before the timer starts:
ACPI_START_AHEAD=3
# If you want your VDR machine to wakeup in regular intervals (i.e. for
# updating EPG data), specify the days of the week and the wakeup time.
#
# Days of the week for regular wakeup (not set=Disabled, 1=Monday...7=Sunday)
# ACPI_REGULAR_DAYS="1 2 3 4 5 6 7"
# Wakeup time
ACPI_REGULAR_TIME=01:00 # HH:MM
ACPI_ALARM=/sys/class/rtc/rtc0/wakealarm
Alles anzeigen
/etc/init.d/vdr-addon-acpiwakeup
Code
set_wakeup_time()
{
if [ -e $WAKEUP_FILE ]; then
TIME_TO_SET=`cat $WAKEUP_FILE`
echo "$NAME: Setting wakeup time to $TIME_TO_SET at $ACPI_ALARM"
echo `date +%s -d "$TIME_TO_SET"`
# echo 0 >$ACPI_ALARM
echo `date +%s -d "$TIME_TO_SET UTC"` >$ACPI_ALARM
# Set it once more - some boards require this!
# echo $TIME_TO_SET >$ACPI_ALARM
echo "$NAME: Setting wakeup time to $TIME_TO_SET at $ACPI_ALARM" >> /var/log/wake.log
cat /proc/driver/rtc >> /var/log/wake.log
fi
}
Alles anzeigen
Ich kann natürlich mangels jeglichem Fachwissen nicht beschwören, dass das in jedem Fall korrekt ist, insbesondere, wenn die RTC nicht auf UTC läuft.