Unable to find wireless networks after toggling wireless

Bug #887834 reported by Johann Bach
96
This bug affects 18 people
Affects Status Importance Assigned to Milestone
NetworkManager
Fix Released
Medium
network-manager (Ubuntu)
Fix Released
Medium
Keng-Yu Lin
Oneiric
Fix Released
Medium
Keng-Yu Lin
Precise
Fix Released
Medium
Keng-Yu Lin

Bug Description

I am using Ubuntu 11.10 and network-manager 0.9.1.90-0ubuntu5.

If I use either the network manager applet or the nmcli -p nm wifi on|off command to toggle wireless on and off, wireless networks are no longer seen even though wireless is enabled and the wireless LED is on.

My Samsung N150 netbook has the rfkill.default_state=0 parameter. I do the following commands:

rfkill unblock wifi
nmcli -p nm wifi on
nmcli -p nm wifi off
nmcli -p nm wifi on

At this point the wireless LED is on. If I do nmcli -p dev wifi, it shows no wireless networks. Other commands show the following:

$ nmcli -p nm wifi
================
  WiFi enabled
================
WIFI
----------------
enabled

$ rfkill list
0: samsung-wifi: Wireless LAN
 Soft blocked: no
 Hard blocked: no
1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

$ nmcli -p dev
===========================================
             Status of devices
===========================================
DEVICE TYPE STATE
-------------------------------------------
wlan0 802-11-wireless unavailable
eth0 802-3-ethernet connected

wlan0 should not be unavailable. It should be disconnected.

I have to disable wireless and use the rfkill command to block/unblock wifi to get wireless working again. I suspect this issue has been fixed in network-manager 0.9.1.95 as there was a patch to nm-udev-manager.c that was committed on September 30, 2011 (core: improving handling of rfkill):

http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=339229e4c698c61e20a28bfc33d8501490891427

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: network-manager 0.9.1.90-0ubuntu5
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
CRDA: Error: [Errno 2] No such file or directory
Date: Tue Nov 8 18:44:22 2011
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20111007.1)
IpRoute:
 default via 192.168.33.1 dev eth0 proto static
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.33.0/24 dev eth0 proto kernel scope link src 192.168.33.101 metric 1
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Johann Bach (johann-bach-deactivatedaccount) wrote :
description: updated
Revision history for this message
Johann Bach (johann-bach-deactivatedaccount) wrote :

I applied the upstream patch identified in the bug report to network-manager 0.9.1.90-0ubuntu5 and it did resolve the issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I confirmed that Asus K54HR has the same bug too.

Changed in network-manager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Keng-Yu Lin (lexical) wrote :

The upstream patch fixes my Asus K54HR. It should also be pulled for this bug in Ubuntu.

Changed in network-manager (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I would like to get SRU team review this:

[Impact]
  Wifi stayed disabled after toggling the hotkey to disable and then re-enable.

[Development Fix]
  A patch is already in upstream, should be imported at sometime for Precise.

[Stable Fix]
  Please apply the patch (as in #5). It can be clean-applied on current Oneiric n-m code.

[Test Case]
  I built and tested a nm deb with the patch applied, and it fixes the problem on the Asus K54HR.

[Regression Potential]
  Since it's an upstream patch, should be of low risk.

Revision history for this message
Keng-Yu Lin (lexical) wrote :

sponsoring needed.

Changed in network-manager (Ubuntu):
assignee: nobody → Keng-Yü Lin (lexical)
tags: added: blocks-hwcert-enablement
Revision history for this message
Mitchell (curious-mitchell) wrote :

I have the same issue with my asus eeepc 1015px running 11.10. A workaround is running:
sudo restart network-manager

I would love to try this path, is there a .deb that I could test? Keng-Yu, are you able to provide me with the .deb you built for this? Will be good to get this fixed for 12.04, but what is the likely hood this will be pushed through to the Oneiric updates? Cheers.

Revision history for this message
Aswin Kumar Bala krishnan (balashwin) wrote :
  • dmesg.odt Edit (23.0 KiB, application/vnd.oasis.opendocument.text)

How to install this patch and test it.

I am new to ubuntu. Please help me in fixing this issue .

I am attaching /var/log/dmesg file with this comment.

Revision history for this message
Keng-Yu Lin (lexical) wrote :

for those who want to try the patched deb plese check: https://launchpad.net/~lexical/+archive/nm

I am looking for one with the permission to upload.

Revision history for this message
abma (abma) wrote :

for me, the patched package fixed the bug...thanks! :)

Robert Hooker (sarvatt)
tags: added: patch
Revision history for this message
Alex Wolfson (awolfson) wrote :

@lexical - thanks for the patch.

for those who want to test the patch the easiest way is:

$ sudo add-apt-repository ppa:lexical/nm
$ sudo apt-get update
$ sudo apt-get install network-manager
reboot

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Uploaded to oneiric-proposed.

Changed in network-manager:
importance: Unknown → Medium
status: Unknown → Fix Released
Keng-Yu Lin (lexical)
Changed in network-manager (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Johann Bach (johann-bach-deactivatedaccount) wrote :

Comment #13 said that there was an upload to oneiric-proposed. I was expecting to see network-manager 0.9.1.90-0ubuntu6 in oneiric-proposed, but I don't see it. So I'm wondering if I'm doing something stupid or if anyone one else has successfully installed network-manager from oneiric-proposed.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

It never got that far, instead it was rejected though I don't know why.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.9.1.90-0ubuntu6

---------------
network-manager (0.9.1.90-0ubuntu6) precise; urgency=low

  * debian/patches/core-improving-handling-of-rfkill-bgo-655773.patch:
    Fix the rfkill handling with the improved block state determination
    logic among the platform driver and the non-platform driver.
    (LP: #887834)
 -- Keng-Yu Lin <email address hidden> Thu, 24 Nov 2011 15:41:54 +0800

Changed in network-manager (Ubuntu Precise):
status: Fix Committed → Fix Released
Timo Aaltonen (tjaalton)
Changed in network-manager (Ubuntu Oneiric):
status: New → In Progress
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The rejection was due to missing the bug closer in the changelog, so I added that and reuploaded (also to precise).

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Thanks for the work!

Next time, could you please let me or somebody else know about this via a merge request or otherwise? There's a packaging branch (lp:~network-manager/network-manager/ubuntu.head) for network-manager and changes need to be included there as well, I'll do the necessary work now ;)

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted network-manager into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in network-manager (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Alex Wolfson (awolfson) wrote :

I verified the bug on the Dell Laptop with BCM4313 (14e4:4727) WiFi card, running oneiric.

I toggled rfkill switch 10 times. Wifi came back successfully.
On the same HW before upgrade I was able to use rfkill switch no more then 3 times in a row

Revision history for this message
Chris Van Hoof (vanhoof) wrote :

Setting verification-done based on Alex's feedback in Comment #20

tags: added: verification-done
removed: verification-needed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Mathieu: yeah sorry, that occurred to me after the uploads

Chris Van Hoof (vanhoof)
Changed in network-manager (Ubuntu Oneiric):
importance: Undecided → Medium
assignee: nobody → Keng-Yü Lin (lexical)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.9.1.90-0ubuntu5.1

---------------
network-manager (0.9.1.90-0ubuntu5.1) oneiric-proposed; urgency=low

  * debian/patches/core-improving-handling-of-rfkill-bgo-655773.patch:
    Fix the rfkill handling with the improved block state determination
    logic among the platform driver and the non-platform driver.
    (LP: #887834)
 -- Keng-Yu Lin <email address hidden> Thu, 24 Nov 2011 15:41:54 +0800

Changed in network-manager (Ubuntu Oneiric):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.