Bug 552862

Summary: networkmanager became disabled when suspending to disk and don't want to be enabled after resume
Product: [openSUSE] openSUSE 11.3 Reporter: Yaroslav Kurlaev <yar>
Component: KDE4 ApplicationsAssignee: E-mail List <kde-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: ctrippe, dr, forgotten_--EoyBps8f, forgotten_JoZGrGEMhM, forgotten_kHYb7eJGnH, forgotten_l5QCzUHucG, forgotten_xnWyJO8MVA, hans, jnelson-suse, mborgnia, stolz, td, tom.malfrere, user2304, wstephenson
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: NM status
KDE message
messages log
NM log

Description Yaroslav Kurlaev 2009-11-05 14:28:25 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-1.2 Firefox/3.5.3

When you suspend your computer to disk NetworkManger give message "NetworkManger is disabled", and if you was connected to wlan when you resume your session, it's still disabled. If you wasn't connected to wlan it's ok.

Reproducible: Always

Steps to Reproduce:
1. Connect to wlan via NetworkManager
2. Suspend to disk
3. Resume
4. Click right button on the NetworkManager tray icon
Actual Results:  
It writes "NetworkManager disabled"

Expected Results:  
It should work.
Comment 1 Forgotten User xnWyJO8MVA 2010-03-24 09:21:03 UTC
Created attachment 350225 [details]
NM status
Comment 2 Forgotten User xnWyJO8MVA 2010-03-24 09:22:28 UTC
Created attachment 350226 [details]
KDE message
Comment 3 Forgotten User xnWyJO8MVA 2010-03-24 09:23:09 UTC
Sometimes after boot NetworkManeger not work and gives a message "NetworkManger is disabled". Installed all the updates.

KDE 4.3.5
Comment 4 Forgotten User xnWyJO8MVA 2010-03-24 12:52:44 UTC
Created attachment 350289 [details]
messages log
Comment 5 Forgotten User xnWyJO8MVA 2010-03-24 12:59:07 UTC
Created attachment 350292 [details]
NM log
Comment 6 Alexander Naumov 2010-03-26 12:05:58 UTC
If knetworkmanager cannot talk to NetworkManager it simply says that. It should rather try to activate NetworkManager, which can be done issuing the following command:

dbus-send --system --dest=org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake


Can you try to connect with another applets: nm-applet or cnetworkmanager?

http://ru.opensuse.org/KNetworkManager
http://userbase.kde.org/NetworkManagement_(ru)
Comment 7 Will Stephenson 2010-03-26 12:42:05 UTC
2 bugs then: 

1) NM should not be asleep on resume

2) KNM should not just show the 'NM is disabled' dummy menu entry when NM is asleep when KNM starts up, but show the 'Enable networking' entry too to wake NM.
Comment 8 Forgotten User xnWyJO8MVA 2010-03-28 15:59:16 UTC
>>dbus-send --system --dest=org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake


This console command not helped
Comment 9 Forgotten User xnWyJO8MVA 2010-03-28 16:14:39 UTC
Device info:

03:00.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)
        Subsystem: Dell Device [1028:01f1]                                                         
        Flags: bus master, fast devsel, latency 64, IRQ 17                                         
        Memory at f9bfe000 (32-bit, non-prefetchable) [size=8K]                                    
        Capabilities: [40] Power Management version 2                                              
        Kernel driver in use: b44  

0c:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
        Subsystem: Dell Wireless 1390 WLAN Mini-Card [1028:0007]
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at f9ffc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 2
        Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Virtual Channel <?>
        Kernel driver in use: b43-pci-bridge
Comment 10 Forgotten User xnWyJO8MVA 2010-03-28 16:23:20 UTC
NetworkManedger    - 0.7.1_git20090811-4.2
NetworkManedger-kde4 - 0.9.svn1043876-4.11
NetworkManedger-openvpn - 0.7.1-2.4.1
Comment 11 Forgotten User kHYb7eJGnH 2010-06-30 09:36:18 UTC
How's this working in newer versions of KDE?

Thanks
Comment 12 David Bailey 2010-07-01 03:09:20 UTC
I have the same problem in opensuse 11.3 FC1 when I suspend to RAM.

Performing the command: dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake

..from a root prompt solves the problem.
Comment 13 Forgotten User kHYb7eJGnH 2010-07-01 08:18:16 UTC
Info provided
Comment 14 Peter Puncher 2010-07-06 19:01:17 UTC
Maybe same problem here.

Notebook doesn't wake up from suspend-to-ram (although i don't know if that is related to networkmanager).

After hardresetting (turn power off) and restart, nm-tool shows

"State: asleep"

Following a hint in http://forums.opensuse.org/english/get-help-here/pre-release-beta/439460-11-3-m7-network-manager-broken.html#post2182518, the command


"solid-network set networking enabled"

provides on a shell as the user that is currently logged into the graphical system, wakes up nm again.

Hope this helps.

Regards.
Comment 15 Forgotten User --EoyBps8f 2010-07-10 15:00:50 UTC
Same here with 11.3 RC2. How can we debug what causes NM to not be active anymore? A normal user should not have to mess with the command line after resuming or some other actioon that makes NM fail. Especially since not even rebooting helps.

For me nm-applet fails as well, so it's not a knetworkmanager issue.
Comment 16 Jon Nelson 2010-07-20 18:05:47 UTC
Just hit this issue, however:

killing knetworkmanager and starting nm-applet works just great.
right-click on nm-applet and choose "Enable Networking" (which is a checkbox and is unchecked).  After that, everything works peachy.

I see this as two issues:

1. networkmanager asleep and not woken up (indeed, even after *failed* suspend-to-ram!)

2. knetworkmanager has no way to /enable/ networking once it is disabled, but nm-applet does. 

