Jump to content


Photo

Detecting stanby state


  • Please log in to reply
7 replies to this topic

#1 Guru65

  • Member
  • 3 posts

0
Neutral

Posted 17 January 2010 - 20:51

I have connected LG LCD TV set to by DM500S via serial cable to control the TV set from the Dreambox. I can control backlight, volume, input selection, power functions etc. using simple scripts with crontab.

I would like to automatically shut the TV set when my DreamBox is put in sleep. I should find a way to detect the standby state to send "power off" command to the TV set.

Any ideas how to do it properly?


Btw... if you try this yourself, please, cut off the cable to the RX pin (2) of Dreambox serial port or you will not get your box up when rebooted /images/smiley/shock.gif Actually you have to do a factory reset if you forget to do this simple modification. You need only pins 3 and 5.

Re: Detecting stanby state #2 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 18 January 2010 - 07:49

I think you need to modify Enigma for that. As far as I know, there's no way to see if it's in standby using shell scripts etc.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: Detecting stanby state #3 Guru65

  • Member
  • 3 posts

0
Neutral

Posted 18 January 2010 - 09:09

Does some hacking help like checking power led output register with some custom program? Is there any documentation where i/o-registers are located?

Re: Detecting stanby state #4 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 18 January 2010 - 09:30

You can try to create these scripts:
/var/etc/enigma_enter_idle.sh
/var/etc/enigma_leave_standby.sh

Re: Detecting stanby state #5 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 18 January 2010 - 19:42

You can try to create these scripts:
/var/etc/enigma_enter_idle.sh
/var/etc/enigma_leave_standby.sh

You're right. I forgot about that one.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: Detecting stanby state #6 Guru65

  • Member
  • 3 posts

0
Neutral

Posted 18 January 2010 - 22:01

Thank you, this solution works!

Now I started to wonder if there are other event scripting possibilities available like this one /images/smiley/wink.gif

Re: Detecting stanby state #7 OleEF

  • Member
  • 3 posts

0
Neutral

Posted 10 July 2014 - 22:51

You can try to create these scripts:
/var/etc/enigma_enter_idle.sh
/var/etc/enigma_leave_standby.sh

You're right. I forgot about that one.


Looks like it doesn't work anymore on OpenPli 4. Are there any other ways to run shell script on wake up?



Re: Detecting stanby state #8 erkman

  • Senior Member
  • 92 posts

+2
Neutral

Posted 12 July 2014 - 10:33

i'm test the powerstate with cron and webif

 

wget -q -O - http://127.0.0.1/web/powerstate | fgrep -i "e2instandby" | fgrep -i "true" >/dev/null 2>&1
if [ $? -eq 0 ] ;then
  echo "ET9200 is in standby"
else
  echo "ET9200 is running"
  # insert your code here to prevent NAS from entering standby ...
  /home/root/WoL.sh
fi


ET9200 openpli 6.2 ET4000 openpli 4 Solo2 openpli 7.2



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users