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.
[App] libSoftPowerOff K
Re: [App] libSoftPowerOff K
You gave me doubt, I had to hardly review and understand my code
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

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.
Re: [App] libSoftPowerOff K
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
- 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.
Re: [App] libSoftPowerOff K
Ahhh, you're right. I forgot the endless while loop.zoelechat wrote: ↑Mon Feb 04, 2019 10:36 amYou gave me doubt, I had to hardly review and understand my code![]()
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![]()
Although, sometimes dvbcam stops and it does not autorestart. My wife just complained, that she couldnt watch the Kardashians

I will have a closer look, if it happens again.
Re: [App] libSoftPowerOff K
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.