USB Wi-Fi Device Realtek RTL8811AU

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

JeremyB
Not sure if suggested link was intended for me but this is the result.The adapter is still playing up ... not functioning now!

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
dkms is already the newest version (2.3-3ubuntu9.7).
git is already the newest version (1:2.17.1-1ubuntu0.4).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

JeremyB

Ran this again and Realtek is listed but still fails to function

Code: Select all

Bus 001 Device 008: ID 0bda:0811 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 010: ID 0480:a202 Toshiba America Inc Canvio Basics HDD
Bus 001 Device 009: ID 1d57:0008 Xenta 
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 007: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 03f0:171d Hewlett-Packard Bluetooth 2.0 Interface [Broadcom BCM2045]
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

I have tried again with following package and hope this will yield something.

Code: Select all

terry@terry-HP-Pavilion-dv9000-GH837EA-ABU:~$ sudo apt install git dkms build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
dkms is already the newest version (2.3-3ubuntu9.7).
git is already the newest version (1:2.17.1-1ubuntu0.4).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Code: Select all

terry@terry-HP-Pavilion-dv9000-GH837EA-ABU:~$ git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
Cloning into 'rtl8812AU_8821AU_linux'...
remote: Enumerating objects: 1680, done.
remote: Total 1680 (delta 0), reused 0 (delta 0), pack-reused 1680
Receiving objects: 100% (1680/1680), 3.77 MiB | 1.83 MiB/s, done.
Resolving deltas: 100% (1042/1042), done.
terry@terry-HP-Pavilion-dv9000-GH837EA-ABU:~$ cd rtl8812AU_8821AU_linux
terry@terry-HP-Pavilion-dv9000-GH837EA-ABU:~/rtl8812AU_8821AU_linux$ sudo make -f Makefile.dkms install
make clean
make[1]: Entering directory '/home/terry/rtl8812AU_8821AU_linux'
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-72-generic/build M=/home/terry/rtl8812AU_8821AU_linux clean
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-72-generic'
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-72-generic'
make[1]: Leaving directory '/home/terry/rtl8812AU_8821AU_linux'
mkdir -p '/usr/src/rtl8812au-4.3.14'
cp -r dkms.conf Kconfig Makefile.dkms Makefile platform core hal include os_dep '/usr/src/rtl8812au-4.3.14'
cp Makefile '/usr/src/rtl8812au-4.3.14/Makefile'
sed 's/#MODULE_VERSION#/4.3.14/' dkms.conf > '/usr/src/rtl8812au-4.3.14/dkms.conf'
dkms add -m rtl8812au -v 4.3.14 2>/dev/null || true

Creating symlink /var/lib/dkms/rtl8812au/4.3.14/source ->
                 /usr/src/rtl8812au-4.3.14

DKMS: add completed.
dkms build -m rtl8812au -v 4.3.14

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=4.15.0-72-generic KVER=4.15.0-72-generic.......
.........................
cleaning build area...

DKMS: build completed.
dkms install -m rtl8812au -v 4.3.14

rtl8812au:
Running module version sanity check.
 - Original module
   - This kernel never originally had a module by this name
 - Installation
   - Installing to /lib/modules/4.15.0-72-generic/kernel/drivers/net/

depmod............

DKMS: install completed.
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

Post results for

Code: Select all

modprobe -c | grep -i 0bda | grep 0811; lsmod | grep cfg
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

JeremyB
0811 is highlighted in red as is cfg. Not sure what this means but here is the result.

Code: Select all

HP-Pavilion-dv9000-GH837EA-ABU:~$ modprobe -c | grep -i 0bda | grep 0811; lsmod | grep cfg
alias usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in* 8812au
alias usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in* rtl8812au
cfg80211              622592  4 rtl8812au,iwl3945,iwlegacy,mac80211
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

You have 2 drivers installed for the USB, post results for

Code: Select all

dkms status
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

I'm not sure how this occurred but I guess it may be the result of several installation attempts. As you may have gathered, I am not familiar with the procedure here so please can you advise on what I should be doing to remove the additional driver?

Code: Select all

dkms status
rtl8812au, 4.3.14, 4.15.0-72-generic, x86_64: installed
rtl8812au, 4.3.8.12175.20140902+dfsg, 4.15.0-54-generic, x86_64: installed
rtl8812au, 4.3.8.12175.20140902+dfsg, 4.15.0-72-generic, x86_64: built
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

