![]() |
2010-08-29
, 12:38
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#2
|
![]() |
2010-08-29
, 12:55
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#3
|
![]() |
2010-08-29
, 14:05
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#4
|
The Following User Says Thank You to ossipena For This Useful Post: | ||
![]() |
2010-08-29
, 15:46
|
Posts: 87 |
Thanked: 112 times |
Joined on Feb 2010
|
#6
|
The current draw (as you said, averaged over a 5.12s time span) can be read from the BQ27200 chip. You can either use the bq27x00_battery driver (in kernel-power) and read the value from /sys/class/power_supply/bq27200-0/current_now, or talk directly to the BQ27200 over I2C, using i2c-tools. Read the relevant register with the command
i2cget -y 2 0x55 20 w
In both methods, note that the units are unknown, so you can tell when the N900 uses a lot of power or a little power, and you can tell the ratio between a lot and a little, but you can't know exactly how much mAh are drawn.
![]() |
2010-08-29
, 15:54
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#7
|
20 is the 0.02 ohm resistor, i think nokia just follow this recommandation when building n900
![]() |
2010-08-29
, 17:27
|
Posts: 87 |
Thanked: 112 times |
Joined on Feb 2010
|
#8
|
The Following User Says Thank You to BabelO For This Useful Post: | ||
![]() |
2010-08-29
, 18:24
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#9
|
![]() |
2010-08-30
, 12:12
|
Posts: 1,258 |
Thanked: 672 times |
Joined on Mar 2009
|
#10
|
Does anyone know of a version of a BatteryGraph style tool (or can entice the Author of BatteryGraph to add as a feature) that can show the moment-to-moment actual power consumption?
In my old N95 I had the Nokia Energy Profiler, which is similar to "BatteryGraph", except that it was much faster updating (every second), and could give a completely accurate draw of current in milliamps (or recompute into milliwatts based on voltage, if that floats your boat more)
That way, finding power draws on the device was *trivial*. You just turned something off, flipped over to the energy profiler, saw "oh, that saved me 64 milliamps, cool" etc.
It was very accurate and you could learn all sorts of interesting stuff from it (like the power draw profile of a 3G connection turning on, checking email, and closing down for example).
The N900 doesn't give me this, not even on the low level.
While the battery monitoring tools seems to - under the hood - actually measure current, it actually gives this to us, the user, as a cumulative power consumption of a diminishing mAh value (milliamp-hours).
This is nigh useless as an aid to judge power _draw_, because you end up having to judge slopes of curves in BatteryGraph.
If nobody can find the actual current count (which is possible the system hides from us, if we are on lucky), then what I would like BatteryGraph to do (or a similar tool) would be to measure the value the OS *does* give us... but display it as a delta, i.e. how much did the "mAh" count change during the last X seconds? (Someone told me this value updates only every 5.12 seconds?)
This could be drawn is a separate curve in BatteryGraph, that could then much more easily be used to judge actual momentary draw.
Someone? Opinions? Thoughts?
/Z
Last edited by MasterZap; 2010-08-29 at 11:30. Reason: Typos