Zitat
Original von Lou
Probier mal das:
in /etc/default/rcS UTC auf yes setzen
neu booten
im Bios Zeit auf UTC setzen
neu booten und nochmal testen
Alles anzeigen
...ist schon auf yes:
# /etc/default/rcS
TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=no
RAMRUN=no
RAMLOCK=no
Für das BIOS muß ich mir erst Monitor und Tastatur holen.
Ich hatte vorher c't vdr 5 drauf und das hatte 1a funktioniert.
Dann ist mir die Platte verreckt und ich habe den 7er installiert.
Jetzt hab ich den Zeitversatz. Geht das nicht auch ohne am Bios
zu drehen?
So sehen meine Dateien aus:
/etc/init.d/dr-addon-acpiwakeup
#! /bin/sh
#
# vdr-addon-acpiwakeup start-stop script
#
NAME="vdr-addon-acpiwakeup"
WAKEUP_FILE="/var/cache/vdr/acpiwakeup.time"
reset_wakeup_time()
{
echo "$NAME: Resetting wakeup time"
rm -f $WAKEUP_FILE >/dev/null 2>&1
}
set_wakeup_time()
{
if [ -e "/sys/class/rtc/rtc0/wakealarm" ]; then
echo "Kernel >=2.6.23, nothing to do."
exit 0
fi
if [ -e $WAKEUP_FILE ]; then
TIME_TO_SET=`cat $WAKEUP_FILE`
echo "$NAME: Setting wakeup time to $TIME_TO_SET"
echo $TIME_TO_SET >$ACPI_ALARM
# Set it once more - some boards require this!
echo $TIME_TO_SET >$ACPI_ALARM
fi
}
show_help()
{
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
}
load_configuration()
{
# read arguments for acpi-wakeup from conf-file
. /etc/vdr/vdr-addon-acpiwakeup.conf
# Defaults:
[ -z "$ACPI_ENABLED" ] && export ACPI_ENABLED="yes"
[ -z "$ACPI_ALARM" ] && export ACPI_ALARM="/proc/acpi/alarm"
}
#
# main()
#
load_configuration
if [ ! $ACPI_ENABLED = "yes" ]; then
echo "ACPI Wakeup disabled - doing nothing"
exit 0
fi
case "$1" in
start)
reset_wakeup_time
;;
stop|restart|force-reload)
set_wakeup_time
;;
status)
;;
*)
show_help
;;
esac
Alles anzeigen
und /usr/share/vdr/shutdown-hooks/S90.acpiwakeup
#!/bin/sh
#
# VDR shutdown hook for ACPI - Tobias Grimm <vdr@e-tobi.net>
# --------------------------
#
# This shutdown hook sets the wakeup time for the next timer using
# ACPI.
#
if [ "`basename $0`" != "testwakeup" ] ; then
# read arguments for acpi-wakeup from conf-file
. /etc/vdr/vdr-addon-acpiwakeup.conf
WAKEUP_FILE="/var/cache/vdr/acpiwakeup.time"
# take care of UTC setting
if [ -f /etc/default/rcS ]; then
UTC=$(egrep "^[^#]*UTC=" /etc/default/rcS | tail -n1 | cut -d= -f2)
fi
LOG="logger -t vdr-addon-acpiwakeup "
else
UTC=$UTC
WAKEUP_FILE=$WAKEUP_FILE
LOG="nop"
fi
nop()
{
# No Operation
echo -n ""
}
if [ "$UTC" = "yes" ]; then
TIME_FUNCTION="gmtime"
else
TIME_FUNCTION="localtime"
fi
# Defaults:
[ -z "$ACPI_ENABLED" ] && export ACPI_ENABLED="yes"
[ -z "$ACPI_REGULAR_DAYS" ] && export ACPI_REGULAR_DAYS="0"
[ -z "$ACPI_REGULAR_TIME" ] && export ACPI_REGULAR_TIME="00:00"
[ -z "$ACPI_START_AHEAD" ] && export ACPI_START_AHEAD="5"
[ -z "$ACPI_ALARM" ] && export ACPI_ALARM="/proc/acpi/alarm"
[ -z "$WAKEALARM" ] && export WAKEALARM="/sys/class/rtc/rtc0/wakealarm"
TIMER=$1
TimeToString()
{
echo $(perl -e "(\$s,\$mi,\$h,\$d,\$mo,\$y,\$t,\$t,\$t)=\
$TIME_FUNCTION($1); printf(\"%04d-%02d-%02d %02d:%02d:%02d\",\
\$y+1900,\$mo+1,\$d,\$h,\$mi,\$s);")
}
AcpiError()
{
$LOG "No writeable $ACPI_ALARM or $WAKEALARM found. ACPI needed!!!"
echo "ABORT_MESSAGE=\"ACPI not installed, shutdown aborted!\""
exit 1
}
ResetWakeupTimeKernelLte2_6_22()
{
# I don't really now right now, how to disable
# the wakeup, so just set it to 00:00:01 !!!!
SetWakeupTimeKernelLte2_6_22 \
"`date -d '00:00:01' +'%s' | sed 's/_/ /'`"
return $?
}
SetWakeupTimeKernelLte2_6_22()
{
# convert time_t to YYYY-MM-DD HH:MM:SS
TIME_TO_SET=`TimeToString $1`
if [ -w $ACPI_ALARM ]; then
$LOG "Writing to $ACPI_ALARM"
echo "$TIME_TO_SET" >$ACPI_ALARM
# Set it once more - some boards require this!
echo "$TIME_TO_SET" >$ACPI_ALARM
return $?
else
return 1
fi
}
ResetWakeupTimeKernelGte2_6_23()
{
if [ -w $WAKEALARM ]; then
$LOG "Writing to $WAKEALARM"
echo 0 >$WAKEALARM
return $?
else
return 1
fi
}
Alles anzeigen
Gruß
Doug