Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Wondering about iPod Battery
« previous next »
  • Print
Pages: [1]

Author Topic: Wondering about iPod Battery  (Read 2083 times)

Offline DanManners

  • Artist
  • Member
  • *
  • Posts: 161
  • Eating Babies Since 1991!
    • Myspace (Add Me!!)
Wondering about iPod Battery
« on: March 19, 2007, 01:34:04 PM »
A few questions. One, has anyone actually been working on optimizing the iPod's battery life? Second, if no one has does anyone know what would be involved in scripting the battery optimizations? I've made a lot of themes and such for the iPod 5g and a few for the Nano, and I'm going to have a lot of time this summer for scripting and such. Anyway, just throwing the idea out that I'd be willing to learn how to script if I could help rockbox in that sense. I think that if it hasn't been implicated into version 3 or the Google summer program, I'd be a candidate for scripting.

Anyways, I'm done with being redundant.

-Dan
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Wondering about iPod Battery
« Reply #1 on: March 19, 2007, 01:54:02 PM »
"Optimizing the iPods battery life" requires coding, not scripting. ;)

But really, one common assumption (that may or may not be valid) is that the problem is similar to that suffered by the H300 and X5: Improperly shut down hardware. Basically, the USB hardware, or some other chip, may not be being shut down properly, and is still drawing power when it shouldn't be.

But whether or not that's the big problem, any optimizations will help battery life to an extent. This basically boils down to reading the code, and finding faster ways to get the same thing done. The best places to look for this sort of thing is things that happen often (screen updates, drawing text, etc) since that costs time everywhere.

You'd basically need to learn C, and familiarize yourself with the Rockbox source. Optimization isn't necessarily something you can just step up and do without some time spent familiarizing yourself with things, because you generally have to understand what's being done before you can come up with a way to do it faster (though a fresh view on some things can certainly help).

But as I said, the biggest problem is, possibly, simply the fact that the hardware is undocumented.
Logged

Offline gummbah

  • Member
  • *
  • Posts: 99
Re: Wondering about iPod Battery
« Reply #2 on: March 19, 2007, 05:25:35 PM »
The issue of battery life seems to come back quit often as well as the answers by Llorean (good work and lots of patience there  ;D).
 
I was wondering if in some way we could monitor and visualise progress on battery life by, for example, testing once a month battery life using exact same settings, songs and ipod. If we could see that there is significant improvement during a certain month, we might be able to track it back to certain changes in the code, which could then be used to further improve code for the purpose of battery life improvement.

Just a suggestion.

Cheers.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Wondering about iPod Battery
« Reply #3 on: March 19, 2007, 05:37:54 PM »
Considering the rate at which Lithium-based batteries decay, unless you're storing that iPod in a freezer and not using it, testing monthly on the same iPod is not likely to be a good means of testing unless every time you test it, you compare it to the original firmware with a test at the same time, and somehow manage to get perfect readings on the original firmware's life.
Logged

Offline gummbah

  • Member
  • *
  • Posts: 99
Re: Wondering about iPod Battery
« Reply #4 on: March 20, 2007, 02:38:22 AM »
I didnt know the battery life decays that fast.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Wondering about iPod Battery
« Reply #5 on: March 20, 2007, 12:35:59 PM »
A lithium-ion battery that's stored full, at room temperature, can lose up to 20% of its capacity per year. That's 1.7% per month. Even dropping that down to 1% per month (assuming cooler temperatures, and storing at an better level than full) you're talking about losing 4 minutes of battery time in Rockbox per month, just from self discharge. Which means if Rockbox were to be gaining 4 minutes per month from optimizations, you wouldn't be able to see it.

And of course, depending on how much heat you exposed your iPod too, how many charge/discharge cycles over the month, etc, the numbers could vary.

It just makes it very hard to compare your own iPod over time with itself (and it's impossible to compare with another iPod). You have to compare your own iPod to its retail software, and of course they don't provide a good benchmarking tool. :) This is why measuring small battery life changes is ridiculously difficult.

In theory, you could run a bench with a month old version, then immediately run the same bench with the current version, so that you're comparing the older one to the newer one on the same day, and use that method to sort of chain the benches along, in pairs. That would give you somewhat useful results from month to month.
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: Wondering about iPod Battery
« Reply #6 on: March 20, 2007, 04:50:33 PM »
Measuring battery-runtime, regardless of repeatability of conditions is really an indirect way to measure what you really want to know.
You want to know how many amps (or fractions thereof  ::) ) the player it drawing under a variety of conditions, and compare those numbers to the stock firmware.
Note that according to the tests in this thread:  http://forums.rockbox.org/index.php?topic=8867.msg68613#msg68613
Rockbox at idle is consuming 165% of Apple Firmware at idle.
All the code optimizations in the world won't solve (what appears to be) a large chunk of the problem.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Wondering about iPod Battery
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 15 queries.