You can try

Code: Select all

sudo apt remove rtl8812au-dkms
Reboot and see if the entries for rtl8812au, 4.3.8.12175.20140902+dfsg are gone from dkms status
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

Well, that definitely worked, and to prove it here is the result.

Code: Select all

dkms status
rtl8812au, 4.3.14, 4.15.0-72-generic, x86_64: installed
Regrettably, the downside is ... the connection still doesn't make it, during my attempt to get a response I saw the LED flashing on the adapter but it failed to make that connection. The modem-router signal is very strong and well within range so what am I doing wrong?
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

Run these 2 commands and post URL

Code: Select all

wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
cat wireless-info.txt | nc termbin.com 9999
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

I have attached the archived results and hope this may be helpful. Many thanks for your continued patience!

Code: Select all

wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
--2019-12-08 14:12:47--  https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info [following]
--2019-12-08 14:12:48--  https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17452 (17K) [text/plain]
Saving to: ‘wireless-info’

wireless-info       100%[===================>]  17.04K  --.-KB/s    in 0.01s   

Last-modified header missing -- time-stamps turned off.
2019-12-08 14:12:48 (1.61 MB/s) - ‘wireless-info’ saved [17452/17452]

[sudo] password for terry:                                                   
[sudo] password for terry:        

Results saved in "/home/terry/wireless-info.txt".

Results also archived in "/home/terry/wireless-info.tar.gz", as they exceed the 19.5 kB size limit for ".txt" attachments on the Ubuntu Forums.
JeremyB I have just glanced through the info files but, oh my, how on earth do you make sense of all this? The mind boggles!!
Attachments
wireless-info.tar.gz
(10.73 KiB) Downloaded 41 times
Last edited by After8Minty on Sun Dec 08, 2019 11:49 am, edited 1 time in total.
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

Go into Network manager setting and set IPv6 to disable/ignore

Code: Select all

echo "options rtl8812au rtw_power_mgnt=0" | sudo tee /etc/modprobe.d/rtl8812au.conf
Reboot
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

Not sure if I did it right. Correct me if I'm wrong but I assumed network manager is displayed on the bottom right of the panel. When I click on the icon I get three options:- Rescan the Networks - Network Settings or Network Connections. From this list I selected Network Settings, then USB WiFi and on the 'gear-wheel' icon I selected IPv6 and switched it to off. Is this correct? I have to admit I am not very familiar with Linux Mint and Network Manager. I do confirm that after this I did restart the computer but activation of network connection failed. The LED flashes but then after a short while it goes dead.
Last edited by After8Minty on Sun Dec 08, 2019 12:27 pm, edited 1 time in total.
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

See if it will connect after

Code: Select all

sudo modprobe -r iwl3945
That should disable the internal wifi until you reboot or run sudo modprobe iwl3945
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

JeremyB - Is there any way I can copy and paste the wifi display on here without using the conventional method of screen captures? My Realtek adapter is visible but still not functioning, although it occasionally flashes as if trying to connect.
Last edited by After8Minty on Sun Dec 08, 2019 12:44 pm, edited 1 time in total.
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

The screenshot program might have an option you need
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

Brilliant - I have attached it here and hopefully you will see what is going on:-
Attachments
Screenshot from 2019-12-08 17-05-20.jpg
JeremyB
Level 20
Level 20
Posts: 11738
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by JeremyB »

Just click the toggle to the right of the Realtek wifi device and see if it turns green like the wifi toggle near the top of that popup
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

I have tried that repeatedly but it keeps failing. Annoyingly it reveals a strong wireless signal but won't connect, showing message 'Activation of network connection failed'
After8Minty
Level 2
Level 2
Posts: 51
Joined: Wed Mar 07, 2018 7:08 am
Location: England

Re: USB Wi-Fi Device Realtek RTL8811AU

Post by After8Minty »

I am using the same password as with the built in WiFi but nothing is happening. I have also tried different Realtek adapters, none of which will connect. Maybe it's a Realtek issue but unfortunately I have nothing with a different chipset to try. The frustrating thing about this is, the adapters that fail on Linux all work in Windows, but I'm keen to prove to my friends that Linux is better.
Locked

Return to “Wireless”