8821au-20210708
8821au-20210708 copied to clipboard
(solved) Can I use 2 wifi adaptors on the my laptop on linux?
$ sudo uname -a
Linux xfce 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ mokutil --sb-state
SecureBoot disabled
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f3:0c00 Elan Microelectronics Corp. ELAN:ARM-M4
Bus 001 Device 004: ID 30c9:0013 DJKCVA1WSD73IE HP TrueVision HD Camera
Bus 001 Device 007: ID 2357:0120 TP-Link 802.11ac WLAN Adapter
Bus 001 Device 006: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ dkms status
8812au, 5.6.4.2_35491.20191025, 5.15.0-41-generic, x86_64: installed
rtl8821au, 5.12.5.2, 5.15.0-41-generic, x86_64: installed
$ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XX:XX:XX:XX:XX:XX
type managed
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
Can I install my TP-Link Adapter on wlo2 interface?
Bus 001 Device 007: ID 2357:0120 TP-Link 802.11ac WLAN Adapter
This device is TP-Link T2U Plus
I want this to be on wlo2
Hi @LowNightSnack
Can I use 2 wifi adaptors on the my laptop on linux?
Yes. The one thing to be aware of is if you try to use 2 adapters based on the same Realtek chipset. That won't work as Realtek's drivers are broken in this regard. You can have several wifi adapters working on a computer and it can be a mix of Mediatek and Realtek based adapters or all Mediatek and it will work as long as no two Realtek adapters have the same chipset.
$ dkms status 8812au, 5.6.4.2_35491.20191025, 5.15.0-41-generic, x86_64: installed
You need to uninstall the above driver as it has code to support the 8811cu/21cu chipset, the same as this driver so there will be a complict and things won't work as expected.
Can I install my TP-Link Adapter on wlo2 interface?
It is possible to set and lock a wifi interface name but that is not a function of the driver. I can show you how if you wish.
Regards
Thanks!
$lspci
...
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter
...
So apparently I have a Realtek internal wifi adapter. I want to switch this to my external Realtek wifi adapter. Is there a sequence of commands to let me do that?
Preferably, I would like to turn off wlo1 and turn on wlo2 and vice versa. (with wlo1 interfacing my internal card and wlo2 interfacing my external adapter)
So apparently I have a Realtek internal wifi adapter.
It appears that you do. Before we work on anything else, we really need to get rid of that old driver you have installed. Run the following:
$ sudo dkms remove -m 8812au -v 5.6.4.2_35491.20191025 --all
Next run and post the output of:
$ dkms status $ lsmod
Next reboot and then run and post the output of:
$ iw dev
That is enough for now.
$ dkms status
rtl8821au, 5.12.5.2, 5.15.0-41-generic, x86_64: installed
$ lsmod
Module Size Used by
nf_conntrack_netlink 49152 0
xfrm_user 40960 1
xfrm_algo 16384 1 xfrm_user
xt_addrtype 16384 2
br_netfilter 28672 0
ccm 20480 3
xt_CHECKSUM 16384 1
xt_MASQUERADE 20480 5
xt_conntrack 16384 3
ipt_REJECT 16384 2
nf_reject_ipv4 16384 1 ipt_REJECT
xt_tcpudp 20480 9
ip6table_mangle 16384 1
ip6table_nat 16384 1
iptable_mangle 16384 1
iptable_nat 16384 1
nf_nat 49152 3 ip6table_nat,iptable_nat,xt_MASQUERADE
nf_conntrack 167936 4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
nf_tables 241664 0
nfnetlink 20480 3 nf_conntrack_netlink,nf_tables
ip6table_filter 16384 1
ip6_tables 32768 3 ip6table_filter,ip6table_nat,ip6table_mangle
iptable_filter 16384 1
bpfilter 16384 0
bridge 299008 1 br_netfilter
stp 16384 1 bridge
llc 16384 2 bridge,stp
aufs 262144 0
overlay 143360 0
snd_hda_codec_hdmi 73728 1
snd_sof_pci_intel_cnl 16384 0
snd_sof_intel_hda_common 98304 1 snd_sof_pci_intel_cnl
nls_iso8859_1 16384 1
soundwire_intel 40960 1 snd_sof_intel_hda_common
soundwire_generic_allocation 16384 1 soundwire_intel
soundwire_cadence 36864 1 soundwire_intel
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_pci 20480 2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 139264 2 snd_sof_pci,snd_sof_intel_hda_common
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
snd_hda_ext_core 32768 3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match 61440 2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
soundwire_bus 86016 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
snd_soc_core 327680 4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_hda_codec_realtek 147456 1
snd_compress 24576 1 snd_soc_core
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
ac97_bus 16384 1 snd_soc_core
intel_tcc_cooling 16384 0
ledtrig_audio 16384 2 snd_hda_codec_generic,snd_sof
mei_hdcp 24576 0
intel_rapl_msr 20480 0
snd_pcm_dmaengine 16384 1 snd_soc_core
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
snd_hda_intel 53248 3
coretemp 24576 0
snd_intel_dspcfg 28672 2 snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 155648 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
kvm_intel 372736 0
snd_hda_core 106496 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 135168 10 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
rtw88_8723de 16384 0
kvm 991232 1 kvm_intel
rtw88_8723d 73728 1 rtw88_8723de
crct10dif_pclmul 16384 1
snd_seq_midi 20480 0
rtw88_pci 32768 1 rtw88_8723de
snd_seq_midi_event 16384 1 snd_seq_midi
joydev 32768 0
i915 3002368 16
ghash_clmulni_intel 16384 0
snd_rawmidi 45056 1 snd_seq_midi
rtw88_core 253952 2 rtw88_8723d,rtw88_pci
uvcvideo 106496 0
mac80211 1228800 2 rtw88_pci,rtw88_core
ttm 86016 1 i915
snd_seq 73728 2 snd_seq_midi,snd_seq_midi_event
aesni_intel 376832 2
videobuf2_vmalloc 20480 1 uvcvideo
drm_kms_helper 303104 1 i915
crypto_simd 16384 1 aesni_intel
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 32768 1 uvcvideo
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
processor_thermal_device_pci_legacy 16384 0
videobuf2_common 77824 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
cec 61440 2 drm_kms_helper,i915
processor_thermal_device 20480 1 processor_thermal_device_pci_legacy
hp_wmi 20480 0
videodev 249856 3 videobuf2_v4l2,uvcvideo,videobuf2_common
rc_core 61440 1 cec
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
processor_thermal_rfim 24576 1 processor_thermal_device
rapl 20480 0
sparse_keymap 16384 1 hp_wmi
platform_profile 16384 1 hp_wmi
input_leds 16384 0
intel_cstate 20480 0
serio_raw 20480 0
wmi_bmof 16384 0
mc 61440 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
intel_wmi_thunderbolt 20480 0
efi_pstore 16384 0
cfg80211 954368 2 rtw88_core,mac80211
i2c_algo_bit 16384 1 i915
snd_timer 40960 2 snd_seq,snd_pcm
processor_thermal_mbox 16384 2 processor_thermal_rfim,processor_thermal_device
ee1004 20480 0
mei_me 40960 1
fb_sys_fops 16384 1 drm_kms_helper
snd 102400 19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
processor_thermal_rapl 20480 1 processor_thermal_device
syscopyarea 16384 1 drm_kms_helper
intel_rapl_common 36864 2 intel_rapl_msr,processor_thermal_rapl
sysfillrect 20480 1 drm_kms_helper
soundcore 16384 1 snd
libarc4 16384 1 mac80211
hid_multitouch 28672 0
mei 135168 3 mei_hdcp,mei_me
intel_pch_thermal 20480 0
sysimgblt 16384 1 drm_kms_helper
intel_soc_dts_iosf 20480 1 processor_thermal_device_pci_legacy
int3403_thermal 20480 0
int340x_thermal_zone 20480 2 int3403_thermal,processor_thermal_device
int3400_thermal 20480 0
acpi_thermal_rel 16384 1 int3400_thermal
mac_hid 16384 0
wireless_hotkey 16384 0
acpi_pad 184320 0
acpi_tad 16384 0
sch_fq_codel 20480 3
ipmi_devintf 20480 0
ipmi_msghandler 122880 1 ipmi_devintf
msr 16384 0
parport_pc 53248 0
ppdev 24576 0
lp 28672 0
drm 602112 12 drm_kms_helper,i915,ttm
parport 69632 3 parport_pc,lp,ppdev
ip_tables 32768 3 iptable_filter,iptable_nat,iptable_mangle
x_tables 53248 14 ip6table_filter,xt_conntrack,iptable_filter,ip6table_nat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,ip6table_mangle,xt_MASQUERADE,iptable_mangle
autofs4 49152 2
btrfs 1503232 0
blake2b_generic 20480 0
zstd_compress 225280 1 btrfs
raid10 69632 0
raid456 163840 0
async_raid6_recov 24576 1 raid456
async_memcpy 20480 2 raid456,async_raid6_recov
async_pq 24576 2 raid456,async_raid6_recov
async_xor 20480 3 async_pq,raid456,async_raid6_recov
async_tx 20480 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor 24576 2 async_xor,btrfs
raid6_pq 122880 4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c 16384 5 nf_conntrack,nf_nat,btrfs,nf_tables,raid456
raid1 49152 0
raid0 24576 0
multipath 20480 0
linear 20480 0
hid_logitech_hidpp 49152 0
hid_logitech_dj 28672 0
usbhid 65536 1 hid_logitech_dj
hid_generic 16384 0
crc32_pclmul 16384 0
nvme 49152 3
intel_lpss_pci 24576 0
i2c_hid_acpi 16384 0
xhci_pci 20480 0
intel_lpss 16384 1 intel_lpss_pci
ahci 45056 1
r8169 86016 0
i2c_i801 36864 0
i2c_hid 32768 1 i2c_hid_acpi
i2c_smbus 20480 1 i2c_i801
realtek 32768 1
nvme_core 126976 5 nvme
libahci 40960 1 ahci
xhci_pci_renesas 20480 1 xhci_pci
idma64 20480 0
wmi 32768 3 hp_wmi,intel_wmi_thunderbolt,wmi_bmof
hid 147456 6 i2c_hid,usbhid,hid_multitouch,hid_generic,hid_logitech_dj,hid_logitech_hidpp
video 53248 1 i915
$ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XX:XX:XX:XX:XX:XX
ssid XXXX
type managed
channel 2 (2417 MHz), width: 20 MHz, center1: 2417 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
$ dkms status rtl8821au, 5.12.5.2, 5.15.0-41-generic, x86_64: installed
Good. It appears the old driver has been uninstalled.
It appears that your internal wifi card is support by the in-kernel driver RTW88. The interface leads me to think it is working fine. It can be turned off, we just have to figure out what to blacklist but first, let's try to figure out why an interface for your usb adapter is not showing up.
I see that secure boot is off. It is not clear to me why we are not getting a wifi interface for the adapter. Let check again:
$ sudo update $ sudo upgrade Make sure the usb wifi adapter is installed in a usb port. $ sudo reboot $ iw dev (port the results)
$ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XX:XX:XX:XX:XX:XX
ssid XXX
type managed
channel 1 (2412 MHz), width: 40 MHz, center1: 2422 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcoltx-bytes tx-packets
0 0 0 0 0 0 0 00
The packages that got upgraded were browsers.
Something could have went wrong during the installation so maybe we should start over. Let's uninstall the driver from this repo and try again.
Go to the driver directory and then I'll provide the installation steps here:
cd ~/src/8821au-20210708 sudo ./remove-driver.sh delete the driver directory and reboot sudo apt install -y build-essential dkms git mkdir -p ~/src cd ~/src git clone https://github.com/morrownr/8821au-20210708.git cd ~/src/8821au-20210708 sudo ./install-driver.sh reboot iw dev (post the results)
$ dkms status
rtl8821au, 5.12.5.2, 5.15.0-41-generic, x86_64: installed
$ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XX:XX:XX:XX:XX:XX
ssid XXX
type managed
channel 1 (2412 MHz), width: 40 MHz, center1: 2422 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcoltx-bytes tx-packets
0 0 0 0 0 0 0 00
Let's try a manual installation:
cd ~/src/8821au-20210708 sudo ./remove-driver.sh make clean make sudo make install sudo reboot
$ dkms status
shows no drivers
$ lsmod | grep rt
xt_addrtype 16384 2
rtw88_8723de 16384 0
rtw88_8723d 73728 1 rtw88_8723de
rtw88_pci 32768 1 rtw88_8723de
rtw88_core 253952 2 rtw88_8723d,rtw88_pci
mac80211 1228800 2 rtw88_pci,rtw88_core
cfg80211 954368 2 rtw88_core,mac80211
parport_pc 53248 0
parport 69632 3 parport_pc,lp,ppdev
x_tables 53248 14 ip6table_filter,xt_conntrack,iptable_filter,ip6table_nat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,ip6table_mangle,xt_MASQUERADE,iptable_mangle
$ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XXX
ssid XXX
type managed
channel 1 (2412 MHz), width: 40 MHz, center1: 2422 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcoltx-bytes tx-packets
0 0 0 0 0 0 0 00
Did you run the following lines?
make clean
make
sudo make install
sudo reboot
I was hoping to see the output of the second line so as to see if there are compile errors.
$ make
ake ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-41-generic/build M=/home/user/src/8821au-20210708 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-41-generic'
CC [M] /home/user/src/8821au-20210708/core/rtw_cmd.o
CC [M] /home/user/src/8821au-20210708/core/rtw_security.o
CC [M] /home/user/src/8821au-20210708/core/rtw_debug.o
CC [M] /home/user/src/8821au-20210708/core/rtw_io.o
CC [M] /home/user/src/8821au-20210708/core/rtw_ioctl_query.o
CC [M] /home/user/src/8821au-20210708/core/rtw_ioctl_set.o
CC [M] /home/user/src/8821au-20210708/core/rtw_ieee80211.o
CC [M] /home/user/src/8821au-20210708/core/rtw_mlme.o
CC [M] /home/user/src/8821au-20210708/core/rtw_mlme_ext.o
CC [M] /home/user/src/8821au-20210708/core/rtw_mi.o
CC [M] /home/user/src/8821au-20210708/core/rtw_wlan_util.o
CC [M] /home/user/src/8821au-20210708/core/rtw_vht.o
CC [M] /home/user/src/8821au-20210708/core/rtw_pwrctrl.o
CC [M] /home/user/src/8821au-20210708/core/rtw_rf.o
CC [M] /home/user/src/8821au-20210708/core/rtw_chplan.o
CC [M] /home/user/src/8821au-20210708/core/monitor/rtw_radiotap.o
CC [M] /home/user/src/8821au-20210708/core/rtw_recv.o
CC [M] /home/user/src/8821au-20210708/core/rtw_sta_mgt.o
CC [M] /home/user/src/8821au-20210708/core/rtw_ap.o
CC [M] /home/user/src/8821au-20210708/core/wds/rtw_wds.o
CC [M] /home/user/src/8821au-20210708/core/mesh/rtw_mesh.o
CC [M] /home/user/src/8821au-20210708/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/user/src/8821au-20210708/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/user/src/8821au-20210708/core/rtw_xmit.o
CC [M] /home/user/src/8821au-20210708/core/rtw_p2p.o
CC [M] /home/user/src/8821au-20210708/core/rtw_rson.o
CC [M] /home/user/src/8821au-20210708/core/rtw_tdls.o
CC [M] /home/user/src/8821au-20210708/core/rtw_br_ext.o
CC [M] /home/user/src/8821au-20210708/core/rtw_iol.o
CC [M] /home/user/src/8821au-20210708/core/rtw_sreset.o
CC [M] /home/user/src/8821au-20210708/core/rtw_btcoex_wifionly.o
CC [M] /home/user/src/8821au-20210708/core/rtw_btcoex.o
CC [M] /home/user/src/8821au-20210708/core/rtw_beamforming.o
CC [M] /home/user/src/8821au-20210708/core/rtw_odm.o
CC [M] /home/user/src/8821au-20210708/core/rtw_rm.o
CC [M] /home/user/src/8821au-20210708/core/rtw_rm_fsm.o
CC [M] /home/user/src/8821au-20210708/core/rtw_ft.o
CC [M] /home/user/src/8821au-20210708/core/rtw_wnm.o
CC [M] /home/user/src/8821au-20210708/core/rtw_mbo.o
CC [M] /home/user/src/8821au-20210708/core/rtw_rm_util.o
CC [M] /home/user/src/8821au-20210708/core/efuse/rtw_efuse.o
CC [M] /home/user/src/8821au-20210708/core/rtw_roch.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-internal.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-internal-enc.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-gcm.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-ccm.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-omac1.o
CC [M] /home/user/src/8821au-20210708/core/crypto/ccmp.o
CC [M] /home/user/src/8821au-20210708/core/crypto/gcmp.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-siv.o
CC [M] /home/user/src/8821au-20210708/core/crypto/aes-ctr.o
CC [M] /home/user/src/8821au-20210708/core/crypto/sha256-internal.o
CC [M] /home/user/src/8821au-20210708/core/crypto/sha256.o
CC [M] /home/user/src/8821au-20210708/core/crypto/sha256-prf.o
CC [M] /home/user/src/8821au-20210708/core/crypto/rtw_crypto_wrap.o
CC [M] /home/user/src/8821au-20210708/core/rtw_swcrypto.o
CC [M] /home/user/src/8821au-20210708/os_dep/osdep_service.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/os_intfs.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/usb_intf.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/usb_ops_linux.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/ioctl_linux.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/xmit_linux.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/mlme_linux.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/recv_linux.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/ioctl_cfg80211.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/rtw_cfgvendor.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/wifi_regd.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/rtw_android.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/rtw_proc.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/nlrtw.o
CC [M] /home/user/src/8821au-20210708/os_dep/linux/rtw_rhashtable.o
CC [M] /home/user/src/8821au-20210708/hal/hal_intf.o
CC [M] /home/user/src/8821au-20210708/hal/hal_com.o
CC [M] /home/user/src/8821au-20210708/hal/hal_com_phycfg.o
CC [M] /home/user/src/8821au-20210708/hal/hal_phy.o
CC [M] /home/user/src/8821au-20210708/hal/hal_dm.o
CC [M] /home/user/src/8821au-20210708/hal/hal_dm_acs.o
CC [M] /home/user/src/8821au-20210708/hal/hal_btcoex_wifionly.o
CC [M] /home/user/src/8821au-20210708/hal/hal_btcoex.o
CC [M] /home/user/src/8821au-20210708/hal/hal_mp.o
CC [M] /home/user/src/8821au-20210708/hal/hal_mcc.o
CC [M] /home/user/src/8821au-20210708/hal/hal_hci/hal_usb.o
CC [M] /home/user/src/8821au-20210708/hal/led/hal_led.o
CC [M] /home/user/src/8821au-20210708/hal/led/hal_usb_led.o
CC [M] /home/user/src/8821au-20210708/hal/HalPwrSeqCmd.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/Hal8812PwrSeq.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/Hal8821APwrSeq.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_xmit.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_sreset.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_hal_init.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_phycfg.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_rf6052.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_dm.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_rxdesc.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/rtl8812a_cmd.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/usb/usb_halinit.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/usb/rtl8812au_led.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/usb/rtl8812au_xmit.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/usb/rtl8812au_recv.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/usb/usb_ops_linux.o
CC [M] /home/user/src/8821au-20210708/hal/efuse/rtl8812a/HalEfuseMask8821A_USB.o
CC [M] /home/user/src/8821au-20210708/hal/rtl8812a/hal8821a_fw.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_debug.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_antdiv.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_soml.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_smt_ant.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_antdect.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_interface.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_phystatus.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_hwconfig.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_dig.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_pathdiv.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_rainfo.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_dynamictxpower.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_adaptivity.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_cfotracking.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_noisemonitor.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_beamforming.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_direct_bf.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_dfs.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/txbf/halcomtxbf.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/txbf/haltxbfinterface.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/txbf/phydm_hal_txbf_api.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_adc_sampling.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_ccx.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_psd.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_primary_cca.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_cck_pd.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_rssi_monitor.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_auto_dbg.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_math_lib.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_api.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_pow_train.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_lna_sat.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_pmac_tx_setting.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_mp.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/phydm_cck_rx_pathdiv.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf_debug.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halphyrf_ce.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf_powertracking_ce.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf_powertracking.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf_kfree.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/halrf_psd.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/rtl8821a/halhwimg8821a_mac.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/rtl8821a/halhwimg8821a_bb.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/rtl8821a/halhwimg8821a_rf.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/rtl8821a/halrf_8821a_ce.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/rtl8821a/phydm_regconfig8821a.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/rtl8821a/phydm_rtl8821a.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/halrf/rtl8821a/halrf_iqk_8821a_ce.o
CC [M] /home/user/src/8821au-20210708/hal/phydm/txbf/haltxbfjaguar.o
CC [M] /home/user/src/8821au-20210708/hal/btc/halbtc8821a1ant.o
CC [M] /home/user/src/8821au-20210708/hal/btc/halbtc8821a2ant.o
CC [M] /home/user/src/8821au-20210708/platform/platform_ops.o
LD [M] /home/user/src/8821au-20210708/8821au.o
MODPOST /home/user/src/8821au-20210708/Module.symvers
CC [M] /home/user/src/8821au-20210708/8821au.mod.o
LD [M] /home/user/src/8821au-20210708/8821au.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'
The output for the commands is similar: https://github.com/morrownr/8821au-20210708/issues/44#issuecomment-1193243664
That is a clean compile, exactly as we want.
I have no idea why we are not seeing a wifi interface for your usb wifi adapter. Maybe we need to clean house again and reinstall and turn on some logging:
cd ~/src/8821au-20210708 sudo ./remove-driver-no-dkms.sh make clean sudo ./install-driver.sh sudo reboot
Do you know how to turn on the logging?
No I dont know how to turn on logging.
I was looking into the official drivers provided. They dont have a linux driver on the website but then I thought that the Mac driver might have more information on the type of hardware on the adapter. I havent investigated properly. It maybe of help?
Leaving the link down below https://www.tp-link.com/in/support/download/archer-t2u-plus/
No I dont know how to turn on logging.
cd ~/src/8821au-20210708 sudo ./edit-options.sh
In the options
line, change rtw_drv_log_level=0
to rtw_drv_log_level=4
save and reboot
You can save a log file that only includes RTW log entries by running
the following in a terminal:
sudo ./save-log.sh
The name of the log file will be ```rtw.log```.
Paste the ciontents of rtw.log
here.
Tell which distro you are using.
Regards
rtw_8723de 0000:02:00.0: enabling device (0000 -> 0003)
rtw_8723de 0000:02:00.0: Firmware version 48.0.0, H2C version 0
rtw_8723de 0000:02:00.0 wlo1: renamed from wlan0
rtw_8723de 0000:02:00.0: start vif XX:XX:XX:XX:XX:XX on port 0
rtw_8723de 0000:02:00.0: sta YY:YY:YY:YY:YY:YY joined with macid 0
The save-log.sh
did not work. I used this command dmesg | cut -d"]" -f2- | grep "rtw"
btw, I found this to in dmesg
.
8821au: module verification failed: signature and/or required key missing - tainting kernel
OS:
Linux xfce 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xfce 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Well, that is the kernel, not the OS. It might help if I know the OS (distro).
8821au: module verification failed: signature and/or required key missing - tainting kernel
That is not necessarily the problem but I can't say it is not at this point.
I am using xubuntu 20
I will try to install the driver and operate my adapter in a VM. I'll post the results here. Maybe that will help
Did you see the fix for #47 ?
I am using xubuntu 20
This driver should work for xubuntu 20.04 if it was using the original version of the kernel that shipped with it which I think was 5.4 but you are now using the kernel from Ubuntu 22.04 and many parts of the dev system have changed so this is kind of a hybrid installation which makes it very difficult to work on. Is there any possibility of getting you to backup your important files so you can do a clean installation of Xubuntu 22.04?
Regards
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
I updated my xubuntu. Also i have an internal Realtek wifi card. Is that why the adapter cannot run?
❯ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 04f3:0c00 Elan Microelectronics Corp. ELAN:ARM-M4
Bus 001 Device 005: ID 30c9:0013 Luxvisions Innotech Limited HP TrueVision HD Camera
Bus 001 Device 003: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
❯ iw dev
phy#0
Interface wlo1
ifindex 3
wdev 0x1
addr XXX
ssid XXX
type managed
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
Also i have an internal Realtek wifi card. Is that why the adapter cannot run?
No. Computers can have several wifi adapters and cards running.
If I have time this afternoon, I am going to reread this thread to see if anything comes to mind.
$ dkms status
rtl8821au/5.12.5.2, 5.15.0-41-generic, x86_64: installed (WARNING! Diff between built and installed module!)
(WARNING! Diff between built and installed module!)
Never seen that before. Your issue really has me stumped. I'll keep an eye open but, for now, I have no idea what to try next.
The router is working with my system now. I have no idea how.
So in that sense, this issue seems to be solved.
SUMMARY:
I had the latest version of the linux kernel (5.15
) but my system was ubuntu 20 something.
I updated my system from ubuntu 20 to ubuntu 22 and installed the driver and that seems to have worked.
Thanks @morrownr ! Greatly appreciate your help