(Solved) Linux Mint 17.3 not detecting wifi

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

(Solved) Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

Hello. I'm fairly new to Linux and just installed Linux Mint 17.3 Rosa on my new computer. My wife has a hard drive with Windows 10 on it, and everything is fat, dumb and happy, working perfectly. I have a separate 1TB hard drive for me to put Linux OSes on and play with, however I'm stuck on my first one, Linux Mint. Everything seemed to install fine, but then I couldn't get it to detect the WiFi. I do not have a wired connection, as the wireless router is across the house. I'm pretty sure that I need some kind of driver, but I have no idea even where to begin on that. I've tried to go into the device driver window in Linux Mint, and it's empty. Here is the network info I get from the Network adapters on the Windows side:

Realtek PCIe GBE Family Controller
Realtek RTL8811AU Wireless LAN 802.11ac USB 2.0 Network Adapter

Like I said, the Windows side works flawless and the only problem that Linux Mint has, that I'm aware of, is the WiFi. I also have had Linux Mint on my laptop for a while and it instantly detected the WiFi networks and works great as well. Can anyone help me and get me started in the right direction? Thanks.
Last edited by banjodaddy on Fri Jul 01, 2016 8:46 pm, edited 1 time in total.

User avatar
Reorx
Level 11
Level 11
Posts: 3933
Joined: Tue Jul 07, 2009 7:14 pm
Location: SE Florida, USA

Re: Linux Mint 17.3 not detecting wifi

Post by Reorx »

Please post the output of this terminal command >>>

Code: Select all

inxi -Fxz
P.S.: Was the WiFi working during the live session???
Full time Linux Mint user since 2011 - Currently running LM19 Cinnamon.

Image Image

User avatar
Superannuated
Level 4
Level 4
Posts: 303
Joined: Wed Sep 16, 2015 1:18 am
Location: UTC -8 :: Pacific Coast USA

Re: Linux Mint 17.3 not detecting wifi

Post by Superannuated »

