Wifi Adapter based on rtl8812au chipset on recent Linux

It’s not easy! At least it wasn’t for me on my latest debian buster.

Unless you grab a lot of different pieces of information and make it work of course.

Let me share the endeavor.

Building the driver. After a lot of attempts with outdated source code I managed to get my adapter blinking ( https://www.martinrosselle.com/wp-content/uploads/2019/02/VID_20190227_201105.mp4) when I found this source code and managed to build it. Here are the steps:

git clone https://github.com/zebulon2/rtl8812au.git && cd rtl8812au
sudo ./dkms-install.sh

This installed the driver on debian buster (updated debian as we speak) but I couldn’t get it to connect without repeatedly asking the wpa2 code. Turns out you (probably for the first time (edited) ) need to power off the built in wifi (if that’s your case, on a laptop for instance) with: sudo iwconfig wl01 power off (replace wl01 by wlan01 or whatever in your case)

sudo dmesg and sudo journalctl -feu NetworkManager are your friends! Anything weird turns up in those logs.

Now, it seemed that wifi scanning was the real culprit for the wifi challenge from my router (again and again). ( The power off can be an issue but after a reboot it didn’t and kept working but fyi: https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/reference/snap-configuration/wifi-powersave can come in handy).

The scanning seems to be fixed by adding:

[device-mac-randomization]
wifi.scan-rand-mac-address=no

to /etc/NetworkManager/NetworkManager.conf and restarting NetworkManager with: sudo systemctl restart NetworkManager


Feb 27 20:05:18 buster NetworkManager[2448]:   [1551294318.8470] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 27 20:32:18 buster dhclient[2605]: DHCPREQUEST for 192.168.0.198 on wlx24050ff706e5 to 192.168.0.1 port 67
Feb 27 20:32:18 buster dhclient[2605]: DHCPACK of 192.168.0.198 from 192.168.0.1
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5567] dhcp4 (wlx24050ff706e5): address 192.168.0.198
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5568] dhcp4 (wlx24050ff706e5): plen 24 (255.255.255.0)
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5568] dhcp4 (wlx24050ff706e5): gateway 192.168.0.1
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5568] dhcp4 (wlx24050ff706e5): lease time 3600
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5569] dhcp4 (wlx24050ff706e5): hostname 'buster'
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5569] dhcp4 (wlx24050ff706e5): nameserver '195.130.131.1'
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5570] dhcp4 (wlx24050ff706e5): nameserver '195.130.130.1'
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5570] dhcp4 (wlx24050ff706e5): domain name 'home'
Feb 27 20:32:18 buster NetworkManager[2448]: [1551295938.5570] dhcp4 (wlx24050ff706e5): state changed bound -> bound
Feb 27 20:32:18 buster dhclient[2605]: bound to 192.168.0.198 -- renewal in 1526 seconds.


Leave a Reply

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.