HAL battery and ac_adapter
Richard Hughes
hughsient at gmail.com
Tue Jul 3 19:33:53 EDT 2007
On Wed, 2007-07-04 at 01:10 +0200, Marco Pesenti Gritti wrote:
> Richard Hughes wrote:
> > Guys,
> >
> > I've committed upstream to HAL the needed bits to support the
> > power_supply class. If you use a hal from git you'll find the 'battery'
> > and 'ac_adapter' devices present, which you'll also get PropertyChanged
> > events from when the hardware state changes.
> >
> > This means:
> >
> > * OHM should just do the right thing (and now does something useful)
> > * We can patch sugar to use libhal instead of poking at the hardware
> >
>
> Are there python bindings for libhal? Otherwise I guess it might be
> easier to just talk directly to dbus...
Sure, the latter is pretty easy to do in python.
Richard.
More information about the Devel
mailing list