Running scripts on TV shutdown

Here for general support for F series TVs, request and problem solve area.
Post Reply

ms000
SamyGO Project Donor
Posts: 2
Joined: Sun Apr 19, 2015 10:23 am

Running scripts on TV shutdown

Post by ms000 » Mon Jun 26, 2017 9:54 am

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

zoelechat
SamyGO Moderator
Posts: 7742
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Running scripts on TV shutdown

Post by zoelechat » Mon Jun 26, 2017 10:36 am

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!)
I do NOT receive any PM. Please use forum.

ms000
SamyGO Project Donor
Posts: 2
Joined: Sun Apr 19, 2015 10:23 am

Re: Running scripts on TV shutdown

Post by ms000 » Mon Jun 26, 2017 11:07 am

Thanks,the micom shutdown solution works nicely. Also good to know that button remaps don't affect SamyGOrc

Post Reply

Return to “[F] Support”