kernel 2.6.24 - Doubled number of batteries with ACPI_PROCFS

Andrey Borzenkov arvidjaar at mail.ru
Fri Dec 7 22:40:41 PST 2007


On Thursday 06 December 2007, Danny Kukawka wrote:
> On Samstag, 27. Oktober 2007, Danny Kukawka wrote:
> > On Samstag, 27. Oktober 2007, Andrey Borzenkov wrote:
> > > In kernel 2.6.24-rc1 if I turn on ACPI_PROCFS number of batteries in HAL
> > > is doubled; it gets them once via sysfs and once via /proc. Because there
> > > may be legal reasons to enable ACPI_PROCFS for compatibility and because
> > > there is no way to disable sysfs entries it would be nice if HAL could
> > > detect those duplicates. What I am not exactly sure, how. After all we
> > > may have non-ACPI batteries in sysfs and ACPI ones in procfs ...
> > >
> > > -andrey
> >
> > Okay, I take a look at this. Could you send me your lshal output directly?
> 
> Update: found the problems with 2.6.24 and wrote a first patch to fix it, but 
> this need much more changes in the acpi addon and on several other places, 
> since the sysfs battery/AC code don't work as expected atm. I send a patch as 
> soon as it work.


there is kernel bug about it: http://bugzilla.kernel.org/show_bug.cgi?id=9494

would be nice if you explained what does not work as expected in sysfs so it 
could be fixed in 2.6.24.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20071208/8bf4a39c/attachment.pgp 


More information about the hal mailing list