[PATCH] hal sees two batteries

Michael Biebl mbiebl at gmail.com
Thu Jan 24 23:01:09 PST 2008


2008/1/16, Kyle McMartin <kyle at freedesktop.org>:
> 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.
>

For my battery, the old /proc interface provides a lot more
information. I don't know, if that's related to my hardware or a
general issue of the new sysfs interface. (See the attached files).
As battery.charge_level.design is missing for sysfs, g-p-m displays a
wrong battery capacity (1.3 Wh, but it's 19,1 Wh).
battery.charge_level.current seems to be incorrect too, for sysfs.
Is this a bug in the kernel regarding the new sysfs interface?
Atm at least I'd prefer the values from /proc over /sys.

Cheers,
Michael





-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: battery_proc.txt
Url: http://lists.freedesktop.org/archives/hal/attachments/20080125/9b2218d1/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: battery_sysfs.txt
Url: http://lists.freedesktop.org/archives/hal/attachments/20080125/9b2218d1/attachment-0001.txt 


More information about the hal mailing list