This website provides a (complicated) solution for the driver installation for your adapter chip (Realtek RTL8811AU). [Note: I'm not knowledgeable enough to do more than point to this solution.]

User avatar
Superannuated
Level 4
Level 4
Posts: 303
Joined: Wed Sep 16, 2015 1:18 am
Location: UTC -8 :: Pacific Coast USA

Re: Linux Mint 17.3 not detecting wifi

Post by Superannuated »

I forgot to say that the link was for Fedora. Mint is based on Ubuntu. I don't know how to convert the solution from one to the other.

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

Reorx wrote:Please post the output of this terminal command >>>

Code: Select all

inxi -Fxz
P.S.: Was the WiFi working during the live session???
System: Host: eva Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
Desktop: Cinnamon 2.8.6 (Gtk 3.10.8~8+qiana)
Distro: Linux Mint 17.3 Rosa
Machine: Mobo: MSI model: B150M PRO-VD (MS-7996) v: 1.0
Bios: American Megatrends v: 1.20 date: 10/21/2015
CPU: Quad core Intel Core i5-6400 (-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 21686
clock speeds: max: 2701 MHz 1: 800 MHz 2: 1300 MHz 3: 800 MHz
4: 1300 MHz
Graphics: Card: NVIDIA GM107 [GeForce GTX 750 Ti] bus-ID: 01:00.0
Display Server: X.Org 1.17.1 drivers: nouveau (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.0hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)
GLX Version: 3.0 Mesa 10.5.9 Direct Rendering: Yes
Audio: Card-1 Intel Device a170 driver: snd_hda_intel bus-ID: 00:1f.3
Card-2 NVIDIA Device 0fbc driver: snd_hda_intel bus-ID: 01:00.1
Sound: Advanced Linux Sound Architecture v: k3.19.0-32-generic
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 02:00.0
IF: eth0 state: down mac: <filter>
Drives: HDD Total Size: 2000.4GB (0.6% used)
ID-1: /dev/sda model: WDC_WD10EZEX size: 1000.2GB
ID-2: /dev/sdb model: ST1000DM003 size: 1000.2GB
Partition: ID-1: / size: 19G used: 4.6G (27%) fs: ext4 dev: /dev/sdb1
ID-2: /home size: 30G used: 57M (1%) fs: ext4 dev: /dev/sdb3
ID-3: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap dev: /dev/sdb2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 28.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 174 Uptime: 1 min Memory: 424.3/7948.8MB
Init: Upstart runlevel: 2 Gcc sys: 4.8.4
Client: Shell (bash 4.3.111) inxi: 2.2.28

No, the wifi wasn't working during the live mode either. I also tried the Live Ubuntu 15.10 with the same issues, but I really like Linux Mint on my laptop and was hoping it would work on here as well.

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

Superannuated wrote:This website provides a (complicated) solution for the driver installation for your adapter chip (Realtek RTL8811AU). [Note: I'm not knowledgeable enough to do more than point to this solution.]
Yea, that did look pretty confusing. I haven't messed with Fedora since Fedora Core back in the college days.

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 17.3 not detecting wifi

Post by JeremyB »

Here is an easier one

Code: Select all

sudo apt-get install git linux-headers-$(uname -r) build-essential
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
sudo dkms add ./rtl8812AU_8821AU_linux
sudo dkms install 8812au/1.0
sudo modprobe 8812au

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

JeremyB wrote:Here is an easier one

Code: Select all

sudo apt-get install git linux-headers-$(uname -r) build-essential
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
sudo dkms add ./rtl8812AU_8821AU_linux
sudo dkms install 8812au/1.0
sudo modprobe 8812au
I tried to run the first line and got this output:

sudo apt-get install git linux-headers-$(uname -r) build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.19.0-32-generic is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

UPDATE: Even though I'm not sure exactly how I did it, I have my WiFi up and running on Linux Mint. I took the first two lines of code from JeremyB and downloaded the files onto my Ubuntu 15.10 laptop, transferred via USB stick, then built?? the driver. I'm not sure what I did, but its working, at least right now. Thank you so much everyone for your help!!

japhy_snyder
Level 1
Level 1
Posts: 2
Joined: Tue Mar 15, 2016 6:57 pm

Re: Linux Mint 17.3 not detecting wifi

Post by japhy_snyder »

When I try the above code from Jeremy it aborts after I input Y

sudo apt-get install git linux-headers-$(uname -r) build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
linux-headers-3.19.0-32-generic is already the newest version.
The following extra packages will be installed:
dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
Suggested packages:
debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
libstdc++-4.8-doc
Recommended packages:
libalgorithm-merge-perl
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
0 upgraded, 5 newly installed, 0 to remove and 13 not upgraded.
Need to get 19.8 MB of archives.
After this operation, 40.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 17.3 not detecting wifi

Post by JeremyB »

japhy_snyder wrote:When I try the above code from Jeremy it aborts after I input Y

sudo apt-get install git linux-headers-$(uname -r) build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
linux-headers-3.19.0-32-generic is already the newest version.
The following extra packages will be installed:
dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
Suggested packages:
debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
libstdc++-4.8-doc
Recommended packages:
libalgorithm-merge-perl
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
0 upgraded, 5 newly installed, 0 to remove and 13 not upgraded.
Need to get 19.8 MB of archives.
After this operation, 40.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
I don't know why it did that but you could install build-essential using Synaptic Package Manager

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

JeremyB wrote:Here is an easier one

Code: Select all

sudo apt-get install git linux-headers-$(uname -r) build-essential
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
sudo dkms add ./rtl8812AU_8821AU_linux
sudo dkms install 8812au/1.0
sudo modprobe 8812au
OK, so this worked on the kernel that came with Linux Mint 17.3, but when I did a clean install and upgraded the kernel to 4.2.5 so I could get my Audio to work I was greeted with an error. I manually upgraded the kernel to 4.2.5, and then was doing this as I had before. When I entered the following line:

Code: Select all

sudo dkms install 8812au/1.0
I received this error:

Code: Select all

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
'make'....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.2.5-040205-generic (x86_64)
Consult /var/lib/dkms/8812au/1.0/build/make.log for more information.
I have no idea what this means or where to go from here. Any ideas?

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 17.3 not detecting wifi

Post by JeremyB »

Post

Code: Select all

cat /var/lib/dkms/8812au/1.0/build/make.log
Maybe it will show a hint but I would bet that the kernel headers weren't installed with the kernel image file
Last edited by JeremyB on Fri Apr 01, 2016 8:58 am, edited 1 time in total.

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 17.3 not detecting wifi

Post by JeremyB »

japhy_snyder wrote:When I try the above code from Jeremy it aborts after I input Y

sudo apt-get install git linux-headers-$(uname -r) build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
linux-headers-3.19.0-32-generic is already the newest version.
The following extra packages will be installed:
dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
Suggested packages:
debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
libstdc++-4.8-doc
Recommended packages:
libalgorithm-merge-perl
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.8 libstdc++-4.8-dev
0 upgraded, 5 newly installed, 0 to remove and 13 not upgraded.
Need to get 19.8 MB of archives.
After this operation, 40.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
use y not Y, it shows the capital Y because it is the suggested answer

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

JeremyB wrote:Here is an easier one

Code: Select all

sudo apt-get install git linux-headers-$(uname -r) build-essential
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
sudo dkms add ./rtl8812AU_8821AU_linux
sudo dkms install 8812au/1.0
sudo modprobe 8812au
OK. So I have used the above step when doing a fresh install of Linux Mint 18 Cinnamon. All was fat dumb and happy. Then I did a kernel update (in my update manager) and now the driver isn't working. If I try to add again, it says: Error! DKMS tree already contains: 8812au-1.0. How can I fix this so my WiFi works again?

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 17.3 not detecting wifi

Post by JeremyB »

You may have to

Code: Select all

sudo dkms remove -m 8812au -v 1.0 -k $(uname -r)
sudo dkms install -m 8812au -v 1.0 -k $(uname -r)

User avatar
banjodaddy
Level 1
Level 1
Posts: 30
Joined: Sun Mar 13, 2016 4:34 pm

Re: Linux Mint 17.3 not detecting wifi

Post by banjodaddy »

JeremyB wrote:You may have to

Code: Select all

sudo dkms remove -m 8812au -v 1.0 -k $(uname -r)
sudo dkms install -m 8812au -v 1.0 -k $(uname -r)
Thanks, everything is working great again! I did have to do the following line after the above:

Code: Select all

sudo modprobe 8812au

fabien85
Level 7
Level 7
Posts: 1637
Joined: Tue Mar 11, 2014 4:30 pm

Re: (Solved) Linux Mint 17.3 not detecting wifi

Post by fabien85 »

Even though this thread is old, I used its info and would like to comment :
- first to thank JeremyB for the help ; and whoever is managing that github repository, thank you
- I had to make a few changes, detailed below, to get it to work, this may be of interest to people trying to reproduce the steps

It didnt work out of the box with JeremyB's instructions for me, probably because the repository moved by some commits since the instructions were posted :

Code: Select all

$ sudo dkms add ./rtl8812AU_8821AU_linux
Creating symlink /var/lib/dkms/rtl8812au/#MODULE_VERSION#/source ->
                 /usr/src/rtl8812au-#MODULE_VERSION#

DKMS: add completed.
$ sudo dkms install 8812au/1.0
Error! Could not find module source directory.
Directory: /usr/src/8812au-1.0 does not exist.
I understood that the problem was that #MODULE_VERSION# was not translated, and also the presence of the leading "rtl" in the directory name. After some trial and error, I basically undid the link made by sudo dkms add, corrected the directory name, redid the link, built the dkms module with the correct name and modprobed it.

Code: Select all

sudo rm /var/lib/dkms/rtl8812au/#MODULE_VERSION#/source
sudo mv /var/lib/dkms/rtl8812au/#MODULE_VERSION# /var/lib/dkms/rtl8812au/1.0
sudo mv /usr/src/rtl8812au-#MODULE_VERSION# /usr/src/rtl8812au-1.0
sudo ln -s /usr/src/rtl8812au-1.0 /var/lib/dkms/rtl8812au/1.0/source
sudo dkms install rtl8812au/1.0
sudo modprobe rtl8812au
It takes about a minute to compile at the sudo dkms install step, but after the modprobe, the adaptor just appeared in the network manager and worked flawlessly.

I'm guessing I had to do all these changes because the code changed in the repository. Here is the commit I pulled :

Code: Select all

commit fcc356bdad975459836c1bdaf1100a22639e3e80
Date:   Sun Jan 22 23:04:05 2017 +0200
I note that there are instructions in the README.md, which are maybe now the official instructions to install, in particular :

Code: Select all

## Compiling with DKMS

```sh
# sudo make -f Makefile.dkms install
```
In my case, I didnt know exactly what the sudo dkms add had done, nor how to undo it ; so with one step already in the water, I just tried tweaking the instructions, to keep on and cross the river.

sloth753
Level 1
Level 1
Posts: 1
Joined: Thu Feb 23, 2017 6:38 pm

Re: (Solved) Linux Mint 17.3 not detecting wifi

Post by sloth753 »

fabien85 wrote:Even though this thread is old, I used its info and would like to comment :
- first to thank JeremyB for the help ; and whoever is managing that github repository, thank you
- I had to make a few changes, detailed below, to get it to work, this may be of interest to people trying to reproduce the steps

It didnt work out of the box with JeremyB's instructions for me, probably because the repository moved by some commits since the instructions were posted :

Code: Select all

$ sudo dkms add ./rtl8812AU_8821AU_linux
Creating symlink /var/lib/dkms/rtl8812au/#MODULE_VERSION#/source ->
                 /usr/src/rtl8812au-#MODULE_VERSION#

DKMS: add completed.
$ sudo dkms install 8812au/1.0
Error! Could not find module source directory.
Directory: /usr/src/8812au-1.0 does not exist.
I understood that the problem was that #MODULE_VERSION# was not translated, and also the presence of the leading "rtl" in the directory name. After some trial and error, I basically undid the link made by sudo dkms add, corrected the directory name, redid the link, built the dkms module with the correct name and modprobed it.

Code: Select all

sudo rm /var/lib/dkms/rtl8812au/#MODULE_VERSION#/source
sudo mv /var/lib/dkms/rtl8812au/#MODULE_VERSION# /var/lib/dkms/rtl8812au/1.0
sudo mv /usr/src/rtl8812au-#MODULE_VERSION# /usr/src/rtl8812au-1.0
sudo ln -s /usr/src/rtl8812au-1.0 /var/lib/dkms/rtl8812au/1.0/source
sudo dkms install rtl8812au/1.0
sudo modprobe rtl8812au
It takes about a minute to compile at the sudo dkms install step, but after the modprobe, the adaptor just appeared in the network manager and worked flawlessly.

I'm guessing I had to do all these changes because the code changed in the repository. Here is the commit I pulled :

Code: Select all

commit fcc356bdad975459836c1bdaf1100a22639e3e80
Date:   Sun Jan 22 23:04:05 2017 +0200
I note that there are instructions in the README.md, which are maybe now the official instructions to install, in particular :

Code: Select all

## Compiling with DKMS

```sh
# sudo make -f Makefile.dkms install
```
In my case, I didnt know exactly what the sudo dkms add had done, nor how to undo it ; so with one step already in the water, I just tried tweaking the instructions, to keep on and cross the river.

I am a week into my first Linux experiment. Never done any coding before. and i just want to get my internet working on my Linux PC. What are the steps that I need to complete to get this driver installed on my Linux Mint 18.1 machine. A very clear and specific step by step process would be very helpful. Thanks

JeremyB
Level 20
Level 20
Posts: 11393
Joined: Fri Feb 21, 2014 8:17 am

Re: (Solved) Linux Mint 17.3 not detecting wifi

Post by JeremyB »

sloth753
Please post results from terminal for

Code: Select all

lsusb

Post Reply

Return to “Newbie Questions”