Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: How to shorten the LONG PLAY press to shut down an iPod?

Re: How to shorten the LONG PLAY press to shut down an iPod?

From: Marcin Bukat <marcin.bukat_at_gmail.com>
Date: Thu, 30 Jun 2011 20:18:52 +0200

2011/6/30 asettico <asettico_at_rossomaltese.it>:
> Hi all,
> since I'm experiencing a little bit too much long the time after which the
> pressed PLAY button shut down the DAP, I would like to try to shorten this
> value.
>
> Digging in the sources, I found this define:
>
> trunk/firmware/target/arm/ipod/button-target.h:76:#define POWEROFF_COUNT 40
>
> The questions are:
> is this enough to change the LONG PRESS time?
> and was the value 40 hard coded after some calibration or have I some range
> to perform some tests?

This line doesn't change regular long presses, only the shutdown one.
Grep tells me that our target have this value set in range 10-40 and I
guess it was chosen to the taste of the ipod's button driver
developer.

wodz
Received on 2011-06-30

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy