You are not logged in.
Hello.
Does anyone know if it is possible to disconnect from connected networks on Suspend/Hibernate (NetworkManager). It seems as if arch use to have /usr/lib/pm-utils/sleep.d/55NetworkManager along with many other distros. However, as far as I can tell this file no longer exists. I'm going to guess there is a dbus command I can issue, but I'm not aware of it.
pyther
Last edited by pyther (2011-04-22 18:37:39)
Offline
/etc/pm/sleep.d/50networkmanager
#!/bin/sh
#
# 50networkmanager: disable network manager
case "$1" in
hibernate|suspend)
nmcli nm sleep true
;;
thaw|resume)
nmcli nm sleep false
;;
*) exit $NA
;;
esac
This seems to do the trick
Offline
nm uses upower events to know what to do:
Give what you have. To someone, it may be better than you dare to think.
Offline
Does pm-utils send a signal to upower letting it know that the machine is going to suspend? When I suspend my machine using sudo pm-suspend, the connection to the wireless never gets killed and when I resume NM still thinks I'm connected to that the wireless network (even if I am in a completely different location). This doesn't happen with the above script
Offline