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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  External battery, CPU boost, and rockbox
« previous next »
  • Print
Pages: [1]

Author Topic: External battery, CPU boost, and rockbox  (Read 1255 times)

Offline lemonman

  • Member
  • *
  • Posts: 2
External battery, CPU boost, and rockbox
« on: March 13, 2008, 06:29:38 PM »
Hello,

I recently picked up an external battery (iRecharge by cellboost) for my ipod video 5G. It works well with rockbox (18hrs playtime), with one small caveat.

Rockbox seems to think that it's connected to AC or some other unlimited form of power, and so it boosts the CPU up to 80mhz. Checking the "OS Stacks" debug menu reveals that the usb thread is what's boosted (it has a '+' next to it).

Now, normally this would be desirable behavior. However, since I'm still actually running on battery, I'd like rockbox to manage the cpu (and all other peripherals) as if I were running off the internal battery. Is there already an option to do this? If not, can anybody point me to the right spot of the source to implement it myself? I managed to find the cpu boosting code, but it seems unreferenced in firmware/usb.c, which is where the usb thread seems to be created.

Interestingly, in other ways rockbox is able to distinguish between USB/Firewire/wall adapter power and the external battery -- on USB power, the battery displays as charging or with the "external power" icon next to the battery meter. On the external battery, the icons and battery meter are the same as with the internal battery alone. Ideally, the cpu boost would be controlled by the same thing these GUI elements are.

Thanks for any help you can offer.
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: External battery, CPU boost, and rockbox
« Reply #1 on: March 13, 2008, 07:08:26 PM »
This should be fixed in the lastest build (you need r16656 or later)
Logged

Offline lemonman

  • Member
  • *
  • Posts: 2
Re: External battery, CPU boost, and rockbox
« Reply #2 on: March 13, 2008, 10:07:34 PM »
Thanks! The latest build works fine.

Now to run another battery test...

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  External battery, CPU boost, and rockbox
 

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

Page created in 0.06 seconds with 16 queries.