Suspend and NetworkManager
Richard Hughes
hughsient at gmail.com
Fri Jan 13 08:49:50 PST 2006
On Tue, 2006-01-10 at 11:25 -0500, David Zeuthen wrote:
> On Tue, 2006-01-10 at 16:22 +0000, Richard Hughes wrote:
> > Well, I'm thinking some of this at least should be handled with
> > gnome-session, or maybe gnome-power-manager. The implementation
> > difficulty with NetworkManager is that it's on the system bus, not
> > per-session.
>
> It indeed runs in your session as nm-applet (which also provides the
> icon in the notification area) - the thinking is simply to enhance
> nm-applet such that on startup it does
>
> gpm_session_interface.Register (about_to_suspend_handler);
>
> with
>
> void about_to_suspend_handler (...)
> {
> nm_system_interface.shutdown(); // this blocks until NM has
> // shutdown all networking - it
> // might take several seconds..
>
> // Now well g-p-m that it's OK to suspend
> gpm_session_interface.okToSuspend();
> }
>
> or something. Don't you think this is much cleaner?
Yes, but it also relies on gnome-session using g-p-m (rather than HAL)
to suspend, or am I mistaken?
Jaap's opened a bug here :
http://bugzilla.gnome.org/show_bug.cgi?id=326644
if you want to comment.
Thanks, Richard.
More information about the hal
mailing list