[App] libSoftPowerOff K

Here are software that related with Samsung K series TVs.
Please don't create any new topic here unless you have software to post/release.

setti
SamyGO Project Donor
Posts: 117
Joined: Sat Jan 07, 2012 11:32 am

Re: [App] libSoftPowerOff K

Post by setti »

Thanks! I dont record via tv anyway. Im having a tvheadend server for that purpose.

We just need a method now on soft powering on, to check if dvbcam is running or crashed, while lcd was off.

zoelechat
Official SamyGO Developer
Posts: 8430
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat »

You gave me doubt, I had to hardly review and understand my code :D
With new condition, it's "monitoring" soft power on, the while loop is endless as long as you don't use script stop case or manually kill oscam. It used to restart dvbcam in case of crash, and now it additionally waits for screen to be on.
Well, just try and tell if you're still awaken during night ;)
I do NOT receive any PM. Please use forum.

zoelechat
Official SamyGO Developer
Posts: 8430
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat »

If you want to hurry try, you can do it like this:
- Put TV in soft off state
- Using old script, "killall dvbcam", screen should go on
- Do same with new script, screen should stay off :)
I do NOT receive any PM. Please use forum.

setti
SamyGO Project Donor
Posts: 117
Joined: Sat Jan 07, 2012 11:32 am

Re: [App] libSoftPowerOff K

Post by setti »

zoelechat wrote:
Mon Feb 04, 2019 10:36 am
You gave me doubt, I had to hardly review and understand my code :D
With new condition, it's "monitoring" soft power on, the while loop is endless as long as you don't use script stop case or manually kill oscam. It used to restart dvbcam in case of crash, and now it additionally waits for screen to be on.
Well, just try and tell if you're still awaken during night ;)
Ahhh, you're right. I forgot the endless while loop.
Although, sometimes dvbcam stops and it does not autorestart. My wife just complained, that she couldnt watch the Kardashians :lol:

I will have a closer look, if it happens again.

zoelechat
Official SamyGO Developer
Posts: 8430
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat »

Maybe you can increase sleep time from 1 to say 5, it will prevent too much "hammering" and give it more time to restart properly, just in case. Also don't forget while loop ends if oscam itself exits for some reason (crash too? Would be annoying since its pid is script started flag).
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[K] Software”