Happened 15 minutes apart on two totally different machines, a laptop (coming back from failed suspend-to-ram) and a *workstation* (coming back after suspend-to-disk).
Comment 17 Tim Mohlmann 2010-07-26 11:09:02 UTC
*** Bug 625393 has been marked as a duplicate of this bug. ***
Comment 18 Jarom Hatch 2010-07-27 06:24:18 UTC
(In reply to comment #14)
> Following a hint in
> http://forums.opensuse.org/english/get-help-here/pre-release-beta/439460-11-3-m7-network-manager-broken.html#post2182518,
> the command
> 
> 
> "solid-network set networking enabled"

Just ran into this problem, happened after a failed s2ram attempt.  Neither a reboot nor restart of networkmanager fixed this.  Disabling networkmanager and using ifup did work.  The above quited command did in fact kick networkmanager back into shape and all is good again.

Running 11.3, updated with all current patches from the channel.
Comment 19 Tom Malfrere 2010-07-30 09:23:18 UTC
Same problem here...

Had opensuse 11.2 with latest KDE 4.4.95
I upgraded to 11.3 Now if have serious trouble with my network!
I'm using KDE 4.4 stable (opensuse buildservice repository)

I always have the problem at startup, not only after standby or sleep.
when networkmanager is selected in YAST
ETH0 is not working 
WLAN0 is not working

with ifup selected
my ETH0 is working immediatly
WLAN0 is available but needs authentication (iwlist scan works)

rcnetwork restart does not work!

Only thing that does work for nog is the following command
"solid-network set networking enabled" (as root)
then everything works as should and like it working on opensuse 11.2

Is there a way to make this command permanent over a reboot?
Comment 20 Forgotten User l5QCzUHucG 2010-08-01 18:54:40 UTC
Same problem here on a Samsung NC10. Fresh install from KDE-LiveCD (11.3 Final)+all updates.
After a failed resume from a suspend to RAM, knetworkmanager could not be re-enabled.
The dbus-send command mentioned in Comment 12 worked for me but that's not really very user-friendly. The frustrating bit is that even a reboot does not solve this.
Comment 21 Forgotten User --EoyBps8f 2010-08-02 13:23:39 UTC
A fix for knetworkmanager is in the pipeline. Please be patient.
Comment 22 Hans Benker 2010-08-15 09:56:31 UTC
I tried this today on my Samsung NC10, after installing the recommended update to NetworkManager (0.8-7.4-i586 to 0.8-8.1.1-i586 from openSUSE-11.3-Update).

Result: NetworkManager connected with no problem, both after Hibernate (suspend to disk), and Sleep (suspend to RAM).

Conclusion: this has now been fixed and is a duplicate of 585433

Hint: if you are stuck with a disabled network, installing the update will not unblock it. You have to enable networking in 

/var/lib/NetworkManager/NetworkManager.state

If you find this:

[main]
NetworkingEnabled=false
WirelessEnabled=true
WWANEnabled=true

As root, change it in an editor of your choice to:

/var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
Comment 23 Hans Benker 2010-08-15 09:58:19 UTC
I tried this today on my Samsung NC10, after installing the recommended update to NetworkManager (0.8-7.4-i586 to 0.8-8.1.1-i586 from openSUSE-11.3-Update).

Result: NetworkManager connected with no problem, both after Hibernate (suspend to disk), and Sleep (suspend to RAM).

Conclusion: this has now been fixed and is a duplicate of 585433

Hint: if you are stuck with a disabled network, installing the update will not unblock it. You have to enable networking in 

/var/lib/NetworkManager/NetworkManager.state

If you find this:

[main]
NetworkingEnabled=false
WirelessEnabled=true
WWANEnabled=true

As root, change it in an editor of your choice to:

/var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

*** This bug has been marked as a duplicate of bug 585433 ***
Comment 24 Forgotten User --EoyBps8f 2010-08-15 10:38:36 UTC
You should test with _failed_ suspends etc.
Comment 25 Hans Benker 2010-08-15 15:17:27 UTC
I tested the following:
- suspend to RAM
- remove batteries (such that blue light on NC10 stops flashing)
- put batteries back in and start the machine
- instead of resuming, it now boots normally, because it has lost the RAM contents

Is that what you mean by failed suspend?
If so, I can confirm it now works, i.e. NetworkManager connects correctly after the new boot, whereas previously I regularly had a problem on resume, whether failed or not.
Comment 26 Mario Borgnia 2010-12-08 04:35:44 UTC
On Acer Aspire one 1551 (http://www.linlap.com/wiki/acer+aspire+1551) knetworkmanager is inactivated after successful resume from suspend to ram/disk.
Icon shows Unavailable upon left click and Networkmanager disabled on right click.
Activity can be restored by killing knetworkmanager and starting a new instance.

"dbus-send" ... does NOT work
"solid-network set networking"... does NOT work

Note: In this machine the wireless card is not active (light is off) after boot, it is not controllable by hardware button but it can be activated via knetworkmanager (turns light on). On resume, card is not active, restarting knetworkmanager shows that wireless is not active, status can be toggled, but light does not come on, now the hardware button is needed to turn it on, but it would not toggle the status on knetworkmanager, so both are needed.
Maybe all this has something to do with the need to pass noapic to the kernel on boot?
Comment 27 Mario Borgnia 2010-12-08 05:19:26 UTC
Making a wired connection will also activate the disabled knetworkmanager (no kill required). However this option is not always available :)
Comment 28 Forgotten User xnWyJO8MVA 2011-03-02 03:58:35 UTC
This bug is still present in the WHERE 4.6

On my DELL Inspiron 1520 knetworkmanager corresponding icon does not appear in the tray at boot time, run knetworkmanager not get help only a few rebooting
Comment 29 Christian Trippe 2012-01-28 13:54:29 UTC
Works for me with 12.1. If you still have problems please reopen.