• Status Closed
  • Percent Complete
  • Task Type Bugs
  • Category Battery/Charging
  • Assigned To No-one
  • Operating System iPod Nano 2G
  • Severity Low
  • Priority Very Low
  • Reported Version Release 3.7.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by user890104 - 2011-02-01
Last edited by speachy - 2021-05-12

FS#11917 - iPod nano 2g charger detection

When plugging in an AC USB charger, the ipod shows rockbox’s disk mode instead of just changing the “external power” icon. Is it possible to make it detect if a charger is connected, or an usb host (for example, a computer)?

Doing the same test (with the same charger) on an ipod color/4g shows the expected result (not going to usb mode, just a charger icon appears)

Closed by  speachy
2021-05-12 21:45
Reason for closing:  Out of Date
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

There have been improvements over the past 9 years in this regards.

But ultimately I believe fixing this properly will require a partial rewrite of how we handle USB insertion events.

I have a dock, which acts as a AC charger, where I connect my iPod Nano 2G. It charges perfectly, without entering disk mode (except if the dock is connected to USB). Strangely, on theme's charger icon is not shown but on the "Rockbox Info" screen it says battery is charging. This thing of the charger icon not appearing is a minor bug I live with.

You can, anyways, block Rockbox from entering disk mode by pressing the Menu key at the same time you insert the charger cable.

The problem comes from 1) how we detect usb charger 2) how cheap chargers are made. Basicaly we detect charger by waiting for host to perform usb reset. If reset do not come in particular timeframe we assume that charger is connected. Dumb usb charger has (usually) data lines floating and doesn't perform any action other than provide +5V on power line. There are however some chargers where data lines are pulled down to ground. From device perspective connecting such charger looks like connecting to the host which perform bus reset. Now if device has pullups on data lines strong enough it will behave correctly with such charger in rockbox (ipod video for example), otherwise it will missbehave and enter disk mode (ipod mini for example).

@marcin: do you mean that this cannot be fixed? it's very annoying to have the pull the car charger out each time we want to boot rockbox. this bug (?)/feature deserves some attention as it will dramatically increase end-user usability. thanks

Honestly I don't know current status precisely. Bug Torne on IRC. He has my mini1g + dumb charger which exhibits this (mis)behaviour. During last DevCon he had some bright idea how to solve the issue.


Available keyboard shortcuts


Task Details

Task Editing