Support and General Use > Hardware

Gigabeat Battery Setting

(1/2) > >>

coacharnold:
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

saratoga:
You need to recompile with that setting changed.

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

404_user_not_found:

--- 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

--- End quote ---
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: ---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 */
--- End code ---


--- Code: ---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 */
--- End code ---
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).

coacharnold:
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

[Saint]:
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]

Navigation

[0] Message Index

[#] Next page

Go to full version