After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 513310 - Ship pm-utils hook in NetworkManager
Ship pm-utils hook in NetworkManager
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Dan Williams
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-01-30 23:19 UTC by Dan Nicholson
Modified: 2013-02-04 21:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Nicholson 2008-01-30 23:19:38 UTC
Please describe the problem:
Currently, there is a hook in pm-utils that sleeps and wakes NM using dbus-send when suspending and resuming. It would be better if this hook shipped with NM since it's not required for pm-utils. The hook is here:

http://cgit.freedesktop.org/pm-utils/tree/pm/sleep.d/10NetworkManager

What do you think?

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Richard Hughes 2008-01-31 07:25:17 UTC
This is what I do in PackageKit (to check the cache validity on resume) so I think it's sane to push the pm-utils hook into NetworkManager. Worst case scenario, the hook is installed without pm-utils insalled, and no action happens on resume - which is the same as what we have now.
Comment 2 Dan Williams 2008-01-31 15:39:50 UTC
Yep, probably right.
Comment 3 Wouter Bolsterlee (uws) 2008-06-17 12:11:58 UTC
The url has changed. It is linked from http://cgit.freedesktop.org/pm-utils/tree/pm/sleep.d (perhaps the numbering changes again the future).
Comment 4 Dan Nicholson 2008-06-17 13:56:24 UTC
There is a minimal specification for the numbering of the hooks. Here's some info:

http://cgit.freedesktop.org/pm-utils/tree/pm/HOWTO.hooks
Comment 5 Dan Williams 2010-09-20 18:15:06 UTC
NM actually now listens to gnome-power-manager/UPower for suspend/resume events, so pm-utils hooks are no longer completely necessary for suspend/resume integration.  If the machine isn't running UPower/gpm, then they would still be necessary.
Comment 6 Dan Nicholson 2013-02-04 16:02:22 UTC
I'm going to close this. As Dan says, NM listens for suspend/resume natively in the typical case, so the pm-utils hooks aren't necessary most of the time. Also, on recent Linux systems, pm-utils is no longer actually responsible for doing the suspending. So, it makes sense to let the hook continue to live in the pm-utils repo in the event that people need it.
Comment 7 Pavel Simerda 2013-02-04 21:40:12 UTC
(In reply to comment #6)
> I'm going to close this.

Thanks!