Running scripts on TV shutdown
Running scripts on TV shutdown
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
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!)
- 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!)
I do NOT receive any PM. Please use forum.
Re: Running scripts on TV shutdown
Thanks,the micom shutdown solution works nicely. Also good to know that button remaps don't affect SamyGOrc