Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Asus TUSL2-C, kein runterfahren, kein booten
#1
Hi,
ich habe es probiert nah er anleitung die in der FAQ steht zum thema nvram alles einzurichten, aber irgendwo hängts nochSad

das board steht sogar in der nvram-wakeup-mb.c drin, doch weder mit der --iwname noch mit der methode über die nvram-wakeup.conf (erstellt mit guess-helper und nach /etc kopiert) bekomme ich es nicht zum laufenSad

unter linvdr lief es ohne probleme out of the box

anbei die beiden dateien:

nvram-wakeup.conf:
Code:
################################################
##  Mainboard autodetection information:
##
##    - Mainboard vendor:   "ASUSTeK Computer INC."
##    - Mainboard type:     "TUSL2-C"
##    - Mainboard revision: "REV 1.xx"
##    - BIOS vendor:        "Award Software, Inc."
##    - BIOS version:       "ASUS TUSL2-C ACPI BIOS Revision 1014 Beta 001"
##    - BIOS release:       "09/20/2002"

addr_stat        = 0x56
shift_stat       = 4
addr_stat        = 0x6D   # but differs somewhere else
shift_stat       = 5
rtc_sec          = 0x73
rtc_min          = 0x75
rtc_hour         = 0x77
addr_stat        = 0x7F   # but differs somewhere else
rtc_day          = 0x7F
reset_day        = ON
addr_chk_h       = 0xE7
addr_chk_l       = 0xE8

upper_method = INTEL

vdrshutdown:
(natürlich habe ich, wenn ich die variante über die nvram-wakeup-mb.c gewählt habe, die raute vor den eintrag mit der nvram-wakeup.conf gesetzt und vor dem entsprechnenden eintrag entfernt.)


Code:
#!/bin/bash
# $Id: vdrshutdown,v 1.15 2003/08/06 12:55:44 bistr-o-math Exp $
. /etc/vdr/sysconfig

su root -c "hwclock -w --localtime"

#if [ x$LCD = x"graphlcd" ]; then
#  /etc/vdr/plugins/graphlcd/stop/starte.sh
#fi

NVRAMCMD=/usr/bin/nvram-wakeup
SVDRPCMD=/usr/bin/svdrpsend.pl
CHECKSCRIPT=

#################
##  if the script $CHECKSCRIPT thinks that we should     shutdown,
##     it must not pint anything on stdout.
##  if it                      thinks that we should NOT shutdown,
##     it must pint a one-line message on stdout.
##
##  note that all parameters passed to vdrshutdown will also be passed to $CHECKSCRIPT
##  so it might use them (e.g. $5 -eq 0 below)
##
##  it might look like this:
##  --------------------------
##    #!/bin/bash
## 
##    pgrep 2divx                       && { echo Divx-Conversion is still running;  exit; }
##
##    test -a /some/file                && { echo /some/file exists;                 exit; }
##
##    USERCOUNT=`who --count | grep users= | cut -f 2 -d "="`;
##    test $5 -eq 0 -a $USERCOUNT -gt 0 && { echo "$USERCOUNT users are logged in."; exit; }
##
##  --------------------------
##
##  now if $CHECKSCRIPT exists and is executable, the message will be passed through
##  SVDRP to the tv screen.
##

#test -x $CHECKSCRIPT && {
#     msg=`$CHECKSCRIPT $*`
#     test "$msg" != "" && {
#          $SVDRPCMD MESG $msg &
#          exit 1
#     }
#}

#################

# Add here needed options like --configfile=...
# (read man nvram-wakeup and man nvram-wakeup.conf for more details)
#$NVRAMCMD --configfile=/etc/nvram-wakeup.conf --directisa --settime $1
#$NVRAMCMD --directisa --settime $1
#$NVRAMCMD --iwname asus_tusl2 --directisa -ls $1
$NVRAMCMD -C /etc/nvram-wakeup.conf --directisa -ls $1



case $PIPESTATUS in
     0) # all went ok - new date and time set
        # /usr/bin/stopvdr
        #/bin/busybox poweroff
    #shutdown -h now
        poweroff
    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 - (Plan A is not supported anymore---see README)
        #
        # For plan B - (don't forget to install the modified kernel image first)
        #
       
    # Für ASRock aktivieren
    #touch /etc/vdr/nvram
    # Für andere aktivieren
        lilo -R PowerOff
        reboot
    # 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

Gruß
Lars
Zitieren
#2
für dein board gibt es eine nativ unterstützung vom entwickler des nvram-wakeup

siehe faq

http://www.easy-vdr.de/forum/index.php?topic=174.0

--  Wird exakt das Board gefunden, also genaue Boardbezeichnung und Biosversion stimmen überein, muß nur
      noch eine Zeile in der Datei/usr/bin/easyvdr/vdrshutdown editiert werden.

      Beispiel für ein Shuttle SK43g Mainboard:

      # Add here needed options like --configfile=...
      # (read man nvram-wakeup and man nvram-wakeup.conf for more details)
      $NVRAMCMD --configfile=/etc/nvram-wakeup.conf --directisa --settime $1
      #$NVRAMCMD --directisa --settime $1
      #$NVRAMCMD -C /etc/nvram-wakeup.conf --directisa -ls $1 <-- Orginal eintrag von easyvdr
      $NVRAMCMD --iwname asus_tusl2 --directisa -ls $1 <-- geänderter eintrag

      Wichtig hierbei ist der eintrag "--iwname boardname", alles andere kann so bleiben wie es ist.
     
gruss

tycoon96
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste