After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622362 - NetworkManager no longer connects after machine crashed during suspend
NetworkManager no longer connects after machine crashed during suspend
Status: RESOLVED DUPLICATE of bug 346615
Product: NetworkManager
Classification: Platform
Component: general
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2010-06-22 08:46 UTC by Bin Li
Modified: 2016-03-11 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bin Li 2010-06-22 08:46:39 UTC
If a machine crashes during a suspend to disk/ram, after next boot
NetworkManager 0.8 will no longer connect to any network (wired or wireless),
the applet will always show "networking system disabled".

During resume, it wakes up NM by calling

        dbus_send --system                        \
                --dest=org.freedesktop.NetworkManager \
                --print-reply --reply-timeout=200      \
                /org/freedesktop/NetworkManager       \
                org.freedesktop.NetworkManager.wake

If the machine crashes during suspend, the .wake is not called and NM remains
suspended forever.

I tracked it down to the fact, that NM apparently remembers the setting in /var/lib/NetworkManager/NetworkManager.state.

No matter if it those pm-utils calls are stupid or not, IMHO NetworkManager
should not remember this setting via a restart or even a reboot of the machine.

Send the .wake or "cnetworkmanager -o true" make it works. But it is only a workaround and not the solution of the problem.
Comment 1 Bin Li 2010-06-22 08:47:44 UTC
Dan,

 Is it a good way to resolve this issue? I'd like to patch it, but not have a good idea for it.
Comment 2 Dan Williams 2010-06-26 17:49:58 UTC
It should already be fixed it on 0.8.1 and master.  It's because since the 0.6.x days we've used sleep/wake as the "Enable networking" switch.  I did some work about a month ago to split that up and add a real enable/disable networking toggle.

http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=NM_0_8_1&id=ee3ece9dac985034c5c1f81a6769b40fd7856579

and

http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=NM_0_8_1&id=30374453b4b12953ed5a9b7bec4b81fe263ae9db

should be the 0.8.1 commits for it.

*** This bug has been marked as a duplicate of bug 346615 ***