Powered by Invision Power Board


  
 
Reply to this topicStart new topicStart Poll

> WakeUp Probleme
HelAu
Geschrieben am: Freitag, 09.Mai 2003, 15:04 Uhr
Quote Post


Scheffe
****

Gruppe: Admin
Beiträge: 11285
Mitgliedsnummer.: 2
Mitglied seit: 2003-04-25



Geschrieben von uwe am 02. Juni 2002 15:05:19

Hi, ich habe nach Hubertus Sandmann's Anleitung für mein MP (AVT Board) nvram-wakeup installiert. Die Werte werden, wenn ich nvram-wakeup aufrufe, richtig ins Bios geschrieben. Damit nocheinmal gebootet wird gebe ich lilo -r PowerOff ein. Dabei erhalte ich die Fehlermeldung "Fatal: chroot PowerOff no file or dir". Wenn ich dann mit "shutdow -r now" boote, kann ich im lilo PowerOff auswählen und das System schaltet sich aus. Bei der eingestellten Zeit fährt das System hoch.
Wenn ich im VDR die Powertaste drücke ,werden keine Timer-Werte ins Bios geschierben, und das System schlatet nur aus.
Kann mir jemand helfen ?
Gruß uwe



Geschrieben von HelAu am 02. Juni 2002 18:02:56

Also bei mir klappts prima:
in lilo.conf:
CODE
 image = /boot/bzImage.poweroff
 label = poweroff

einfuegen und dann nochmal lilo starten.
/boot/bzImage.poweroff muss natuerlich vorhanden sein :-)
In runvdr vdr mit der option:
-s /usr/local/bin/vdrshutdown $*"
starten.
Und vdrshutdown sieht so aus:
CODE
hwclock --systohc
NVRAMCMD=/usr/local/bin/nvram-wakeup
$NVRAMCMD -ls $1
case $PIPESTATUS in
    0) # all went ok - new date and time set
# we still need to reboot because the Mediaportal with
# the QDI-mainboard does not always poweroff when
# 'shutdown -h' is called. It sometimes still
# reboots instead. So we choose the save way with
# always rebooting the poweroff-kernel.
       if [ -f /XXX ];then
  echo "user logged in, shutdown aborted"
         exit 1
       fi
       lilo -R PowerOff
       shutdown -r now
       EXITSTATUS=0
      ;;
    1) # all went ok - new date and time set.
       #
       # *** but we need to reboot. ***
       #
       # for some boards this is needed after every change.
       #
       # for some other boards, we only need this after changing the
       # status flag, i.e. from enabled to disabled or the other way.
       # For plan A (see README file for more details) - uncomment
       #            the touch line (don't forget to change your boot script)
       #            and comment out the lilo line
       #
       # For plan B - uncomment the lilo line and comment out the touch line
       #            (don't forget to install the modified kernel image first)
       #
       # touch /nvramboot
       if [ -f /XXX ];then
         echo "user logged in, shutdown aborted"
         exit 1
       fi
       lilo -R PowerOff
       shutdown -r now
       EXITSTATUS=0
      ;;
    2) # something went wrong
       # don't do anything - just exit with status 1
       EXITSTATUS=1
      ;;
esac
# exit with 0 if everything went ok.
# exit with 1 if something went wrong.
exit $EXITSTATUS




Geschrieben von Fidel am 02. Juni 2002 19:01:08

QUOTE
/boot/bzImage.poweroff muss natuerlich vorhanden sein :-)

Ich denke der Fehler ist das '-r' statt '-R' beim Aufruf des lilo.
QUOTE
Und vdrshutdown sieht so aus:

Bis auf den zusätzlichen hwclock-Aufruf kommt mir das script aber sehr bekannt vor :-)
Tschüß, Fidel



Geschrieben von uwe am 02. Juni 2002 20:30:41

QUOTE
Also bei mir klappts prima:
i
  -s /usr/local/bin/vdrshutdown $*"

Hi HelAu,
wenn ich in runvdr den Shutdown genauso angebe, läuft VDR nach dem booten nicht mehr, wenn ich nur das " weglassen läuft VDR aber fährt nicht mehr runter....
Hier nocheinmal der ganze Eintrag:
VDRCMD="$VDRPRG -w 60 -s /usr/local/bin/vdrshutdown $* -c /usr/local/src/VDRtmp -E
noch eine (blöde) Frage. Beim mc muß ich immer 3 x die Entertaste betätigen, damit ein Befehl angenommen wird. Auf der command-ebene funktioniert das nach 1 x. Hast Du eine Tip wie ich den mc wider auf default kriege ?
gruß uwe



Geschrieben von HelAu am 02. Juni 2002 21:14:22

QUOTE
Bis auf den zusätzlichen hwclock-Aufruf kommt mir das script aber sehr bekannt vor :-)

Woran das wohl liegt :-)



Geschrieben von HelAu am 02. Juni 2002 21:19:29

Also mein Eintrag sieht so aus:
VDRCMD="$VDRPRG -o /video/mount.sh -w 10 -s /usr/local/bin/vdrshutdown $*"
...
su -c "$VDRCMD" $VDRUSR
Falls VDR damit gar nicht startet dann gebe den Befehl mal in der Kommandozeile exakt so ein. Dann muesste die Fehlermeldung von VDR zu lesen sein.
Zu dem MC Problem kann ich nichts sagen, das hatte ich noch nie.
Allerdings arbeite ich jetzt nur noch remote per ssh am MP.
Gruss
Helmut
Email PosterUsers WebsiteICQAOLYahoo
Top
Thema wird von 0 Benutzer(n) gelesen (0 Gäste und 0 Anonyme Benutzer)
0 Mitglieder:

Topic Options Reply to this topicStart new topicStart Poll