This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#705 - Pseudo power on button lock.
Attached to Project:
Rockbox
Opened by Casey Dill (caseydill) - Thursday, 09 January 2003, 21:33 GMT+1
Last edited by Dave Chapman (linuxstb) - Sunday, 15 June 2008, 10:05 GMT+1
Opened by Casey Dill (caseydill) - Thursday, 09 January 2003, 21:33 GMT+1
Last edited by Dave Chapman (linuxstb) - Sunday, 15 June 2008, 10:05 GMT+1
|
DetailsThe hardware does not allow for a true power on button
lockout. But would it be possible for a “pseudo” power on button lockout. Here is the way I see it working. When the feature is turned on, as soon as the firmware starts (say from the on button getting accidentally bumped) , it would look for another button being pressed (say f1) or will require you to press a button within a short countdown time. Otherwise, the unit will automatically turn off. pseudo_poweron_lock() { $keylock_btn=f1 if $keylock_btn pressed then $poweron=true else for counter=3 to 1 step -1 print "Power off in $counter seconds. Press $keylock to abort" pause 1 second if $keylock_btn pressed then $poweron=true |
This task depends upon
exit counter
endif
next $counter
endif
if $poweron = flase then
POWEROFF
endif
}