Configure rtl8xxxu for TP Link Wifi USB Dongle
How to handle TP-Link TL-WN823N v2/v3 on Gentoo Linux when rtl8xxxu is built into the kernel, by installing the out-of-tree RTL8192EU driver and preventing driver binding conflicts
Install net-wireless/rtl8192eu from guru repository
Install and configure useflags for sys-kernel/linux-firmware package
Create a backup of default file for linux-firmware
Replace with firmware discovered from dmesg to the active file
Confirm that our linux-firmware file contains the correct firmware lines
Create linux-firmware file for being our default savedconfig file
Recompile sys-kernel/linux-firmware to activate our new linux-firmware file
We want to store the linux-firmware-20260110 file as it is so we hit -7 to skip replacement of file
After we have booted up the system again let´s see if everything is loaded as it should be
Output from above awk command
We can also confirm everything with dmesg command and it should output same as above example
- Everything is now correct installed and we use savedconfig
Now re-plug the wifi dongle and you should see below message
dmesg
[ 4216.386854] usb 1-9.3: USB disconnect, device number 7
[ 4216.453041] rtl8192eu 1-9.3:1.0: Runtime PM usage count underflow!
[ 4217.619626] usb 1-9.3: new high-speed USB device number 8 using xhci_hcd
[ 4217.723573] usb 1-9.3: New USB device found, idVendor=2357, idProduct=0109, bcdDevice= 2.00
[ 4217.723576] usb 1-9.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4217.723578] usb 1-9.3: Product: 802.11n NIC
[ 4217.723580] usb 1-9.3: Manufacturer: Realtek
[ 4217.723582] usb 1-9.3: SerialNumber: 00e04c000001
[ 4217.783799] usb 1-9.3: RTL8192EU rev B (SMIC) romver 0, 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 4217.783804] usb 1-9.3: RTL8192EU MAC: 7c:c2:c6:06:09:e6
[ 4217.783806] usb 1-9.3: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 4217.783809] Loading firmware: rtlwifi/rtl8192eu_nic.bin
[ 4217.783950] usb 1-9.3: Firmware revision 35.7 (signature 0x92e1)
[ 4218.694186] rtl8xxxu 1-9.3:1.0 wlp0s20f0u9u3: renamed from wlan0
Configure rtl8xxxu to avoid conflicts with the builtin kernel module
Prevent rtl8xxxu from binding (important since it’s builtin)
Set stable options for 8192eu