[PATCH] hal sees two batteries

Danny Kukawka danny.kukawka at web.de
Fri Jan 18 22:47:18 PST 2008


On Mittwoch, 16. Januar 2008, Kyle McMartin wrote:
> From: Kyle McMartin <kmcmartin at redhat.com>
>
> I've turned on both ACPI_PROCFS_POWER and ACPI_SYSFS_POWER in Fedora
> rawhide. With both options set, hal sees two battery devices, when it
> should really only check the second if the first doesn't exist.
>
> Fix this up by only checking procfs if we don't find anything in
> sysfs.
>
> Patch is against git HEAD.

Without testing: could work to prevent the second battery, but would IMO solve 
not all problems with the sysfs acpi battery objects. Unfortunately I can not 
take a look again at the remaining problems before next week.

Danny



More information about the hal mailing list