Rockbox

Tasklist

FS#10591 - iPod nano reboots on idle poweroff when plugged into JBL on stage

Attached to Project: Rockbox
Opened by Terence Haddock (lazerdye) - Sunday, 06 September 2009, 13:39 GMT
Last edited by Torne Wuff (torne) - Wednesday, 10 February 2010, 13:40 GMT
Task Type Bugs
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System iPod Nano
Severity Low
Priority Normal
Reported Version Version 3.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I have a 1st gen iPod nano with Rockbox 3.3 installed using rockbox utility. I have idle time set to 1 minute. When the nano is not plugged into anything, it shuts down normally after 1 minute. When it is plugged into my JBL on stage, it powers down but immediately boots back up in an endless cycle.

This issue sounds similar to bug 8372, but as nano appears to power down normally when not plugged in, I believe this is a separate issue.
This task depends upon

Closed by  Torne Wuff (torne)
Wednesday, 10 February 2010, 13:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  This has been fixed in r24581 - the correct GPIOs were already checked but CONFIG_CHARGING had not been enabled.
Comment by Boris Gjenero (dreamlayers) - Wednesday, 09 September 2009, 19:57 GMT
Your JBL on stage powers (or charges) the iPod, right? This prevents the iPod from shutting down. The original firmware may appear to shut down, but it actually just goes into sleep mode.

The bug I see is that Rockbox should know that the iPod can't shut down, and it should not allow you to attempt to shut it down. In firmware/export/config-ipodnano.h, it seems CONFIG_CHARGING should be set to CHARGING_MONITOR. All of the bits are properly checked in power-ipod.c and there is a Nano-specific percent_to_volt_charge table in powermgmt-ipod-pcf.c.

Here is a patch. I am unable to test it because I don't have a Nano. System -> Rockbox Info should show "Charging" instead of the runtime when the battery is charging. Further information is available via System -> Debug (Keep Out) -> View battery (scroll to different screens via the wheel). The patch should also enable a separate backlight timeout when plugged in and the car adapter mode option.

Note that all of this does not in any way affect charging functionality. It just affects what Rockbox knows about the current state and how Rockbox uses that knowledge. I'm pretty sure the Nano has hardware controlled charging, but I'm leaving the related FIXME comment nevertheless.

Loading...