[ltp] Re: [PATCH v2] Re: Battery class driver.
Henrique de Moraes Holschuh
linux-thinkpad@linux-thinkpad.org
Thu, 2 Nov 2006 10:54:17 -0300
On Thu, 02 Nov 2006, Jean Delvare wrote:
> On 10/31/2006, man with no name wrote:
> > In the case at hand we have mWh and mAh, which measure different
> > physical quantities. You can't convert between them unless you have
> > intimate knowledge of the battery's chemistry and condition, which we
> > don't.
>
> You just need to know the voltage of the battery, what else?
The error goes way up when you do such calculations. Not that most battery
hardware reports SBS Error margins right, but still...
So doing conversions is not a good idea unless it is from Ah to Coulombs or
something else like that which is an exact conversion.
In ThinkPads, you just need to compare what the various "let's calculate it"
applets say, and the output of tp_smapi (gets remanining time data directly
from the hardware) to see which one is more accurate :-) And the difference
is often quite expressive.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh