Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 592505 - Bad NetworkManager.state contents block wifi card from powering up
Bad NetworkManager.state contents block wifi card from powering up
Status: CLOSED DUPLICATE of bug 589108
Product: Fedora
Classification: Fedora
Component: NetworkManager (Show other bugs)
i386 Linux
low Severity high
: ---
: ---
Assigned To: Dan Williams
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-05-14 22:12 EDT by Richard Hitt
Modified: 2010-05-17 19:55 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-17 19:55:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch that demonstrates proof of concept described in Comment 6 (2.28 KB, patch)
2010-05-15 19:51 EDT, Richard Hitt
no flags Details | Diff

  None (edit)
Description Richard Hitt 2010-05-14 22:12:02 EDT
Description of problem:
Wifi card fails to operate on reboot from failed suspend/resume on laptop;
these two commands fix instantly:
    sudo rm /var/lib/NetworkManager/NetworkManager.state
    sudo service NetworkManager restart

Version-Release number of selected component (if applicable):

How reproducible:
Reproducible every time

Steps to Reproduce:
1. With wifi card (pcmcia) up and connection established, close laptop lid
2. After ~30s open lid and observe computer does not resume
3. Reboot and observe that wifi card (pcmcia) lights do not light
Actual results:
Wifi card fails to operate

Expected results:
Wifi card lights and operates normally

Additional info:
The laptop is a HP ze5250.

The contents of the NetworkManager.state file before removal are:
-------- start of file

-------- end of file

The contents after these two commands:
    rm /var/lib/NetworkManager/NetworkManager.state
    service NetworkManager restart
-------- start of file

-------- end of file
Comment 1 Richard Hitt 2010-05-14 22:31:15 EDT
The laptop's smolt ID is (taken without the wifi card):
Comment 2 Richard Hitt 2010-05-14 22:49:46 EDT
Another report of what seems to be my exact problem, albeit on a ThinkPad, not a HP, and on Ubuntu, not Fedora, is at this URL:
Comment 3 Richard Hitt 2010-05-14 23:15:06 EDT
Still another URL, https://bugs.launchpad.net/ubuntu/+bug/555571
This one shows a fix, exactly the fix I described above, and claims
that "This bug affects 24 people", I don't know how they arrived
at that number.
Comment 4 Richard Hitt 2010-05-15 14:32:02 EDT
Another smolt of the laptop I reproduced this problem on.  This one includes the Broadcom 4318 card:
Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller
The smolt info is at:
Comment 5 Richard Hitt 2010-05-15 19:17:44 EDT
Also see Bugid 589108 comment 1, exactly the same problem and circumvention as I described above.  And note from that bug report that an alternative way to encounter this problem is with battery drain.  This happened to me too, months ago.
Comment 6 Richard Hitt 2010-05-15 19:51:54 EDT
Created attachment 414302 [details]
Patch that demonstrates proof of concept described in Comment 6

See Comment 6.  The patch is to src/main.c and adds option --force-enabled.
When the option is used, parse_state_file() forces NetworkingEnabled to be true.
Comment 7 Dan Williams 2010-05-17 19:51:59 EDT
The real fix for this is to stop using sleep/wake as the "Networking Enabled" commands, which is how they are currently wired up.  That's planned.
Comment 8 Dan Williams 2010-05-17 19:55:41 EDT

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

Note You need to log in before you can comment on or make changes to this bug.