Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

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
Task Type Feature Requests
Category
Status New   Reopened
Assigned To No-one
Player Type
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

The 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

Comment by Casey Dill (caseydill) - Thursday, 09 January 2003, 21:44 GMT+1

exit counter
endif
next $counter
endif
if $poweron = flase then
POWEROFF
endif
}
Comment by Axel Berger (axel-berger) - Saturday, 11 March 2006, 04:59 GMT+1
Is there a reason why this has not been taken up? Inadvertant switching on while in the bag during the day is something that happens far too often with mine.
Comment by Marc-André Turcotte (matmat07) - Tuesday, 18 December 2007, 15:07 GMT+1
I know there is an option so your mp3 player turns off after a while if no button have been pressed. Maybe that's the reason.

Loading...