Comment 8 for bug 516592

Revision history for this message
Jörg Steffens (joerg-steffens) wrote : Re: Network manager kills NFS link on going to sleep hanging Gnome etc.

I've experienced the same problem with openSUSE 12.1 and KDE or xfce. I've found a clumsy workaround, that might also help here:

When the system should be suspended, the NetworkManager gets notified by a dbus call. You can generate this call manually by

qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Sleep boolean:true

This results, that NetworkManager shuts down all its network interfaces.

To wake him up again, following call can be used:

qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Sleep boolean:false

At SUSE, this call is performed by /usr/lib/pm-utils/sleep.d/55NetworkManager
and can be overwritten by /etc/pm/sleep.d/55NetworkManager

Disabling this call, results into a working suspend mechanism for KDE and a NFS Home directory.
However, xfce additional calls org.freedesktop.NetworkManager.Sleep boolean:true directly.
However, modifying this file to always wake-up NetworkManager results into a working (but clumsy solution), because,

xfce calls NetworkManager sleep
NetworkManager shuts down all network interfaces
[...]
modified /etc/pm/sleep.d/55NetworkManager wakes up NetworkManager again
Network connections are reestablished again
[...]
system is going into suspend.

I don't have a Ubuntu at hand, but I expect, that this workaround can be adapted for Ubuntu and Gnome.