Rate guessing code
Danny Kukawka
danny.kukawka at web.de
Wed Nov 9 09:59:27 PST 2005
On Saturday 05 November 2005 19:34, Danny Kukawka wrote:
> This is not the right way. The time with the methode for broken bios
> without current rate is over a timeintervall. The current rate from a
> correct working bios is in the most cases for the _actuall_ current rate,
> not over a time intervall. You can't say which one is 'more' correct.
>
> If the bios support current rate calculate with them and not with the other
> over a (unknown) time intervall averaged value.
I wrote a patch as compromise. I added a new parameter to
util_compute_time_remaining() to enable/disable guess the chargeRate. For
this I added a new property (battery.remaining_time.guess=true/false) to the
pmu and acpi code. Now it would be easy to enable guess chargeRate for broken
machines with a fdi-file.
Please review.
Cheers,
Danny
doc/spec/hal-spec.xml.in | 10 ++++++
hald/linux2/acpi.c | 3 +
hald/linux2/pmu.c | 3 +
hald/util.c | 57 +++++++++++++++++++++++++++++++------
hald/util.h | 3 +
5 files changed, 64 insertions(+), 12 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-rate_guessing_magic_v3.diff
Type: text/x-diff
Size: 7442 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051109/6ef0cabb/hal-fix-rate_guessing_magic_v3-0001.bin
More information about the hal
mailing list