Standby on reboot.. is possible?

Wir haben aktuell ein Problem mit dem Board und arbeiten an der Lösung...
  • Hi friends,
    I have a trouble with the Gemini 4.5 on 7020si.
    When there is a blackout, and the DB is turn off, on the restart I would that it will going in standby automatically.
    It's possible? There is any script or function that I must activate in gemini image?
    Thank's


    homar1

  • you could simply use the webif command to press the power button with a sleep (so that enigma1 is fully running) and wget from any of the startup scripts (like rcS) to get this feature.

  • Zitat

    Originally posted by gutemine
    you could simply use the webif command to press the power button with a sleep (so that enigma1 is fully running) and wget from any of the startup scripts (like rcS) to get this feature.


    Thanks to reply gutemine.
    I'm not expert in programming ... can you say me which is the webif command that I must write in rcS file?
    I have found this /var/script/standby.sh:


    DREAMBOX="http://rootasswordDB@127.0.0.1"
    export DREAMBOX
    sleep 20
    /bin/wget -O- "${DREAMBOX}/cgi-bin/admin?command=standby"
    exit 0


    Now whats I must write in rcS to execute that at startup?


    Thank you

  • Isnt there an option in the BIOS for "Event after Power On" with value "Always On"? I think you can change it to eg. "StandBy"? I can't try it on myself at this time, i'll get trouble with my wife... :tongue:

    Meine Projekte: TVB-Parser, WebIF-Expert, DreamBox-Offline-Timer, StandBy2DeepStandBy...

  • Zitat

    Originally posted by gutemine
    /var/script/standby.sh &


    Well.. I will add the line: /var/script/standby.sh &
    in /etc/init.d/rcS


    and the file standby.sh in /var/script directory


    I will try if it works when I will be at home.


    Thanks

  • Zitat

    Originally posted by Agrivaine
    Isnt there an option in the BIOS for "Event after Power On" with value "Always On"? I think you can change it to eg. "StandBy"? I can't try it on myself at this time, i'll get trouble with my wife... :tongue:


    Thanks Agrivaine, I prefer the "programmed" version because .. I don't want move my DB to link with serial null-modem at PC and enter in BIOS mode.
    Moreover I have an other DB (Unibox 600PVR) and I do not know if there is the function in the bios of this.


  • Sorry gutemine... the script don't work!!!
    I suppose that "http://rootasswordDB@127.0.0.1" is incorrect. Perhaps it must be replaced from some other word?


    thanks

  • if you don't have a password for root user it can be ommited, if not you have to change it to your password - that#s why it is on an extra variable that you can change at the beginning of the script.


    Try it out first in a webbroweser, if you then know the correct string put it there

    Einmal editiert, zuletzt von gutemine ()

  • Zitat

    Originally posted by gutemine
    if you don't have a password for root user it can be ommited, if not you have to change it to your password - that#s why it is on an extra variable that you can change at the beginning of the script.


    Try it out first in a webbroweser, if you then know the correct string put it there


    I have modified in "http://root:password@192.xxx.xxx.xxx" and tested in web browser... as I can go in web Interface of my DB.


    I have writing in script "http://root:password@127.0.0.1" and I have launched it from "user script" ... but the DB don't go in stanby...
    Where I make the mistake?

  • Zitat

    Originally posted by MartiniB
    take example from there dreambox restart by timer


    Thanks to info Martini... great job yours.


    I have tested with telnet my script - stby.sh -:


    sleep 60
    /usr/bin/wget -O /dev/null http://root:miapassword@ip.del…bin/admin?command=standby


    .. and it work (the DB go in standby)


    but if I put: /var/etc/stby.sh & in Inadyn_script.sh


    It don't work on reboot (by blackout).



    Where I must insert the launch line: /var/etc/stby.sh &
    ?



    Thanks

  • show your inadynscript or beter add some echo lines which reports sto some tmp file
    .
    ..
    ...
    echo "execute stby">/tmp/stby_test.tmp
    /var/etc/stby.sh &
    .....
    ..


    and then check does that file is present under /tmp/



    dreambox restart by timer

    dm8Ksstt+NN2 dm7020+GP
    1.8m+36E;28E;23E;19E;16E;13E;7E
    1.6m+42E;40/39E;36E
    1.0m+10/9E;5E;1W;8W
    0.8m+4/5W
    1.1m+12W;18W;24W
    1.0m+15W;22W;30W
    1.0m+75E;80E
    1.1m+53E;60E