How do I fix a "Wireless is disabled by hardware switch" error?

306,432

Solution 1

Same happened to me, simply resolved with:

rfkill unblock all

rfkill list all showed some devices on soft block.

Solution 2

There are two types of radio kill switches: 'hard' (or physical) and 'soft' (software). The rfkill list command will tell you whether either (or both) of these are set for any connected radio devices.

If your wireless card shows "Hard blocked: yes", then a physical switch on your laptop case is turned off. Turn it on.

If your card shows "Soft blocked: yes", then you can turn it back on by running rfkill unblock <ID> where is replaced by the number from the rfkill list command.

There is a bug in network-manager, where if you disabled wifi by right-clicking on the applet and un-checking "Enable Wireless", then the menu option becomes grayed out and can no longer be re-enabled. This persists after rebooting. It looks like NM is soft-blocking the wireless card when you disable it (which is a reasonable thing to do), but then graying out the menu item because it is soft-blocked (which is not a reasonable thing to do).

Solution 3

if you just want to reactivate your wifi...

sudo rfkill unblock wifi

Solution 4

Try this $ sudo rfkill unblock all

Also hit the key on your keyboard that switches your wifi on and off.

Another method that usually 100% effective is to simply connect your cable wire to your laptop for a few minutes then unplug it. Reboot and your wifi should be working.

Also as mentioned above network manager is buggy.

I like to use WICD because it is a simple and easy to use network manager. Its a very good alternative to network manager in Ubuntu and it seems to always work when Network Manager doesn't. To install it just open up the terminal.

To download and install WICD

sudo apt-get install wicd-gtk 

And now you need to uninstall NetworkManager:

sudo apt-get remove --purge network-manager-gnome network-manager 

Now you can find WICD in your menu Start WICD, find the network you want to use and enter the information needed, password, encryption, etcetera and choose Automatically Connect to this network. You should be good to go!

WICD may also be available in Ubuntu Update Manager so you can look there first but it is important to uninstall Network Manager completely to prevent conflicts!!

Solution 5

I don't know the Acer Travelmate 4500 but I had a similar problem with a Dell laptop.

Firstly I assume there is no hardware switch ie a physical wireless switch on the side or underneath the laptop?

If not then, interrupt the boot sequence by pressing the F2 key "Set up" (it may be a different key on your machine) and then look for the wireless settings and ensure they are set correctly.

Share:
306,432

Related videos on Youtube

Sahil
Author by

Sahil

Updated on September 18, 2022

Comments

  • Sahil
    Sahil almost 2 years

    I just updated to Ubuntu 12.04 from 11.10 but soon after updating I was disappointed to see that

    Wireless is disabled by hardware switch.

    I can not click the button 'Enable wireless' which is greyed out. Without wireless my computer is useless as I have to connect by wire which is not practical. I have a Acer TravelMate 4500

    • Rinzwind
      Rinzwind about 12 years
      You can assume it is a hardware notice: some notebooks have a slider at the left of right of the casing. And some have a keyboard combo (Fn + F3 on my machine). and do not forget BIOS: wifi might be disabled there.
    • hobs
      hobs about 11 years
      On an HP Envy laptop if you shutdown with wifi disabled by the hardware switch (Fn F12), then it will be disabled when you boot and network manager will give up trying after 60 seconds, and on each subsequent reboot, whether or not you re-enabled wireless while you were up or did a sudo service network-manager restart.
    • Bellera
      Bellera over 9 years
      Perhaps you have a bad NetworkManager.state ? ubuntuforums.org/…
    • fakeleft
      fakeleft about 9 years
      @hobs: sudo service network-manager restart did it for me, thanks
    • hobs
      hobs about 9 years
      @fakeleft Ubuntu 12.04? "NM restart" didn't start working for me til 14.04
    • fakeleft
      fakeleft almost 9 years
      @hobs: yes, ubuntu 12.04
  • Sahil
    Sahil about 12 years
    - It seems that my wireless is set up correctly on my settings but I was not completely sure what I was looking for
  • Nirmik
    Nirmik about 12 years
    You have to look for whether "enable wireless at boot/start" is enabled.
  • Eliah Kagan
    Eliah Kagan about 12 years
    Do you have a link to the bug report for this?
  • kingdango
    kingdango over 11 years
    This is why Linux fails to hit a bigger audience... stupidity like this. I run dual boot. In Ubuntu I was able to accidentally disable my wireless hardware completely... it wouldn't even reenable in windows -- so I changed something below the OS abstraction. Seriously? I event spent $30 on a USB wireless trying to fix this. Linux, I loath you but love you too. Thank you @Luca for this solution to my problem. Give me your address and I'll send you this Micro USB Wireless device.
  • Burrito
    Burrito over 11 years
    I had the same problem just after clicking "disable wireless" because a network kept trying to reconnect that required authentication (kept popping up and I was trying to work). Then wireless also stopped working in windows and not until I did rfkill unblock all AND restarted was the Enable Wireless option available again
  • Andrew M
    Andrew M over 10 years
    Thanks, I think sudo is important, and seemed to work for me where it didn't without sudo. Thanks :)
  • Babbzzz
    Babbzzz over 8 years
    Great. The other commands work for only soft block.
  • quimnuss
    quimnuss over 8 years
    I was installing linux in a friend's old computer, and struggled for hours with the hard-switch problem. For some reason, I assumed other posts were refering to the fn+f8, but your blunt "a physical switch on your laptop case is turned off. Turn it on." made me think about searching for a physical switch somewhere. And I found it. Man, thanks, and thank your bluntness.
  • Sachith Muhandiram
    Sachith Muhandiram over 7 years
    this worked for me. all the other answers were not working for me.
  • Chris Stratton
    Chris Stratton almost 6 years
    Sorry, but this answer is not necessarily correct. Ubuntu can falsely report that the wifi is blocked by a hardware switch even on machines without a hardware switch, and even for a USB wifi adapter, which is of course unaffected by system hardware, but only by software. In short, Ubuntu lies.
  • Manohar Reddy Poreddy
    Manohar Reddy Poreddy over 5 years
    No. Issue is not Ubuntu or driver, but we are the reason, see a simple solution here: unix.stackexchange.com/a/507631/189124