Page 1 of 5

sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 3:26 pm
by KAD
Starting a new thread on this, mainly so it can be found
but there's still lots of good info in the prior http://forum.wdlxtv.com/viewtopic.php?f=17&t=5759
with discussion of some sleep functionality built into sysinfo UMSP plugin

so anyways
sleeptimer.app.bin or I guess you could call it sleep on idle

Change Log

12/2/2013
* add log file at /tmp/sleeptimer.log
* add check to make sure power went off, if still powered, 2nd attempt to power off

12/08/2011 version 1.3
* added more time between system checks, should prevent premature shutdown

11/29/2011 version 1.2
*fixed not able to use custom TIME_TO_SLEEP value

11/19/2011 version 1.1
*fixed not powering down from within netflix

11/16/2011 version 1.0
*Original Release

Download
use addons manager to download from svn

Supported Devices
WDTV Live
WDTV Live Plus

Requirements
any WDLXTV firmware
DMAOSD_DEBUG must be "File" or "File + stderr" (first tab in WEC under "system")
if DMAOSD_DEBUG is "OFF" this will not work

Installation
set DMAOSD_DEBUG (first tab in WEC under "system" if you've never used this select "File")
reboot
select SLEEPTIMER ON (WEC Apps tab)

Optional
set TIME_TO_SLEEP (WEC Apps tab) default is 600 seconds

Notes
Not compatible with videoscreensaver.app.bin

KAD

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 4:22 pm
by simogere
Good job, KAD! It works! Unfortunately you can't enable/disable the timer by remote. Anyway, thanks for the app!

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 4:47 pm
by KAD
yeah, was originally thinking about that, but it requires catching key press, which needs wdtvext, the other option is to use sysinfo UMSP plugin in conjunction with this to change the settings and restart the script

for now it's sort of 2 options, this is a set it and leave, sleep on idle
and sleeptimer has the option to force power down in x amount of time

KAD

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 5:06 pm
by simogere
No problem, KAD. With Sysinfo plugin I already have all what I need ;)

Thanks again, Simone.

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 11:33 pm
by AnarchyBurger
This works great so far but with one issue, it doesn't close out of Netflix when trying to shutdown. If it sent the OK button command a few seconds after the power button command it would go all the way to standby from Netflix. I don't know about most people but Netflix is open about 80% of the time the device is on for me.

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 11:40 pm
by KAD
does it create a problem to shutdown while still in netflix? or does it not shutdown while in netflix?
since I have a live, I can guarantee my WD has never had netflix open :P

if there's a problem or enough need, I can inject HOME prior to shutdown

KAD

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 11:49 pm
by AnarchyBurger
KAD wrote:does it create a problem to shutdown while still in netflix? or does it not shutdown while in netflix?
since I have a live, I can guarantee my WD has never had netflix open :P

if there's a problem or enough need, I can inject HOME prior to shutdown

KAD


It doesn't shut down properly in Netflix. If Netflix is open and you hit the power button on the remote a screen pops up and asks you if you want to quit Netflix with a yes/no selection screen. When the app tries to power down the wdtv it just stays at this option screen waiting for more input. If the app at this point sent the ok button command it would exit Netflix and power down. Other then that it works.

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 11:51 pm
by KAD
well, that definetely is a problem, I'll make some edits sometime this weekend

KAD

Re: sleeptimer.app.bin

PostPosted: Thu Nov 17, 2011 11:56 pm
by AnarchyBurger
KAD wrote:well, that definetely is a problem, I'll make some edits sometime this weekend

KAD


I look forward to it. You the man. :D

Re: sleeptimer.app.bin

PostPosted: Fri Nov 18, 2011 6:05 pm
by KAD
since I don't have a PLUS I need some info from PLUS netflix users

1. if you push power while in NETFLIX, the popup screen, is the default OK, to leave netflix
or is the default cancel, so it requires 2 key presses??

2. is there any other way out of NETFLIX? is you push HOME does it ask you to exit netflix or does it actually return you to the home screen?

KAD