Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Lost Connection w/ TP-Link Archer T3U USB Dongle
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cruslan
n00b
n00b


Joined: 06 Jan 2024
Posts: 26

PostPosted: Tue Feb 06, 2024 4:10 am    Post subject: [SOLVED] Lost Connection w/ TP-Link Archer T3U USB Dongle Reply with quote

Hello. I began using Gentoo over two months. I loved Gentoo due its flexible nature. I have TP-Link's Archer T3U USB Wi-Fi dongle that uses Realtek's RTL8822BU chip. I have frequent lost connection problem in this dongle. Wi-Fi connection loses by every one minute period by 2-3 seconds, it reconnects and loses again one minute. Its unnoticable while casual web usage but while in live conditions such as gaming or video conference it makes experince awful. I am not sure why it happens. I tried bunch of combinations Network Managers and Authentication Managers but none of them solves issue. Network Manager with wpa-supplicant has least issues in my fixing attempts. I mixed with Network Manager and iwd but i can't connect any Wi-Fi source or just dhcpcd with wpa-supplicant but connection problem still persists. I ran of my ideas about what can cause issue or how i can fix it. If you need any output, please tell me that. I am not sure which output should required.

I am using 6.7.3 kernel compiled with Genkernel. 1000 Hz, AMD P-state, Nuvoton 6683D Hardware Monitor for fans, RTL8822BU driver included in linux-firmware selected by hand
I use SystemD as init system and KDE Plasma as Desktop Environment
I have NetworkManager with wpa-supplicant

My computer is Desktop form, its specs are;
AMD Ryzen R5 5600,
16 GB 2x8 form 3600 MT/s RAM,
Sapphire Pulse AMD Radeon RX 6700 XT GPU,
ADATA's Legend 700 500 GB PCI-e SSD,
MSI B550-A Pro motherboard with 2023-November BIOS,

dmesg output about issue;
Code:
...
[ 3749.063343] rtw_8822bu 1-2.4:1.0: timed out to flush queue 1
[ 3749.173346] rtw_8822bu 1-2.4:1.0: timed out to flush queue 1
...
[ 3823.802966] wlan0: authenticate with <mac-adress> (local address=<mac-adress>)
[ 3823.868389] wlan0: send auth to <mac-adress> (try 1/3)
[ 3823.869661] wlan0: authenticated
[ 3823.870248] wlan0: associate with <mac-adress> (try 1/3)
[ 3823.871376] wlan0: RX AssocResp from <mac-adress> (capab=0x11 status=0 aid=2)
[ 3823.875798] wlan0: associated
[ 3823.906549] wlan0: Limiting TX power to 0 (-128 - 0) dBm as advertised by <mac-adress>
[ 3884.078965] wlan0: deauthenticating from <mac-adress> by local choice (Reason: 3=DEAUTH_LEAVING)
[ 3889.337275] wlan0: authenticate with <mac-adress>(local address=<mac-adress>)
[ 3889.403171] wlan0: send auth to <mac-adress> (try 1/3)
[ 3889.404439] wlan0: authenticated
[ 3889.405026] wlan0: associate with <mac-adress> (try 1/3)
[ 3889.406215] wlan0: RX AssocResp from <mac-adress> (capab=0x11 status=0 aid=2)
[ 3889.410638] wlan0: associated
[ 3889.443028] wlan0: Limiting TX power to 0 (-128 - 0) dBm as advertised by <mac-adress>
...
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 329

PostPosted: Tue Feb 06, 2024 6:34 am    Post subject: Reply with quote

show lsusb so people can see devid and vendorid

I run this driver https://github.com/RinCat/RTL88x2BU-Linux-Driver It works with current lts 6.6.13. Will it work with 6.7 – idk.

Before trying this driver, you must ensure your device's devid and vendorid are present here https://github.com/RinCat/RTL88x2BU-Linux-Driver/blob/master/os_dep/linux/usb_intf.c If not then the driver will not work.
Back to top
View user's profile Send private message
Cruslan
n00b
n00b


Joined: 06 Jan 2024
Posts: 26

PostPosted: Tue Feb 06, 2024 7:16 am    Post subject: Reply with quote

Here it is, lsusb output;
Code:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 0c45:7643 Microdia Gaming Mouse
Bus 001 Device 005: ID 045e:0750 Microsoft Corp. Wired Keyboard 600
Bus 001 Device 007: ID 1462:7c56 Micro Star International MYSTIC LIGHT
Bus 001 Device 009: ID 2357:0604 TP-Link TP-Nmnk UB500 Adapter
Bus 001 Device 010: ID 2357:012d TP-Link Archer T3U [Realtek RTL8812BU]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 04e8:a051 Samsung Electronics Co., Ltd USBC Headset
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub


Also my device present in code. I compiled it, blocked linux-firmware variant and it works, sort of. It shows some 2.4 GHz and 5 GHz access points but not mine. When changed 2.4 GHz it can connect, while in 5 GHz it wont. I believe its sort of problem by country's standarts. I will dig more.
Back to top
View user's profile Send private message
Cruslan
n00b
n00b


Joined: 06 Jan 2024
Posts: 26

PostPosted: Fri Mar 22, 2024 2:07 am    Post subject: Reply with quote

I finally found a solution for my problem. I am still using linux-firmware included driver. Create a blank file with .conf suffix to /etc/modprobe.d and add this line in file, after that restart your device:
Code:
options cfg80211 ieee80211_regdom=CA


This solution comes from this article, there is other options available if you encounter with different brand of Wi-Fi devices; https://forums.gentoo.org/viewtopic-p-7451652.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum