FS#4815 - make car adapter mode work on iPod 5G

Attached to Project: Rockbox
Opened by Ralf Herz (herz42) - Saturday, 11 March 2006, 01:09 GMT
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System iPod 5G
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch makes the car adapter mode working conveniently on iPod 5g.
It solves two issues:

At the moment the way to detect charing power is the usb driver.
After patching, the information is also used in other places than powermgmt (like backlight timeout, etc.).

If usb power is detected, the device switches to harddisk mode.
Unfortunately, a 12V charger or a usb charger without usb logic will make the iPod go to hdd mode, as well.
Then nothing is detected, switching back to rockbox - hdd mode again - back - and so on.

The mechanism to avoid hdd mode by pressing the menu button doesn't work at startup (at least not for me).
And its rather difficult to handle the iPod at the same time when starting the car engine...

So this patch just reverses the default for the hdd mode.
If you want hdd mode, the menu button must be pressed while plugging in usb.
This task depends upon

Closed by  Brandon Low (lostlogic)
Sunday, 19 March 2006, 12:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks
Comment by Alan Morse Davies (stuffedspacedog) - Tuesday, 14 March 2006, 15:06 GMT
I can confirm this also works for the 4G iPod Photo 60Gb - fantastic!
Comment by Brandon Low (lostlogic) - Saturday, 18 March 2006, 21:17 GMT
Ralf, why do you change the == USBPOWER_BUTTON to !=? That seems sure to break on other targets. Does car adapter mode still not work right with my commits lately?
Comment by Ralf Herz (herz42) - Saturday, 18 March 2006, 22:30 GMT
Sorry, I just posted that patch for ipv users without taking care about other targets.
Anyhow with actual cvs the patch is no longer needed. So can you please close this task?