Easy solution that worked for me after numerous attempts to make my wifi adapter work in Ubuntu.

You may follow the steps below and adopt my reliable solution if you prefer not spending all your time looking for another solution. If your adapter is not recognized be prepared 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?

I bought an adapter that has the highest probability to work in Linux and that's the product below.

Ubuntu not Detecting WiFi Adapter

The best thing with this adapter? You don't need any special drivers and costs only $10!

 

I bought two of these adapters 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.

So the WiFi network was known to me for over a year but all my WiFi adapters never worked 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:

Skip to the contents

 

 

How to check if the wireless adapter is enabled?

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 you are using a USB adapter as in my proposed 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 you are using a PCI adapter you can give lspci and check for mentions like Wireless Network Adapter

.

Skip to the contents

 

 

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.

  1. You can use the native Linux drivers already installed in your system.
  2. You can download the drivers provided by the manufacturer (rare case).
  3. You can give 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.

By giving lshw -C network the output is driver= followed by the 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.

Skip to the contents

 

 

How to blacklist a conflicting WiFi driver?

You give sudo nano /etc/modprobe.d/blacklist and add a line for the driver in question like blacklist .

Save the file and reboot the system.

 

how to blacklist conflicting drivers

 

Skip to the contents

 

 

What to do when the driver is installed, communicates with the kernel but the adapter is not working?

 

With udo 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 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.

Skip to the contents

 

 

How to fix an adapter 'not managed'?

 

If you see an adapter not managed you can edit the network manager configuration with sudo nano /etc/NetworkManager/NetworkManager.conf, find and change the line from managed=false to managed=true

 

How to change a device from not managed to managed

 

Restart the network-manager with the command sudo service network-manager restart.

 

how to restart the network-manager

 

 

Skip to the contents

 

 

How to fix the suspend issue?

 

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 change the values drivernamehere and adapterlogicalnamehere to match the output of your command line.

 

how to fix wifi suspend issue

 

Restart the network-manager with the command sudo service network-manager restart.

 

how to restart the network-manager

 

 

The adapter that worked for me: TP-Link N150 Wireless Nano USB Adapter (TL-WN725N)

how to fix wifi not working

Click the link to find the sales page (nice surprise it costs only $10).

 

Skip to the contents

 

 

mobile responsive websites

Mobile Responsive Websites and SEO

Why change your current website setup? Are there any gains that justify the costs of making a website mobile-friendly?

Packages Kept Back

Ubuntu Does Not Update - Packages Kept Back (Solved)

You will solve the error message when Ubuntu refuses to upgrade packages. Error = The following packages have been kept back

Is Google News mobile-friendly

Is Google News mobile-friendly? (Case study)

Curious to see if Google News was mobile-friendly, I tested the introduction of AMP into the service.

How to Optimize your Paid Ads

How to Optimize your Paid Ads

Up the performance of paid ads. Up the conversions, rationalize spending. Tips for Google Ads, Facebook, YouTube, and ad networks.