USB Wifi with TP-Link T4U (AC 1300) not working on kernel 5.10

Hi everyone, after trying for multiple hours I’m here asking for guidance, I tried multiple posts from hee and SO but none works.

(see debug info on bottom)

I have a USB wifi adapter (TP Link Archer T4U / AC 1300 / High Gain Wireless MU-MIMO) and it does not work or turn on the light with my Majaro. I tried another USB adapter and it worked fine.

I already tried switching kernel to 5.12 and 5.4, installing headers and retrying a couple of tutorials, but nothing made the network list even show.

NOTE: For the output bellow I only used the T4U and not the other one, the internet I’m using is from cable

The tutorial I followed was (from archive install-rtl8812au-dkms-git-driver/52343/3 and t/third-party-wifi-driver-issues/34010) but it did not work either, none of the steps helped me.

Also, the adapter is working fine on two Windows 10 machines.

DEBUG INFORMATION

inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=906f1185-1ba5-407d-9488-09cfc5b206e5 rw quiet apparmor=1 
  security=apparmor resume=UUID=39398501-9649-4d93-bb06-2d75b79b7b5e 
  udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS_BR v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 2407 date: 07/01/2020 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 31.33 GiB used: 4.14 GiB (13.2%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: AMD Ryzen 7 3800XT bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache: 
  L2: 4 MiB bogomips: 134458 
  Speed: 4193 MHz min/max: 2200/4200 MHz boost: enabled Core speeds (MHz): 
  1: 4193 2: 4219 3: 4198 4: 4200 5: 4200 6: 4180 7: 4200 8: 4214 9: 4199 
  10: 4201 11: 4199 12: 4201 13: 4198 14: 4235 15: 4192 16: 4217 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sev_es sha_ni 
  skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp 
  succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload 
  vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr 
  xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] vendor: Gigabyte 
  driver: nvidia v: 465.31 alternate: nouveau,nvidia_drm bus-ID: 08:00.0 
  chip-ID: 10de:1f06 class-ID: 0300 
  Device-2: Logitech HD Pro Webcam C920 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 3-4.3.2:7 chip-ID: 046d:08e5 
  class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.0 
  screens: 1 
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.0x11.3") 
  s-diag: 1055mm (41.6") 
  Monitor-1: DP-0 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  Monitor-2: DP-4 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  OpenGL: renderer: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 
  v: 4.6.0 NVIDIA 465.31 direct render: Yes 
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus-ID: 08:00.1 chip-ID: 10de:10f9 
  class-ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 0a:00.4 chip-ID: 1022:1487 
  class-ID: 0403 
  Device-3: Logitech HD Pro Webcam C920 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 3-4.3.2:7 chip-ID: 046d:08e5 
  class-ID: 0102 serial: <filter> 
  Device-4: Realtek USB Audio type: USB driver: snd-usb-audio 
  bus-ID: 3-4.3.4:9 chip-ID: 0bda:402e class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: f000 bus-ID: 04:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 
  bus-ID: 4-4.4:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter> 
  IF: enp5s0f3u4u4 state: down mac: <filter> 
  IF-ID-1: br-13ee87304115 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  IF-ID-2: docker0 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Permissions: Unable to run lvs. Root privileges required. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.38 TiB used: 256.53 GiB (18.2%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Seagate model: XPG SPECTRIX S40G 
  size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: VB431D51 temp: 40.9 C 
  scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Seagate 
  model: ST1000LM024 HN-M101MBB size: 931.51 GiB block-size: physical: 512 B 
  logical: 512 B rotation: 5400 rpm serial: <filter> rev: 1.14 scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 442.18 GiB size: 434.17 GiB (98.19%) 
  used: 256.53 GiB (59.1%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  label: N/A uuid: 906f1185-1ba5-407d-9488-09cfc5b206e5 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: NO_LABEL uuid: CC43-F5A7 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 34.46 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A 
  uuid: 39398501-9649-4d93-bb06-2d75b79b7b5e 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 499 MiB fs: <superuser required> 
  label: Windows RE tools uuid: 801E446D1E445DF2 
  ID-2: /dev/sda2 maj-min: 8:2 size: 300 MiB fs: <superuser required> 
  label: SYSTEM uuid: 8A0A-D1C8 
  ID-3: /dev/sda3 maj-min: 8:3 size: 128 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-4: /dev/sda4 maj-min: 8:4 size: 914.56 GiB fs: <superuser required> 
  label: Backup Andressa uuid: 22780B96780B683D 
  ID-5: /dev/sda5 maj-min: 8:5 size: 15.05 GiB fs: <superuser required> 
  label: SAMSUNG_REC2 uuid: 3098E4CD98E492A0 
  ID-6: /dev/sda6 maj-min: 8:6 size: 1024 MiB fs: <superuser required> 
  label: SAMSUNG_REC uuid: 225A-F3BC 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-1:2 info: Logitech G413 Gaming Keyboard type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 500mA chip-ID: 046d:c33a class-ID: 0300 serial: <filter> 
  Device-2: 1-3:3 info: Initio INIC-1618L SATA type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 2mA 
  chip-ID: 13fd:0840 class-ID: 0806 serial: <filter> 
  Device-3: 1-4:4 info: TP-Link Archer T4U ver.3 type: <vendor specific> 
  driver: N/A interfaces: 1 rev: 2.1 speed: 480 Mb/s power: 500mA 
  chip-ID: 2357:0115 class-ID: 0000 serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-2:2 info: Corsair H100i Platinum type: <vendor specific> 
  driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 64mA 
  chip-ID: 1b1c:0c15 class-ID: 0000 serial: <filter> 
  Hub-4: 3-4:3 info: Realtek Dell dock ports: 5 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5487 class-ID: 0900 
  Hub-5: 3-4.3:5 info: Realtek Dell dock ports: 6 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5413 class-ID: 0900 
  Device-1: 3-4.3.2:7 info: Logitech HD Pro Webcam C920 type: Video,Audio 
  driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s 
  power: 500mA chip-ID: 046d:08e5 class-ID: 0102 serial: <filter> 
  Device-2: 3-4.3.3:8 info: Holtek E-Signal LUOM G10 Mechanical Gaming Mouse 
  type: Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 04d9:a09f class-ID: 0300 
  Device-3: 3-4.3.4:9 info: Realtek USB Audio type: Audio 
  driver: snd-usb-audio interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 0bda:402e class-ID: 0102 serial: <filter> 
  Device-4: 3-4.3.5:10 info: Dell Dell dock type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 413c:b06f class-ID: 0300 
  Device-5: 3-4.5:6 info: Dell Dell dock type: HID driver: hid-generic,usbhid 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 413c:b06e 
  class-ID: 0300 
  Device-6: 3-6:4 info: ASUSTek AURA LED Controller type: HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA 
  chip-ID: 0b05:18f3 class-ID: 0300 serial: <filter> 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-7: 4-4:2 info: Realtek Dell dock ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 0bda:0487 class-ID: 0900 
  Hub-8: 4-4.3:3 info: Realtek Dell dock ports: 4 rev: 3.1 speed: 5 Gb/s 
  chip-ID: 0bda:0413 class-ID: 0900 
  Device-1: 4-4.4:4 info: Realtek RTL8153 Gigabit Ethernet Adapter 
  type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s 
  power: 288mA chip-ID: 0bda:8153 class-ID: 0000 serial: <filter> 
  Hub-9: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-10: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-11: 7-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-12: 8-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 43.6 C mobo: 0 C gpu: nvidia temp: 43 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 370 Uptime: 19m wakeups: 0 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: 1132 pacman: 1120 lib: 301 flatpak: 0 
  snap: 12 Shell: Zsh v: 5.8 running-in: xfce4-terminal inxi: 3.3.04

sudo lshw -C network (it is enp5s0f3u4u4, and weird enough it shows as ethernet device where the other show wireless something)

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: enp4s0
       version: 26
       serial: 24:4b:fe:0c:86:79
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.10.42-1-MANJARO duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.15.7 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:35 ioport:f000(size=256) memory:fc604000-fc604fff memory:fc600000-fc603fff
  *-network
       description: Ethernet interface
       physical id: 2
       bus info: usb@4:4.4
       logical name: `enp5s0f3u4u4`
       serial: 98:e7:43:2e:d2:3b
       size: 10Mbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.11.11 duplex=half firmware=rtl8153b-2 v1 10/23/19 link=no multicast=yes port=MII speed=10Mbit/s

pacman -Qsq ^linux | grep ^linux | grep -viE ‘api|firm|nvidia’ && echo Running Kernel $(uname -r)

    linux510
    linux510-headers
    linux510-virtualbox-host-modules
    linux512
    linux512-headers
    linux512-virtualbox-host-modules
    linux54
    linux54-headers
    linux54-virtualbox-host-modules
    Running Kernel 5.10.42-1-MANJARO