[PATCH] fix battery keys if battery is full charged
Danny Kukawka
danny.kukawka at web.de
Thu Aug 11 07:47:49 PDT 2005
On Thursday 11 August 2005 15:55, David Zeuthen wrote:
> But the point here is that the values are indeed known and they already
> assume sane values. Setting values to -1 sounds sketchy to me.
>
> To go into depth: the battery is fully charged and we're running on
> mains means no electricity are flowing from the battery to the computer.
> Hence, the "current" is 0. Same with rate. For remaining time you can
> make a similar argument, there is simply zero seconds until the battery
> is charged, simple because the battery is already charged =).
Here the new version of the patch. Now the unknow keys are set to 0. ;-)
Cheers,
Danny
acpi.c | 46 ++++++++++++++++++++++++++++------------------
1 files changed, 28 insertions(+), 18 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-key_if_battery_isfull_v3.diff
Type: text/x-diff
Size: 3068 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050811/5937c37a/hal-fix-key_if_battery_isfull_v3.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list