GNOME Bugzilla – Bug 513310
Ship pm-utils hook in NetworkManager
Last modified: 2013-02-04 21:40:12 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:
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.
Yep, probably right.
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).
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
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.
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.
(In reply to comment #6) > I'm going to close this. Thanks!