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
|-+  Support and General Use
| |-+  Hardware
| | |-+  Gigabeat Battery Setting
« previous next »
  • Print
Pages: [1]

Author Topic: Gigabeat Battery Setting  (Read 1886 times)

Offline coacharnold

  • Member
  • *
  • Posts: 54
Gigabeat Battery Setting
« on: June 20, 2013, 08:48:54 PM »
Hi Folks .....

just to say .... I have looked all over for this solution ....I know it's here somewhere, if someone could please help me ...

I did the battery upgrade ..... everything working fine ..... I can't seem to change the battery capacity from 830 to 1400 .....

Can any one explain what I'm missing here....

T

Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Gigabeat Battery Setting
« Reply #1 on: June 21, 2013, 09:46:25 AM »
You need to recompile with that setting changed.

However that setting is only used for the runtime remaining feature. Nothing else uses it.
Logged

Offline 404_user_not_found

  • Member
  • *
  • Posts: 52
Re: Gigabeat Battery Setting
« Reply #2 on: June 21, 2013, 10:52:33 AM »
Quote from: coacharnold on June 20, 2013, 08:48:54 PM
Hi Folks .....

just to say .... I have looked all over for this solution ....I know it's here somewhere, if someone could please help me ...

I did the battery upgrade ..... everything working fine ..... I can't seem to change the battery capacity from 830 to 1400 .....

Can any one explain what I'm missing here....

T
As said above, it's just hardcoded to specific value in the source codes.
I did a quick search for string "battery" in the source codes of rockbox 3.13
/rockbox-3.13/firmware/export/config/gigabeatfx.h
/rockbox-3.13/firmware/export/config/gigabeats.h

Code: [Select]
gigabeats.h
#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
#define BATTERY_CAPACITY_MIN     700 /* min. capacity selectable */
#define BATTERY_CAPACITY_MAX    1200 /* max. capacity selectable */
#define BATTERY_CAPACITY_INC      25 /* capacity increment */
#define BATTERY_TYPES_COUNT        1 /* only one type */

Code: [Select]
gigabeatfx.h
#define BATTERY_CAPACITY_DEFAULT 830 /* default battery capacity */
#define BATTERY_CAPACITY_MIN 830        /* min. capacity selectable */
#define BATTERY_CAPACITY_MAX 830        /* max. capacity selectable */
#define BATTERY_CAPACITY_INC 25         /* capacity increment */
#define BATTERY_TYPES_COUNT  1          /* only one type */
It's exactly what you need to change depends what a gigabeat model you are using - Toshiba Gigabeat S (gigabeats.h) or Toshiba Gigabeat F/X (gigabeatfx.h).
« Last Edit: June 21, 2013, 10:58:04 AM by 404_user_not_found »
Logged

Offline coacharnold

  • Member
  • *
  • Posts: 54
Re: Gigabeat Battery Setting
« Reply #3 on: June 22, 2013, 10:30:25 AM »
THANKS A MILLION ..... you guys forced me to figure out GIT and compile ..... Battery works perfect .....

what other things can I mod in the code that might be useful messing with my own build??

T
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Gigabeat Battery Setting
« Reply #4 on: June 23, 2013, 03:15:43 AM »
Its just a subtle wording issue, but, your post implies the changes you made were useful :)

Odds are, you will never (or, very rarely) see the "benefit" this made.

It is only used in the runtime remaining calculation, which probably isn't going to be particularly accurate anyway even if it does have the right values. This has no effect on the battery percentage displayed to the user.



[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline coacharnold

  • Member
  • *
  • Posts: 54
Re: Gigabeat Battery Setting
« Reply #5 on: June 23, 2013, 10:46:54 AM »
Really? .... ok ....  where is the battery percentage number coming from???  as in how do I know where the battery is?  when I first put in the battery it said 15 hours ..... after doing the changes to the .h file and compiling it now says 30 hours .....

whats happening behind the scenes that I'm missing?

Thanks for the help

T
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Gigabeat Battery Setting
« Reply #6 on: June 23, 2013, 07:07:27 PM »
Percentage is calculated from the battery voltage.

Time remaining is calculated from the battery capacity you just edited.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Gigabeat Battery Setting
 

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

Page created in 0.049 seconds with 15 queries.