Jump to content


Photo

AutoStandby?

DM800

  • Please log in to reply
10 replies to this topic

#1 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 26 July 2011 - 20:11

I used to have a cheap box (not even linux-capable), and it had this very useful feature to go into standby automatically after being idle for more than an x amount of time, and i miss it already; Sometimes i fall asleep when watching tv and I forget the tv on all night long.


I don`t see a similar option on Pli, is there?...Autostandby would be a very welcome and useful feature to Openpli2, already steady and powerful.

I see Vix images have a similar functionality in power manager, but I`m not sure if it works that way because i don`t have a Vu+ at hand, please correct me if I`m wrong; I`m thinking since Vix is based on Openpli2, this feature can be ported somehow.

Is there similar downloadable plugin or panel?

Thx!

Re: AutoStandby? #2 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,509 posts

+397
Excellent

Posted 26 July 2011 - 20:32

Hi,

Just add a timer and choose for zap to channel ... and at the end 'after recording' go to standby. Do this every day and ready.

Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: AutoStandby? #3 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 26 July 2011 - 22:40

Thx Frenske for your input, a timer-based standby to the rescue, I`ll give it a try and see if i can get used to the idea...was hoping for a more energy efficient system setting or plugin though, but hey thx anyways!!!

Re: AutoStandby? #4 VU+NL

  • Senior Member
  • 6,424 posts

+12
Neutral

Posted 27 July 2011 - 04:53

I see Vix images have a similar functionality in power manager, but I`m not sure if it works that way because i don`t have a Vu+ at hand

It does. And that functionality is integrated, it's not a plugin.
VU+ DUO/UNO/Digiality 85cm multifocus-4 X twin-Inverto-LNB's/Triax 88 USALS/Logitech Harmony 300, 555, 600, 900 en 1100

Re: AutoStandby? #5 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 27 July 2011 - 15:47

Thx VU+NL for clearing that up...I`m sorry I have to insist, I`m desperate; Is it possible to port that functionality to Pli2?

Frenske: I`m afraid, a timer-based standby, like you mentioned, isn`t an option since it can`t be done, only through recording i get "go to standby" in the menu, any Help?

Re: AutoStandby? #6 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 6 November 2011 - 12:02

Hi everyone!,

I`ve been looking around for a while and it seems that the closest i could get is to create a script and then have it executed by crontab, here`s how...

Create the following script and name it "AutoStandby.sh", and put it inside /usr/script for example:

Script:

#!/bin/sh
########################################
#          Set box to standby          #
########################################

wget -q -O - "http://127.0.0.1/web/powerstate?newstate=0" >/dev/null

The following crontab command puts your box into standby @ 2:00 AM every night.

Crontab:

0 2 * * * /usr/script/AutoStandby.sh

You can also download the file below, i included "cronmanager" if you wanna experiment a little.

I hope our dev team looks into this very useful feature...

http://www.mediafire...1vbzs1b8asv5de9

Thx!

Edited by Lukin, 6 November 2011 - 12:04.


Re: AutoStandby? #7 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 6 November 2011 - 16:29

Try these " powerstate?newstate=" settings in the script above for more options:

0 = Toogle Standby
1 = Deepstandby
2 = Reboot
3 = Restart Enigma2
4 = Wakeup form Standby
5 = Standby

I hope this helps someone until the team decides what`s best.

Edited by Lukin, 6 November 2011 - 16:32.


Re: AutoStandby? #8 kanaka

  • Member
  • 28 posts

0
Neutral

Posted 8 February 2012 - 05:12

Can the above suggested method use for Stand by after Power on?.
Think today for a better tomorrow. After all, today is yesterday's tomorrow.

Re: AutoStandby? #9 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 8 February 2012 - 10:08

Hi Kanaka!

yes, that was the idea at the time and it was a workaround actually, because now there`s "autoshutdown" a dedicated plugin for power management under systemplugins downloadable from the online feed, accessible from plugin menu or setup > system > autoshutdown settings after download.

Re: AutoStandby? #10 kanaka

  • Member
  • 28 posts

0
Neutral

Posted 8 February 2012 - 18:42

Hi Lukin,

Thank you for your info. In fact I used the following script in my DM500 and it worked nicely. I want to implement it in DM800 as well.

gt_standby.sh



#!/bin/sh

PSW="dreambox"
TMPFILE="/tmp/tmpWebIF.standby"

if [ "$1" = "" ]; then
sleep 20
else
sleep $1
fi

wget -O $TMPFILE -q http://root:$PSW@localhost/cgi-bin/admin?command=standby
rm $TMPFILE

exit 0


init

#!/bin/sh
/var/script/gt_standby.sh 40 &


How do I implement the above in DM800. Appreciate your help.
Think today for a better tomorrow. After all, today is yesterday's tomorrow.

Re: AutoStandby? #11 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 9 February 2012 - 14:38

Hi Kanaka!,

dm500 and dm800 run on different plateforms (enigma1 vs engima2), and adapting the above code isn`t gonna help!,

I`m thinking; "why not look at script at post #6 above and have it executed by a cronjob instead".

I know it works in dm800, I did some research back then about how to automate a cronjob and got some help from our wonderful Pli members here, you can read about it HERE

Enjoy!.



Also tagged with one or more of these keywords: DM800

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users