Re: [Regression] Commit "power_supply: Use attribute groups"breaks KDE battery monitor on openSUSE 11.3 M6

From: Daniel Mack
Date: Mon May 24 2010 - 20:48:50 EST


On Tue, May 25, 2010 at 02:20:45AM +0200, Rafael J. Wysocki wrote:
> On Tuesday 25 May 2010, Rafael J. Wysocki wrote:
> > On Tuesday 25 May 2010, Daniel Mack wrote:
> > > On Tue, May 25, 2010 at 12:28:24AM +0200, Rafael J. Wysocki wrote:
> > > > Your commit 5f487cd34f4337f9bc27ca19da72a39d1b0a0ab4 (power_supply: Use
> > > > attribute groups) unfortunately breaks KDE 4.4's battery monitor from openSUSE
> > > > 11.3 Milestone 6 on my Acer Ferrari One. Apparently, the battery monitor can't
> > > > access the sysfs battery attributes with this commit applied.
> > >
> > > Can you still see the attributes in sysfs?
> >
> > Yes, I can.
>
> Ah, sorry. The 'type' property is not present (I didn't notice that before).

Ah. That I didn't see. Does the (untested) patch below help?

Daniel