Turning Wireless on Causes Laptop to Freeze on Ubuntu 11.04 Natty Narwhal? My Work Around

It all started..

…after I installed Kubuntu 11.04 beta, everything was going smooth, wireless worked out of the box, (unlike 10.10 where I had to install some freedom hating broadcom driver) I had the awesome kde 4.6.2, seating on top what has been tagged the most significant Linux kernel release for desktop users in a long time kernel v2.6.38 (with the magic patch and all). Life was good.

Then it happened!


Trouble started when I wanted to send some files to my phone from laptop via the bluetooth. (You see I happen to be among the unfortunate set of people who have the same button for enabling wireless and bluetooth.) I tried enabling the laptop’s bluetooth when the whole system came to a standstill. I did a forceful shut-down after which my install never saw the light of the day again. Everytime I tried booting the PC, it always got stuck at the boot process. The scary part was even the the Kubuntu 11.04 Livecd stopped Booting at all! Only Kubuntu 10.10 was able to boot (from Livecd). :(

Searching for Answers

The most frustrating part of my Nasty Natty experience (pun intended) was trying to determine the root cause. How to explain how an OS installs fine, then crashes and not only does it become unable to boot, even attempts to do a clean install also hits a dead then. Here were a list of my suspicions

Corrupt system Memory (I know from experience that the best way to test if a system has bad memory is to load in a Live cd, this was ruled out by the fact that I was able to load on Kubuntu 10.10 on Live cd without issues)

Then I thought maybe a bad system Bios (I really wanted to pursue this option and upgrade the system BIOS via windows. Thankfully windows won’t install, complained about some partition issues)

I also considered a badly burnt media (but checked its integrity and it was said to be ok)

Kde 4.6 bug? (Xubuntu 11.04 had the same problem) kernel bug? hmmm

Light Bulb Moment…

Came while talking to a friend about the problem on irc and he suggested it was most like kernel problem probably some bad module. This got me thinking, I remembered the last thing I was doing (or wanted to do) when all this started was enabling bluetooth (shares the same button as the wireless)

I then decided to go into the system BIOS and disable the wireless / bluetooth radio. Fired the LiveCD of Xubuntu 11.04 and Voilà Xubuntu booted successfully, no hangs or freeze. But also no wireless.

Work Around

After I was able to get Xubuntu to successfully boot. I proceeded to install it. (for testing purpose I enabled the wireless radio from Bios and had the issue the freshly install Xubuntu 11.04 freeze at login screen (again) disabled it and everything worked fine (But no wireless)

Here is what I now did to fix the issue on my laptop. I did not have this issue on 10.10 mostly because that version of Kubuntu did not ship with the opensource broadcom drivers. I had to use the binary only driver from broadcom, hence the idea was to revert back to that setup.

first I installed the broadcom-sta-common (It provide a binary only closed source driver for broadcom)

sudo apt-get install broadcom-sta-common

Once installed, I edited the following file /etc/modprobe.d/broadcom-sta-common.conf

NB its always a good thing to backup before making any change to config file.
backup with this command

cp /etc/modprobe.d/broadcom-sta-common.conf /etc/modprobe.d/broadcom-sta-common.conf-orig

In case things gets jammed up and you want to revert, you can easily do so with

cp /etc/modprobe.d/broadcom-sta-common.conf-orig /etc/modprobe.d/broadcom-sta-common.conf

kdesudo kate /etc/modprobe.d/broadcom-sta-common.conf

NB gnome user should use gtksudo gedit in place of kdesudo kate (and if you are like me, you can use ever reliable vim :) )

Anyway I blacklisted the brcm80211 open source broadcom driver by adding this line to, /etc/modprobe.d/broadcom-sta-common.conf blacklist brcm80211 Before the last line. When done, everything looked like this

# wl module from Broadcom conflicts with ssb
# We must blacklist the following modules:
blacklist b44
blacklist b43legacy
blacklist b43
blacklist ssb
blacklist brcm80211
install wl /sbin/modprobe --ignore-install wl $CMDLINE_OPTS

I saved the file and then edited this file /etc/modules (again backup before editing)

cp /etc/modules /etc/modules-orig

By adding the module for the closed source (freedom hating but stable) broadcom driver so it is loaded at every system boot

I added lw to the end of /etc/modules so the file looks like this

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
lw

Saved the file, exited, and rebooted this time with the wireless on to test if the issue as been fixed. The laptop rebooted fine, no issue, but still no wireless. Then I started the Kubuntu additional driver tool or kdesudo jockey-kde (from commandline on Kubuntu) or gtksudo jockey (from commandline on Ubuntu) which searched and informed me I needed to activate some proprietary drivers to make the wireless card work properly. I enabled them, It did its magic and voilà the wireless card came on. I was able to enable and disable it without the system kernel panicing.

I rebooted my laptop and there was no problem at all, everything worked just like it did on 10.10.
I explained the same step to some dude on irc having similar problem and my solution worked for him so I decided to share in case anyone is having such problems.

I hope someone finds this useful.

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

This entry was posted in Broadcom Wireless, Connectivity, Gnome, Installation, KDE, kubuntu, Linux Admin, Ubuntu and tagged , , , , . Bookmark the permalink.
  • Anonymous

    started if It capital to forward some files to my buzz from laptop via the blue-tooth. It is approved enabling the laptop blue-tooth if the accomplished arrangement came to a standstill.

  • Boogii Md88

    lol ubuntu 11.04 wirless tanihgui bna yahuu

  • Anonymous

    Fixed the wireless on my HP2133 temporarily; got a freeze again not long afterwards though =[] I think my issue is slightly different. I get a freeze shortly after connecting to a hotspot.

    • http://bobby.com.ng bigbrovar

      @Neighbourhood_Nerd:disqus Glad it worked for you, thanks for the feedback :)

      • Anonymous

        But it didn’t work – it seemed to only delay the issue. Only happened after installing 11.04.

  • http://twitter.com/alistcole alistair cole

     Great tut: worked for my Dell Inspiron wireless with kubuntu 11.04 natty. So far after 4 shutdown / reboots the wireless is up.

  • Natty Norhater

    Have you had any more luck with the hp2133? I’m having the same issue, but haven’t dug too deep yet.

    • Anonymous

      Apparently upgrading the Kernel works. The sneakiest way to do this is install 11.04 and update it via Ethernet. You can do this either by looking up a kernel update or by updating to 11.10 beta

  • http://janetalkstech.com Jane Ullah, Jane Talks Tech!

    Have you had any more wireless problems?  I don’t even know where to begin to find out why wireless on Natty routinely ‘dies’ and then I have to restart nm-applet, at least, 5x a day. :(

  • hrx

    It happend to me to. I turned off wi-fi in BIOS, and then boot into ubuntu and blacklist rt2800pci with this command:

    echo blacklist rt2800pci | sudo tee -a /etc/modprobe.d/blacklist.conf

    restart, turn on wi-fi chip in BIOS and wi-fi should work. even the little LED on combo button works.

  • cheefy

    this helped for me on an acer aspire one 722 (broadcom 4313) but only for some seconds.
    so the problem was unfortunately not solved yet….

  • Bruno Araújo

    i have an asus 1005px and using ubuntu 11.04 in some wireless networks (smc or non protected maybe both) freezes my systems completely, starts by clogging and then complete freeze. This only happens when i try to connect to a certain SMC router with an unprotected wlan … odd, tried fix above but nothing changed, system clogs then freezes

  • gpgdx

    I am running ubuntu 11.04 and occassionally my computer used to hang. I guess it happened more often when the wireless signal was weak and my computer was trying to connect to the network. After reading this post, I was also able reproduce exactly the same problem as was described in this article (turning the bluetooth on). So, I tried the fix presented here. So far this fix seems to have helped me :)
    A side note: the open source driver used to fire up the internet much faster than this proprietary driver. But the proprietary driver seems to be more stable (in terms of preventing from hanging. Anyway, I just tried the fix, and since the original problem of hanging is, in my case, occassional, I have to still wait and see.

  • Jasiu

    Thank you for posting your solution. My HP Probook was freezing the same way and has been healed!

    • Danydjm2000

      Hello,
      thank you very mach for your help, it’s work also on Ubuntu  11.04 un HP 625.

      Thanks
      again! 

  • Vipinthomaskc

    I have hp dm4t 1024tx with ubuntu 11.04. This solution works out of the box.

  • updogliu

    Great! It worked for me (wubi ubuntu 11.04 32bits, on HP Laptop 4525s)!
    Thank you very much!

  • Anonymous

    I have owned my HP Pavilion edition for 2 months now. I’m running Ubuntu 11.04 and from time to time my laptop used to hang. I guess that happened more often when the wireless signal is weak and my laptop was trying to connect to the network. 

  • Christoph

    Hi, are you sure about the “lw”? I installed the package, blacklisted the driver and added the lw module, and the system now starts even when the wireless adapter is enabled in BIOS (yay! I presume this was fixed by blacklisting the bad driver). However, the system doesn’t see the adapter, and “modprobe lw” returns a “FATAL: Module lw not found”.

    There is, however, a wl module. After inserting it with modprobe, an eth1 interface appears in iwconfig and in the NetworkManager menu. It doesn’t seem to be able to connect, but maybe that will change after pressing that Bluetooth / WiFi button. I’ll try that after posting this, in case it kills my system again. ;-)

  • Johan

    This seems to fix all the pseudo random freezes on my MacBook Air 11″. Thanks!

  • Phivos_p

    i just installed linux in my mini hp 2133 laptoP and it works perfect with an ethernet cable but when i open wireless it stacks.i can’t do anything and i am force to take out the batterie to shut it down.PLEASE I NEED HELP .what to do?

  • Sander

    Thanks a lot, this post got my machine running again. Now still figuring out why I can’t enable Wireless again from Ubuntu, there are no Additional Drivers listed and in the nm-applet I don’t see any wireless connections.