[Bug 1252121] Re: missing PrepareForSleep signal after resuming, causing networking to stay disabled
Paulo Marcel Coelho Aragão
1252121 at bugs.launchpad.net
Thu Jan 22 21:03:26 UTC 2015
It is still happening in Xubuntu 14.10. After coming back from suspend
(closed the laptop lid), NetworkManager is asleep:
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running asleep enabled enabled enabled disabled
This workaround works for me: created script /etc/pm/sleep.d/49network-
manager:
#!/bin/sh
#
# work around a NetworkManager bug, waking it up after resume (sometimes it
# stays sleeping after resume)
#
case "$1" in
suspend|hibernate)
;;
resume|thaw)
nmcli nm status
nmcli dev status
state=`nmcli -t -f STATE nm status`
if [ "$state" = "asleep" ]; then
echo "waking up NetworkManager"
nmcli nm sleep false
nmcli nm status
fi
;;
esac
exit 0
I had removed it to test whether the problem had gone away, but put it
back when confirmed it hadn't been solved yet.
--
You received this bug notification because you are a member of Network-
manager, which is subscribed to NetworkManager.
https://bugs.launchpad.net/bugs/1252121
Title:
missing PrepareForSleep signal after resuming, causing networking to
stay disabled
To manage notifications about this bug go to:
https://bugs.launchpad.net/network-manager/+bug/1252121/+subscriptions
More information about the Ubuntu-reviews
mailing list