Drivers for TPLINK wireless USB

Hi!. Just bought a TPLINK wireless USB adapter.

The model it’s TL-WN823N (V3)

On the oficial webpage drivers for Linux are shown, but it seems that only for kernel versions up to 4
.10

oficial page >> https://www.tp-link.com/ar/support/download/tl-wn823n/

i’ve checked for ways to get the drivers for arch linux, but a problem wth the kernel version seems to occur.

example #1,

yay RTL8192EU

Result:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.10-arch1-1/build M=/home/argenisjimort/.cache/yay/rtl8192eu-git/src/rtl8192eu-linux-driver  modules
make[1]: *** /lib/modules/5.15.10-arch1-1/build: No such file or directory.  Stop.
make: *** [Makefile:2289: modules] Error 2

You can try the git package instead then.

yay -S rtl8192eu-git

Edit: You probably used the wrong command because of upper case.
Should be:

yay -S rtl8192eu

Edit: Both are in the AUR

[ricklinux@eos-kde ~]$ yay -Ss rtl8192eu
aur/rtl8192eu-git 118.1628c74-1 (+2 0.00) 
    Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131).
aur/rtl8192eu 4.4.1-3 (+9 0.00) (Out-of-date: 2021-10-11) 
    Driver for the Realtek8192eu chipset.
[ricklinux@eos-kde ~]$ 
1 Like

Sometimes it’s best to search with yay first using yay -Ss because the name of the file has to be accurate.

1 Like

I assume you checked it had decent Linux support before buying it? :wink:

Yes indeedy, and making the search slightly less specific can also highlight useful options:

$ yay -Ss 8192EU
aur/8192eu-dkms-git r136.6a758d5-1 (+1 0.29) 
    Driver for the Realtek 8192eu chipset (DKMS)
aur/rtl8192eu-git 118.1628c74-1 (+2 0.00) 
    Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131).
aur/rtl8192eu 4.4.1-3 (+9 0.00) (Out-of-date: 2021-10-12) 
    Driver for the Realtek8192eu chipset.
aur/8192eu-dkms 114.6d2705d-1 (+12 0.33) (Orphaned) (Out-of-date: 2021-01-31) 
    Driver for the Realtek 8192eu chipset (DKMS)

DKMS driver packages are much more likely to be useful compared to the others.

2 Likes

Sadly I made the mistake of not checking decent Linux support before buying.
Anyways, my 2 cents, lsub should show which drivers to use - apparently tp-link change internals without changing the model number.

$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 003 Device 004: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 003 Device 002: ID 0557:8021 ATEN International Co., Ltd Hub
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 002: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]  <<<<<<<<<<
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So I had to install drivers for RTL8821AU

Always check the hardware info as it is the chip that matters. Sometimes the chip will even be a different vendor or as in your case a different version.

UPDATE #1:

I feel like i did’t explain the problem clearly enough.

i have tried to download all those drivers in many of the ways i’ve been suggested to.

The problems seems to be that the drivers only work up to a certain linux kernel version., as the error shown after tried to install any of them seems to suggest:

==> Starting pkgver()...
==> Starting build()...
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.10-arch1-1/build M=/home/argenisjimort/.cache/yay/rtl8192eu-git/src/rtl8192eu-linux-driver  modules
make[1]: *** /lib/modules/5.15.10-arch1-1/build: No such file or directory.  Stop.
make: *** [Makefile:2289: modules] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: rtl8192eu-git

You needed to install this one.

yay -S rtl8821au-dkms-git

tried this, and now this error occurs:

:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> ERROR: Missing 5.15.11-arch2-1 kernel modules tree for module 8821au/5.12.5.2.r113.g40dde99.

Do you have it working or not?

Edit: Try this one

yay -S rtl88xxau-aircrack-dkms-git
: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> ERROR: Missing 5.15.11-arch2-1 kernel modules tree for module rtl88xxau/r1174.3a6402e.
(3/3) Checking which packages need to be rebuilt

Okay…you have shown 3 different packages all not working? Are you running on the lts kernel or some other? Or are you not running the package install correctly?

yay -S rtl88xxau-aircrack-dkms-git

Just press enter for each entry.

Do you have kernels headers installed? Do they match the kernel version?

What is the output of:

pacman -Q | grep linux

3 Likes

I believe i just have to accept the “linux compatible” usb wireless adapter i just bought doesnt work.
Even the oficial Tp-link webpage show drivers avaliable only up to 4.10

anyways, heres my linux kernel.

Current Kernel version:

$ uname -r
5.15.10-arch1-1

and here the installation process:

$ yay -S rtl88xxau-aircrack-dkms-git
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1

  1 rtl88xxau-aircrack-dkms-git      (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): rtl88xxau-aircrack-dkms-git
  1 rtl88xxau-aircrack-dkms-git      (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: rtl88xxau-aircrack-dkms-git
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:50:51)
==> Retrieving sources...
  -> Updating rtl88xxau git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl88xxau ... Skipped
    dkms.conf ... Passed
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:51:10)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl88xxau git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl88xxau ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl88xxau git repo...
Cloning into 'rtl88xxau'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Sources are ready.
==> Making package: rtl88xxau-aircrack-dkms-git r1174.3a6402e-1 (jue 30 dic 2021 21:51:44)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Sources are ready.
 -> rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1 already made -- skipping build
 -> signal: killed
[sudo] password for argenisjimort: 
loading packages...
warning: rtl88xxau-aircrack-dkms-git-r1174.3a6402e-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)                  Old Version      New Version      Net Change

rtl88xxau-aircrack-dkms-git  r1174.3a6402e-1  r1174.3a6402e-1    0,00 MiB

Total Installed Size:  50,87 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] 
(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%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling rtl88xxau-aircrack-dkms-git       [----------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> ERROR: Missing 5.15.11-arch2-1 kernel modules tree for module rtl88xxau/r1174.3a6402e.
(3/3) Checking which packages need to be rebuilt

So it seems there is some reason why it’s not working. :thinking: It’s very strange to me as i have a lot of Tp-link WiFi cards but they are internal Pci-E cards and they use Broadcom chips.

I ask again:

Do you have kernel headers installed? Do they match the kernel version?

What is the output of:

pacman -Q | grep linux

sorry for not answering earlier. here is the output

$ pacman -Q | grep linux
archlinux-appstream-data 20211210-1
archlinux-keyring 20211028-1
lib32-util-linux 2.37.2-1
linux 5.15.10.arch1-1
linux-api-headers 5.12.3-1
linux-atm 2.5.2-7
linux-firmware 20211027.1d00989-1
linux-headers 5.15.11.arch2-1
linux-lts 5.10.88-2
util-linux 2.37.2-4
util-linux-libs 2.37.2-4

1 Like

Your kernel is 5.15.10, and your headers are 5.15.11.

linux 5.15.10.arch1-1
linux-headers 5.15.11.arch2-1

I don’t know what you’ve been doing to achieve that partial upgrade state, but UPDATE YOUR SYSTEM, reboot, and try building the package again; when yay asks you to for “packages to cleanbuild,” type A (for “All”) just in case.

EDIT - I missed that you also have the LTS kernel - you’ll probably want to install the linux-lts-headers package.

He might have done it manually. I think it would be better if he can use akm.

There may be some active IgnorePkg setting in his /etc/pacman.conf.