[PATCH] fix battery keys if battery is full charged
Danny Kukawka
danny.kukawka at web.de
Wed Aug 10 15:30:27 PDT 2005
Hi,
this is a patch to fix battery keys, if battery is full charged. This prevent
to have keys in HAL, which are in /proc/acpi/battery/*/{info,state} already
'unknown' e.g. 'present rate'. The patch base on the other ACPI fixes
again ;-)
Remove some keys in battery_refresh_poll() befor read them from
/proc/acpi/battery/*/{info,state} to be sure that hal not provides a key if
the related value is unknown.
Please review. (If a complete patch with all changes is needed, let me know!)
Cheers,
Danny
acpi.c | 11 +++++++++++
1 files changed, 11 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-key_if_battery_isfull.diff
Type: text/x-diff
Size: 906 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050811/6d54f925/hal-fix-key_if_battery_isfull.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