[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lenny: get battery icon in icewm?



On Thu, 24 Jul 2008 22:39:26 +0100
Mikhail Ramendik <mr@ramendik.ru> wrote:

> On Thursday 24 July 2008 14:08, Anatoly A. Kazantsev wrote:
> 
> > > > Battery status has gone than 2.6.25 linux kernel came to lenny.
> > > > I think because of some old deprecated interface for acpi which exports
> > > > info throw /proc or /sys (I forget which one). Maybe that's not true
> > > > :-)
> > >
> > > Probably so. The new one is HAL.
> >
> > I'm talking about kernel interface, not about _yet_another_ abstraction
> > layer.
> 
> Found this information:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487824
> 
> "closing.
> 2.6.24 already had the /sys/class/power_supply support,
> but we let some time for userspace to pick up."
> 
> The acpi utility also outputs correct information. I'll try to find 
> documentation and do a patch for icewm, or failing that file a bug against 
> the package.

Ye, thats's right way :-) Now battery status you can pickup from /sys/bus/acpi/drivers/battery/<your_battery_id_and_number>/power_supply:<some_id>/status

In my case this is /sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply:C1BC/status

P.S.: what about writing about it to icewm developers list?

-- 
Anatoly A. Kazantsev

Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

Attachment: pgpnZeGuHNX8d.pgp
Description: PGP signature


Reply to: