Rockbox General > Rockbox General Discussion

Improved iPod battery life

(1/3) > >>

riksweeney:
Hi,

I was just wondering what was done to improve the battery life on the iPods. I've had a quick look at a diff on the system-pp5002.c file and the comment on one of the "offending" lines is

/* don't clock unused PP5002 hardware components */

I was just wondering what this means. I know this is geeky but this is the kind of thing that interests me (the same way that I find what people do when coding MAME more interesting than the games themselves).

LambdaCalculus:
Don't worry about it being geeky. We're all geeks here! :)

Which number line is that in the code? I'm going to take a look at it in a few minutes.

GodEater:

--- Quote from: riksweeney on August 29, 2007, 12:11:02 PM ---I was just wondering what was done to improve the battery life on the iPods.

--- End quote ---

Bear in mind, this isn't ALL ipods, only 1st, 2nd and 3rd Gen iPods.

It doesn't include either generation Mini, the Nano, or the 4th, 5th and 5.5th Gen iPods.

LambdaCalculus:
I know it won't help my iPod out, but it's always good to learn something every day. :)

These are the lines riksweeney's inquiring mind wants to know about:

--- Quote ---#if defined(IPOD_1G2G) | | defined(IPOD_3G)
 Â         DEV_EN = 0x0b9f; /* don't clock unused PP5002 hardware components *?
 Â         outl(0x0035, 0xcf005004); /* DEV_EN2 ? *?
#endif

--- End quote ---

Could it be the pointers given that are the cause?

riksweeney:

--- Quote ---#if defined(IPOD_1G2G) | | defined(IPOD_3G)
          DEV_EN = 0x0b9f; /* don't clock unused PP5002 hardware components *?
          outl(0x0035, 0xcf005004); /* DEV_EN2 ? *?
#endif

--- End quote ---

I guess that it's the outl() function that is improving the battery life. I'll have a look in the function to see if I can understand what it does myself!

Navigation

[0] Message Index

[#] Next page

Go to full version