Power devices from session to system

Richard Hughes hughsient at gmail.com
Fri Dec 19 10:19:08 PST 2008


On Fri, 2008-12-19 at 17:32 +0000, Bastien Nocera wrote:
> > I'm not sure we want to let sessions inject data into DeviceKit-power;
> > seems very complicated for handling the rather edge cases like this.
> > 
> > Why can't gnome-power-manager (or whatever component that is drawing the
> > UI) simply provide a very simple D-Bus interface that things like
> > gnome-phone-manager can hook into to post data?

Then we have to add in a layer of data, and we start putting logic in
the session, not the system. This is what I wanted to avoid doing.

> > (FWIW, I'd like to use this kind of interface too for my gphoto2 GVfs
> > backend; it's possible to read how much juice on these devices)

Right. This is useful for all users tho right?

> I agree with David there, as there are a couple more places where we
> could be posting battery information.

Sure.

> Though there is a case (in the input plugin for bluetoothd, in my case)
> where posting information from a system bus would be useful, at the
> DK-power level.

Yes, this is what I'm thinking. If we allowing people to
fast-user-switch then we should probably be exposing this lower down.

Richard.



More information about the devkit-devel mailing list