Quote:
Originally Posted by akseli0x61
akseli@arch> acpi
Battery 0: Discharging, 58%, 01:59:15 remaining
akseli@arch> acpi
Battery 0: Discharging, 58%, 03:03:50 remaining
akseli@arch>
These commands have about one second time between them. I would expect a lot smaller variation between the estimated times. Does anybody know what could cause this? Or is it just normal?
|
The status reports being one second apart actually tells you nothing about the sample period, and we also don't know anything about the algorithm used to calculate remaining time or what was happening on the system at the time... so I would not put much confidence in either of those samples.
But taking a step back from the system itself, the general method of calculating time remaining would be something like this...
Code:
Tr := (Pr/Dr)Fk
Where
Tr is time remaining
Pr is power remaining in the battery
Dr is discharge rate
Fk is a proportionality constant representing a fully charged state
Determining Pr, how much power remains in the battery is itself difficult to do. Usually this is inferred from measuring the instantaneous battery voltage, but that relationship will vary with age of battery, temperature, sum of previous discharge history, etc... every downstream use of the resulting number is similarly blurred.
But, back to your example, lets assume the system takes a battery voltage reading which it interprets as 58% charge remaining. It also samples the instantaneous discharge rate and arrives at the Tr = 2hrs.
A short time later, not necessarily the one second between your commands, but no more than a few seconds, it again finds 58% remaining, but maybe the disk has become quiescent so that the instantaneous discharge rate, Dr is much lower for this sample. The resulting Tr is now calculated at 3 hrs.
So the point is that time remaining as reported for a given sample depends on many things, but primarily the instantaneous dishcarge rate all else being equal. The discharge rate depends on what the system is doing at that instant and can vary significantly between samples.
Moral of story: Use the indication of time remaining as a relative moving average - not something to set you clock by!
Hope that helps.