Page 1 of 1

Running scripts on TV shutdown

Posted: Mon Jun 26, 2017 9:54 am
by ms000
I was wondering if it was possible to run a script between pressing power off on remote and the tv shutting down. I am aware it is easy to do with SoftPowerOff, but i would prefer to do that when switching to actual stand-by. In particular i have to exit oscam (with SIGINT) as otherwise it leaves a dead connection to the reader

Re: Running scripts on TV shutdown

Posted: Mon Jun 26, 2017 10:36 am
by zoelechat
You can use SoftPowerOff anyway, and launch some true-OFF script as CMD_OFF, in sequence:
- kill oscam
- sync
- micom shutdown
Or simply remap power button to same script + send KEY_POWER (but beware of PVR case where TV could be in soft off!)

Re: Running scripts on TV shutdown

Posted: Mon Jun 26, 2017 11:07 am
by ms000
Thanks,the micom shutdown solution works nicely. Also good to know that button remaps don't affect SamyGOrc