Page 2 of 4
Re: [App] libSoftPowerOff K
Posted: Sat Oct 13, 2018 2:59 pm
by setti
I dont know, if the following happens because of libSoftPowerOff, but sometimes my TV just wakes up (sometimes in the middle of the night) with volume muted. I cant say when this happens. I would say one time in 3 days, but its not predictable.
Any one else?
I have KS7000 on FW 1165.
Re: [App] libSoftPowerOff K
Posted: Sun Oct 14, 2018 2:42 pm
by zoelechat
It's probably related to soft-off state, not to lib itself since there's no case where display is switched apart of audio. Most common TV-wake-up-during-night reason is software update enabled in regular menu. If done disabled I've no other idea...
Re: [App] libSoftPowerOff K
Posted: Mon Oct 15, 2018 8:00 am
by setti

Oooops, automatic updates were turned on (router blocked all requests of course).
I will see, if it helps to turn them off.
Thank You!
Re: [App] libSoftPowerOff K
Posted: Mon Oct 15, 2018 10:12 am
by zoelechat
I've still got some doubt that it's sometimes auto reenabled despite user choice... In such case you can use
libSTFU, undocumented but will systematically disable updates on injection. If you're not interested in other timing features, just use without args.
Re: [App] libSoftPowerOff K
Posted: Tue Oct 16, 2018 9:19 am
by setti
Just disabling auto update wasnt enough. This early morning TV started again automagically. I will try libSTFU with default lib args next. Thanks zoelechat.
Re: [App] libSoftPowerOff K
Posted: Tue Oct 23, 2018 6:59 pm
by setti
libSTFU does not help too. 2 mornings in a row at 7am tv starts.
Nobody else have this problem?
Re: [App] libSoftPowerOff K
Posted: Tue Oct 30, 2018 8:16 am
by asiersan
i have same problem,only happens few times, there are two situations located:
1 when is a power cut, when power return it power on.
2 when is an internet cut, them if tv is in standby (Softpoweroff) tv returns on.
Re: [App] libSoftPowerOff K
Posted: Sun Feb 03, 2019 5:46 pm
by setti
I finally found out, what was causing my restarts!
Its Oscam, better dvbcam...
11_Oscam.init by zoelechat contains a watchdog for dvbcam. So, whenever dvbcam exits, for whatever reason, it will be restarted by
Code: Select all
while [ "$(pidof $CAM)" ] ; do
[ ! "$(pidof dvbcam)" ] && $OSCAM_DIR/dvbcam 2>>$LOG
sleep 1
done&
When TV is "soft powered off" and dvbcam is started via "$OSCAM_DIR/dvbcam" (I tried it manually), the TV powers on.
Is there something we can do, to not power on TV when starting dvbcam?
Re: [App] libSoftPowerOff K
Posted: Sun Feb 03, 2019 7:31 pm
by zoelechat
Well, it just means that dvbcam still crashes from time to time, that's why such "watchdog" was there to restart it. I'd have thought several versions since then would have made it rock stable

I guess it could be possible to check power state through dbus or so, and add it as a condition for restart or not. Let me find the right way...
Re: [App] libSoftPowerOff K
Posted: Sun Feb 03, 2019 7:54 pm
by zoelechat
Ok so, just replace that line:
Code: Select all
[ ! "$(pidof dvbcam)" ] && $OSCAM_DIR/dvbcam 2>>$LOG
by that (long!) one:
Code: Select all
[ ! "$(pidof dvbcam)" ] && [ "$(echo $(dbus-send --system --dest=org.tizen.system.deviced --type=method_call --print-reply=literal /Org/Tizen/System/DeviceD/Display org.tizen.system.deviced.display.GetState))" == "lcdon" ] && $OSCAM_DIR/dvbcam 2>>$LOG
dvbcam should then restart (if it's crashed) only once lcd is on. Side-effect: forget any *reliable* recording schedule of scrambled channel when in soft off state
