2

I've been struggling with this nightmare since a long time, and I am ready to give up.

I have tried a plethora of drivers, from TP-Link themselves, the rtl8812AU driver included in Ubuntu, and a number of community forks, and nothing seem to help.

UPDATE 2: Yes, I've been looking at this askubuntu solution but it is several years old, and didn't help me anyway.

Regardless the driver, the USB adapter would connect to a specific network, named "Gasten" in the logs. It will NOT, however, connect to the other network named "test" in the logs. The most weird behaviour I have ever seen is that once the adapted failed to connect to a network, it wouldn't connect to the "Gasten" network anymore either! The only remedy to fix this would be to unplug and replug the adapter, and it then would connect just normal.

My wireless-info.txt is here.

UPDATE: I am currently using the driver found at this repo.

And an excerpt of syslog follows to illustrate failure to re-connect to "Gasten" after it failed to connect to "test" is here. This log excerpt is the result of:

  1. Connecting the adapter to USB, and automatically connecting to "Gasten" (timestamp Aug 21 14:39:23) on a FritzBox router.
  2. Trying to connect to network "test", on a D-Link DAP-2553 AP (Timestamp Aug 21 14:39:46)
  3. After that failed, the system automatically trying to connect to "Gasten" again (timestamp Aug 21 14:40:16) but eventually failing.
  4. Unplugging the adapter (timestamp Aug 21 14:40:46)
  5. Replugging the adapter and automatically connecting to "Gasten" again. (timestamp Aug 21 14:41:29)

Please pay special attention to log lines similar to this:

Aug 21 14:39:47 Dianas-Laptop wpa_supplicant[16449]: wlx503eaa6208a7: Association request to the driver failed

Google this and you'll find Launchpad bugs and other entries from as old as 10 years!

What the hell is going on!?

Needless to say, this bloody laptop (HP 250 G4) gave me grief with Linux connectivity since the most hellish decision ever to get this thing...

And of course, all other devices in my household are just fine connecting to the "test" network... :-(

Thanks, Michel

6

We have a winner!

There is - for all I know - only ONE repository that did it for my configuration:

  1. HP 250 G4 (might be irrelevant)
  2. USB Wifi adapter TP-Link AC1300, Model No. "Archer T4U(EU)", Version 2.0
  3. Ubuntu 18.04.1 bionic beaver, kernel 4.15.0-32-generic

Repository to use: gnab's rtl8812au repository - it forks Realtek's open source driver 4.2.2

Installation:

All instructions are in essence available at gnab's repository, but for the impatient here they are. They require a working internet connection to clone his repository! Obviously, you need to have a dev env and DKMS installed (instructions for that omitted here)

cd /tmp
git clone https://github.com/gnab/rtl8812au.git gnab_rtl8812au
cd gnab_rtl8812au
make
sudo insmod 8812au.ko

At this point you should be able to use your adapter properly.

To add it to any new kernels installed by Ubuntu, configure it via DKMS as follows:

cd /tmp
sudo cp -R gnab_rtl8812au /usr/src/8812au-4.2.2
sudo dkms add -m 8812au -v 4.2.2
sudo dkms build -m 8812au -v 4.2.2
sudo dkms install -m 8812au -v 4.2.2

That's it!

  • Great! Works for me – ilFonta Oct 31 '18 at 13:38
  • For those using Ubuntu 19.04 and up all that you have to do is: $ sudo apt install rtl8812au-dkms Since the drivers are already in the Ubuntu repo. – faustor21 Jul 28 at 13:35
  • you say 'obviously' but nothing is obvious to the right person - punters will want to install DKMS before running the make command: sudo apt install dkms -y (the -y is to auto-yes the installation) – Abraham Brookes Nov 17 at 5:13
2

I just leave it here: https://github.com/Red-Eyed/TP-LINK_Archer_T4U_v3

Repository for V3 and linux kernel 5
Works on Ubuntu 19.04

  • you saved my live!!! Thank you!! – Michel Andrade Jun 11 at 1:28
  • it runs without an error but the wifi adaptor can't find any network – Farhad Aug 10 at 4:54
  • Please, place issue on github with steps to reproduce. – RedEyed Aug 12 at 9:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.