Re: [gpm] Re: ideas for a new UPS infrastructure



On Thu, 2006-03-09 at 20:52 -0500, David Zeuthen wrote:
> How about this instead
> 
>  1. gnome-power-manager to include functionality for discovering
>     networked UPS devices. I don't really know how this works but
>     I expect some auth is necessary. Hence, you really want to
>     run this in the desktop session as asking users to edit
>     configuration files is just wrong. If the UPS is discoverable
>     using Zeroconf/Bonjour etc. maybe g-p-m should use Avahi
>     to discover them and prompt the user for auth when it finds
>     an UPS.
> 
>  2. Maybe g-p-m should provide UI to share an UPS on the network
>     so other g-p-m instances can monitor it. For this we could
>     indeed use Avahi to publish the information. Then stuff would
>     just work :-) ... Again, I don't know much about how this works, 
>     I'm thinking out loud :-)

Thats a nice idea. I agree this should "Just Work" with little
configuration.

>  3. upsmon to use an interface in g-p-m to get the information
>     about the UPS and provides interface for graphical old
>     fashioned NUT clients. This means g-p-m will have to export
>     some of the info HAL already exports but I think this is
>     cleaner as I don't really want HAL to know about networked
>     UPS's.

Yes, Agreed.

> > > Power manager must implement advanced UPS logic from upsmon (how many
> > > UPSes must be running, signalling networked computers to shutdown,...)
> > 
> > Yes, g-p-m needs to do more for UPS. I'm considering a "Running on UPS"
> > tab in the preferences so we can assign things like emailing the admin,
> > and running arbitrary scripts, having options such as:
> > 
> > [x] Beep when on UPS.
> > 
> > But I guess other people might have better ideas.
> 
> Richard, that "Running on UPS" tab sounds like a cool idea!

I'll get onto this today. Can you bugzilla it pls, and we'll continue
discussion there.

> So.. I guess I'm saying that at this point I'm very interested in the
> driver code from NUT but not so much the other bits. I realize this may
> come across as a bit offensive but I hope you guys are interested in
> cooperating nonetheless. If we need any HAL changes to make this happen
> (for e.g. serial ports) I'm more than happy to do my bit.

I think the serial prober bit is the most required bits.

> We could make UPS support rock with gnome-power-manager [1].

s/could/should

Richard.




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