[PATCH] fix battery keys if battery is full charged

David Zeuthen david at fubar.dk
Wed Aug 10 16:39:51 PDT 2005


On Thu, 2005-08-11 at 00:30 +0200, Danny Kukawka wrote:
> 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.
> 

I think we should just set these to 0 instead of removing them.
Reasoning is that the current is really zero (no energy is flowing),
plus it'll make client code much easier, don't you think?

Thanks for all the patches, btw; I really appreciate it.

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list