Customizable script on power off?

Ideas and dreaming will go this forum
Post Reply

nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: Customizable script on power off?

Post by nbd »

And I could use it to send IR signal to my amplifier to power off. This would be nice feature indeed.
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Customizable script on power off?

Post by erdem_ua »

It's possible I think but, Instead it's easy to use ping to detect if TV is open or not...
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Customizable script on power off?

Post by marcelru »

Hi,

I think it's possible to add an extra line to the rc.local script that runs exeDSP.
Just add an extra call to a poweroff script after exeDSP exits. It should have features to prevent system reboots or halts, but otherwise I think you can do whatever you like in it. It will mean an extra flash of your firmware, and probably a short name for your script, depending on the free space in the image file.

HTH,

marcelr

Post Reply

Return to “[B] Brainstorm”