Solved: Ubuntu – WiFi Not Working – Error


Here I give you a solution that worked for me after numerous attempts to use my previous wifi card with Ubuntu.

My solution is on how to make wifi work with Ubuntu. I provide some checks below and a clear solution if time is the number one factor for you.

If your adapter is not recognized prepare to spend enough time digging into manuals and online forums as I did.

What to do when you can’t make your wifi adapter work in Ubuntu?

Starting with my proposed solution:

I just bought a new adapter that has the highest potential to work in Linux and that’s the product below.
The best thing with this adapter? You don’t need any special drivers!
Actually, I bought the same adapter twice for my older mini-laptop that insisted on rejecting all my attempts to connect it to a simple and free wifi network that I used to connect with my 3 mobile phones and a tablet.

how to fix wifi not working

TP-Link N150 Wireless Nano USB Adapter (TL-WN725N)

So the wifi network was known to me for over a year but certain adapters would never work with Ubuntu.

Don’t forget to turn on your wifi switch if available – button or key combination. Here are the steps for checking and fixing the problem:

How to check if the wireless adapter is enabled and Ubuntu recognizes it

The most time-consuming step. You can give a lshw -C network and look for something like description: Wireless interface

how to check if the wireless adapter is enabled in linux

If it’s a USB adapter as the above solution you might want to get a list of all USB devices connected to the system by giving
lsusb or sudo lsusb -v

how to list all USB devices connected to ubuntu

If it’s a PCI adapter you can give lspci and check for mentions like Wireless Network Adapter

What to do when the wifi adapter is recognized?

You want to check if your system has the appropriate drivers for the device.

There are three options here.

a) You can use the native Linux drivers already installed in your system

b) You can download the drivers provided by the manufacturer (rare case)

c) You can use ndiswrapper without a driver. You will want to check if your adapter is supported by ndiswrapper. Find more details here. Ndiswrapper may be conflicting with a native driver, so you have to blacklist the native driver.

lshw -C network may provide a driver= name. In my case the driver name is driver=r8169

how to list all drivers

If you do find the driver name, you want to check if it’s loaded by running lsmod and looking for the name of the driver.

how to check if a driver is loaded with lsmod

In case there are two modules i.e. ndiswrapper and a native Linux driver you need to blacklist one of them.

How to blacklist a conflicting wifi driver?

You run sudo nano /etc/modprobe.d/blacklist and add a line for the driver in question like blacklist . You save the file, and reboot the system.

how to blacklist conflicting drivers

What to do when you have a driver installed and communicating with the kernel but the adapter is not working?

With sudo iwlist scan you can scan for a router (intentionally left out the full name of my network).

how to scan for wifi routers

If the command finds a router (you can find the name of the router after ESSID) then your adapter is working. But not all cards support wireless scanning.

You then need to check why the wifi is not working. Again you must verify that there is no kill switch (button) or a key combination on your laptop (if you use a laptop) that enables/disables the wifi.

Some systems to save power they disable the wifi. You can check with rfkill list or the lshw command that shows *-network:1 DISABLED or wireless=radio off.

 

How to change a device from not managed to managed

If you see an adapter not managed you can give a sudo nano /etc/NetworkManager/NetworkManager.conf and change the line managed=false to managed=true

How to change a device from not managed to managed

Then you need to restart the network-manager with the command sudo service network-manager restart.

how to restart the network-manager

How to fix the suspend/resume issue of the wifi

Start with lshw -C network and look for the driver name driver=
lshw driver name

and the adapter logical name: .

How to fix the suspend/resume issue of the wifi

Then give sudo nano /etc/pm/config.d/config and insert the line SUSPEND_MODULES="drivernamehere adapterlogicalnamehere". Of course you need to insert your own values respectively to drivernamehere and adapterlogicalnamehere

how to fix wifi suspend issue

Then you need to restart the network-manager with the command sudo service network-manager restart.

how to restart the network-manager

how to fix wifi not working

TP-Link N150 Wireless Nano USB Adapter (TL-WN725N)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.