[PATCH] hal sees two batteries
Holger Macht
hmacht at suse.de
Fri Jan 25 01:18:17 PST 2008
On Fri 25. Jan - 08:01:09, Michael Biebl wrote:
> 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.
AFAIK, this is by design. Kernel people will only transfer some parts from
/proc to /sysfs, those which make sense. But they signaled their
willingness to add parts which userspace might need. So if you see any
pieces which are missing from sysfs battery class, please speak up and
send a mail to linux-acpi list.
Regards,
Holger
More information about the hal
mailing list