Tp link Archer T2U plus drivers

Thanks!
I am installing 5.10 right now. Once I am done with that, how can I install the kernel headers?

output for uname -r now:
5.10.7-3-MANJARO

Like you would anything else, from Add / Remove Software. I already mentioned how to determine which version you need. :wink:

Thanks! I am installing kernel headers right now. I’ll post a reply once I get my WiFi card working perfectly!

Hey, I’m getting an error stating:
Unable to install module rtl8821au/5.1.5.r83.g3a44070 for kernel 5.9.16-1-MANJARO: Missing kernel headers.

What am I missing here…

If you want to keep 5.9 installed, you’ll also need linux59-headers.

Also, to use a new or updated kernel / kernel module (like the driver you’re installing), you’ll need to reboot after installation.

I don’t want to, isn’t my kernel version 5.10 now…?

You’ll have to reboot in order to remove 5.9 since you’re still running it.

1 Like

I’m sorry, I realized the mistake myself. I did reboot after the kernel installation but I did not reboot after updating my kernel headers,

I’m still getting the same error…
output for pacman -Q | grep headers:

      linux-api-headers 5.8-1
      linux510-headers 5.10.7-3

output for uname -r:
5.10.7-3-MANJARO

You need to go back to Manjaro Settings Manager > Kernel, remove Linux 5.9.16-1 and reboot.

I did that, rebooted my system, then executed makepkg -si from this link: http s://aur.archlinux.org/packages/rtl8821au-dkms-git/

(remove the space)

It got executed successfully but I am still not able to use WiFi.

output for inxi -Nazy:

  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: f000 bus ID: 04:00.0 
  chip ID: 10ec:8168 
  Device-2: Samsung GT-I9070 (network tethering USB debugging enabled) 
  type: USB driver: rndis_host bus ID: 3-4:4 chip ID: 04e8:6864 
  serial: <filter> 

output for lsusb:

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 04e8:6864 Samsung Electronics Co., Ltd GT-I9070 (network tethering, USB debugging enabled)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 0461:4d81 Primax Electronics, Ltd Dell N889 Optical Mouse
Bus 001 Device 005: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Did you reboot after installing the driver?

What’s the output of:

lsmod | grep 8821au

Yes, I did reboot after installing the driver.

It did not return any output…

What were the exact commands you used to install the driver from the AUR?

I’ve got to go to bed, I’m falling over. I’ll catch you on the other side.

These were the commands:

[anurag@anurag-b450mds3h ~]$ git clone https://aur.archlinux.org/rtl8821au-dkms-git.git
fatal: destination path 'rtl8821au-dkms-git' already exists and is not an empty directory.
[anurag@anurag-b450mds3h ~]$ cd rtl8821au-dkms-git
[anurag@anurag-b450mds3h rtl8821au-dkms-git]$ makepkg -si
==> Making package: rtl8821au-dkms-git 5.1.5.r83.g3a44070-1 (Saturday 23 January 2021 05:19:19 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8812au git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl8812au ... Skipped
    dkms.conf ... Passed
==> Extracting sources...
  -> Creating working copy of rtl8812au git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> WARNING: A package has already been built, installing existing package...
==> Installing package rtl8821au-dkms-git with pacman -U...
[sudo] password for anurag: 
loading packages...
warning: rtl8821au-dkms-git-5.1.5.r83.g3a44070-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8821au-dkms-git-5.1.5.r83.g3a44070-1

Total Installed Size:  15.22 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
(1/1) loading package files                                                                                                                   [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [#######################################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> Unable to remove module rtl8821au/5.1.5.r83.g3a44070 for kernel 5.10.7-3-MANJARO: Not found in dkms status output.
:: Processing package changes...
(1/1) reinstalling rtl8821au-dkms-git                                                                                                         [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m rtl8821au -v 5.1.5.r83.g3a44070 -k 5.10.7-3-MANJARO
Error! Bad return status for module build on kernel: 5.10.7-3-MANJARO (x86_64)
Consult /var/lib/dkms/rtl8821au/5.1.5.r83.g3a44070/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m rtl8821au -v 5.1.5.r83.g3a44070 -k 5.10.7-3-MANJARO' returned 10
==> depmod 5.10.7-3-MANJARO
[anurag@anurag-b450mds3h rtl8821au-dkms-git]$ 

(I rerun them)

Okay! Good night!

I woke up with a cluster headache. took my medication and I’ll be up for a little bit. Ugh.

It failed to install.

As mentioned on the AUR page, try rtl88xxau-aircrack-dkms-git instead.

2 Likes

ohh, I wish you get well soon… I’ll try the rtl88xxau-aircrack-dkms-git

Thank you so much! the alternative package worked perfectly! I also learnt A LOT about installation in Linux and how it works. I really really appreciate your efforts!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.