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)

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