FS#5958 - Car adapter mode for iPod nano

Attached to Project: Rockbox
Opened by Marc (marc76) - Friday, 08 September 2006, 16:38 GMT
Task Type Feature Requests
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System iPod Nano
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I'd like my iPod nano to shutdown or even stop playing when external power supply switches off. Found out that this exists already and is called "Car adapter mode", but this feature is not enabled on iPod nano. I had a quick look at the source files, what I found out so far is that the setting "Car adapter mode" depends on flag CONFIG_CHARGING (see settings.c) and this commented out in config-ipodnano.h. I'm not very experienced in developing in C and even less in Rockbox software, so I start this request: I'd like to know if this can be enabled for iPod nano, and if yes, please do so ;-)

Thanks, Marc
This task depends upon

Closed by  Bj√∂rn Stenberg (zagor)
Tuesday, 08 May 2007, 20:40 GMT
Reason for closing:  Out of Date
Additional comments about closing:  Closing all feature requests.
Comment by oblib (oblib__) - Friday, 30 March 2007, 04:32 GMT
I think I've got it done here. All I did was enable the CONFIG_CHARGING for the nano, and set the proper GPIO bit in power-ipod.c. I don't know what the other consequences are of enabling CONFIG_CHARGING, so please let me know if there are any side effects.

To enable, go to settings->general settings->system->car adapter mode, and you can also look at general settings->display->lcd settings->backlight (while plugged in)
Comment by Andrew (indra) - Sunday, 29 April 2007, 16:27 GMT
is it possible to create same patch for iPod 4G grey?
Promise to respond with bug reports :)
Comment by Marc (marc76) - Sunday, 29 April 2007, 21:55 GMT
Hi oblib,

finally I had some time this weekend to set up a complete development environment, and I made my first own build including your patch. Works as aspected on my nano in my car, thanks! :-)

Greetz, Marc