FS#17349 - [networkmanager] If suspend/resume fails networkmanager 0.7.2 disables itself.
Attached to Project:
Arch Linux
Opened by torkjel hongve (torkjel) - Wednesday, 02 December 2009, 10:04 GMT
Last edited by Ionut Biru (wonder) - Sunday, 03 January 2010, 20:22 GMT
Opened by torkjel hongve (torkjel) - Wednesday, 02 December 2009, 10:04 GMT
Last edited by Ionut Biru (wonder) - Sunday, 03 January 2010, 20:22 GMT
|
Details
I have a Thinkpad x301 where suspend/resume doesn't really
work. Closing the lid simply results in some kind of unclean
shutdown. This in itself isn't a very big deal for me, so I haven't looked mush into it. The funny thing is that if I suspend by accident and reboot, the network manager applet will simply report "Networking disabled" and show no other options. I found that /var/lib/NetworkManager/NetworkManager.state contains the following: NetworkingEnabled=false Changing this back to true and restarting network manager fixes the problem. The previous version of network manager did not show this behavior. Package versions: networkmanager 0.7.2-1 network-manager-applet 0.7.2-1 |
This task depends upon
Closed by Ionut Biru (wonder)
Sunday, 03 January 2010, 20:22 GMT
Reason for closing: Not a bug
Additional comments about closing: user error
Sunday, 03 January 2010, 20:22 GMT
Reason for closing: Not a bug
Additional comments about closing: user error
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=NETWORKMANAGER_0_7&id=4d3b67a949d49eacc9e28ccdf6330c80938df668
Basically it means that if you disabled networking, it will stay disabled. This is something you would want usually, as you don't want to disable networking or interfaces everytime.
When you suspend your system, pm-utils executes the 55NetworkManager hook that suspends networkmanager and disables all networking. This is needed to make sure networkmanager rescans for wireless networks on resume. Because your system did not resume from standby correctly, the hook that enables networking support is not executed.
Instead of fixing this side-effect, I think it's better to fix suspend/resume on your laptop, as that can also cause serious loss of work if you suspend by accident.
Feel free to blow me off with "rtfc" (read the fine code) or something :) I'm not too bothered anymore as I know how to fix it.