-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[News] Expect numerous changes to this site regarding Realtek WiFi 5 support over the next few months... #549
Comments
I have two multifunction single state Realtek WiFi 5 adapters (rtl8822bu) from Aliexpress - the Fenvi AC1300 and the Comfast CF727B. My setup isn't as noise free as the testing you've done in the speed comparison test section, but it's worth noting that the CF727B (which is USB2 only) has extremely bad 2.4GHz performance: 3-6Mbps if you're streaming audio over bluetooth, 14-25Mbps if bluetooth is rfkill blocked. The Fenvi, which will do USB3 with the modprobe flag (tested in Debian 12 with 88x2bu-20210702), was doing 17-23 Mbps on 2.4GHz with bluetooth transmitting, 80-87Mbps with bluetooth blocked.* They have similar 5GHz performance (USB2: 207-326Mbps, USB3: 220-408Mbps). I could not get the rtl8822bu to connect to more than 1 bluetooth device at the same time in Linux (I wanted to test with iperf3 while playing tuxracer with a bluetooth gamepad and headset connected; could pair both but not connect both), so that would be another thing worth mentioning if your tests come up with a similar result. Is there a way to switch from USB2 to USB3 with the in-kernel drivers? My setup was a WRT-1900AC v1 running OpenWRT 23.05.5 with iperf3. tl;dr: the correct USB answer for me is still a mt7921au with a separate CSR bluetooth adapter, but now with numbers to support that conclusion. |
Just to mention it here: rtw88 USB support has arrived in OpenWRT 24.10 (latest git head). First monitor mode / packet injection test was successful: @dubhater: great work! |
The support for USB3 for the rtl8812bu just went into kernel 6.13 rc2: The USB3 support for the rtl8812au will show up in kernel 6.14. You 'll note from the above patch the following comment:
Yes, USB3 interfering with band 1 (2.4 GHz) can be a problem. It can be best to run USB3 adapters in USB2 mode when using band 1. There are a lot of potential problems and I try to address many here at this site:
The rtl8822bu chips are locked to USB2. The rtl8812bu can do USB3. The reason for the rtl8822bu being locked has to do with interference. It has been well known since around 2012 that USB3 can and will interfere with the 2.4 GHz band. That includes wifi band 1 and bluetooth.
That is with the vendor driver, right? Have you tried with the in-kernel rtw88 driver in kernel 6.12? It would be interesting to know if you have more success with it.
Same here. Thanks for posting this information. We just need to keep spreading the word. Even with the much better in-kernel driver support for Realtek WiFi 5 based adapters, many users will still find that the Mediatek drivers are better for them as they are more feature rich. Keep in mind this simple fact: Mediatek devs develop and maintain Mediatek drivers. They will take patches from users and other developers if they are good patches but they are responsible for their drivers. On the other hand, the work to get usb support up to speed in rtw88 was not done by Realtek. It was a community effort. Realtek's USB support is BAD... it has been BAD for years and it continues to be BAD. My thoughts and mine alone: This effort to dramatically improve Realtek WiFi 5 support was because of Linux users that already have Realtek WiFi 5 based adapters. If Linux users want to buy new adapters, most users will be happier off with Mediatek based adapters. Thanks for the post. |
Thanks for the post. dubhater has worked tirelessly for over 1 year to make this happen. I think things will be stabilized and distros will have done the things they need to do by maybe around April 2025 (time for Ubuntu 25.04). USB wifi support for Linux is becoming good and is getting better. One big sore spot that I continue to warn Linux users about is to avoid adapters based on the Realtek WiFi 6 chips. The drivers are out-of-kernel and are not that good plus almost all adapters based on the Realtek WiFi 6 chips are multi-state and I can speak first hand that some are very problematic in this regard. The rtl8852/32cu chips are very bad when it comes to problems with onboard storage for the Windows driver. I am working on a vendor driver for the rtl8852/32cu chips right now and I'm pulling my hair out trying to figure out some problems. |
@morrownr |
Yes, it took many hours of testing by many testers as well as patches and retesting and more patches... and not everything is in mainline yet. There are patches waiting to get in and I'm sure there will need to be some clean up patches for things that were missed. I hope that users understand that this effort was not by Realtek but rather by Linux community members. And I hope Linux users understand that they have a choice. Mediatek developes and supports their drivers the right way and it is a way that works well for desktop/laptop users. Keep us posted with your testing. I mostly test AP and managed modes so input on monitor mode is good. |
On line 20 of usb.c it looks it will default to USB3. When I tested and enabled USB3 on the backported driver (88x2bu-20210702) the Comfast adapter wouldn't start but the Fenvi would work fine. I'll test when 6.14 makes it into OpenSuSE Tumbleweed to see how it behaves.
I acknowledge that Realtek says it's a USB2 interface, although B-Link's filing to the FCC shows USB superspeed pins in section 5.2, just like Mediatek's equivalent (but no design wins to test) MT7663BUN which also says it's limited to USB high-speed yet shows superspeed pins in section 3.1. I'll need to make a better test bench so I can exceed USB high-speed on 5GHz/80MHz. It may not be supported by the chipmaker even if it's capable (e.g. like the AMD PCIe 4.0 thing) but I will try to determine if it is.
I presume OpenSuSE uses the same kernel bluetooth firmware as everyone else. I tested bluetooth+wifi with the kernel 6.11.8 driver when I found the issue with headset+gamepad not connecting at the same time. I did not test multiple bluetooth connections using the backported driver as I assumed it would be the same as upstream. I did not make an attempt to use the vendor driver. I could try if there is a recommended OEM realtek driver source to confirm it has always been an issue. |
Isn't that a Bluetooth 5.0 feature? RTL8822B has Bluetooth 4.2. Or 4.1, even. |
In several places on this site, I make statements strongly recommending that users buy only single-function (no bluetooth) wifi adapters. I recommend this because it is a bad idea to buy multi-function adapters. I understand that it seems to be something that would work well to those that are not informed. USB3 is not mankind's greatest invention. USB2 is pretty solid but not USB3. Below is a White Paper by Intel from 2012. The paper is a report about EMI in the 2.4 GHz range caused by USB3 cables and connections. https://www.usb.org/sites/default/files/327216.pdf Yes, USB3 cables and connections create interference (undesired radio signals) in the 2.4 GHz range. Bluetooth uses 2.4 GHZ frequencies as does 2.4 GHz wifi. An extreme example, that is actually common, is when a user has an external SSD on a USB3 cable. That type of setup can take out your ability to use an external bluetooth adapter if the bluetooth adapter is in the wrong place. Another example that is fairly common is USB3 WiFi adapters in USB3 mode interfering with its own 2.4 GHz wifi signal. @dubhater has done a good job with the rtw88 usb3 drivers in that he makes a module parameter (driver options) so that users can keep their USB3 wifi adapter in USB2 mode. I could talk about this subject until you are bored to tears but I'll to wrap it up quickly as I think I have presented enough information for you to be able to research the issue more if you are interested. USB WiFi adapter makers mess things up fairly often. There are several filters that I use when making The Plug and Play List... and there are good reasons for each filter. There are no multi-state adapters in the Plug and Play List and there likely will never be. I have started a separate list for plug and play Bluetooth adapters but you need to understand that it may be best for you to put your Bluetooth usb adapter on a USB2 extension cable so that it can be placed in a location so as to reduce interference. With that said, how do I listen to music? With cables. I hope have a better understanding of the issue. |
Hello everyone,
About one year ago, Larry Finger, Bitterblue Smith and I started a project to improve Realtek WiFi 5 support on Linux. Unfortunately Larry passed away in May but others jumped in to help with one thing and then another. Bitterblue ( @dubhater ) has carried the majority of the load and I thank him for that.
What does this mean as far as changes to this site? The Plug and Play List will slowly be updated starting in 2025 to include Realtek WiFi 5 adapters that now have good support in the kernel. This will likely start happening around the time Ubuntu 25.04 is released as most of the patches should be in the kernel once work on kernel 6.14 is underway. Realtek WiFi 5 adapters are still available on the market and likely will be for many years. Additions will be made slowly because it takes time to test and determine if any specific adapter is likely to be trouble-free on Linux. I will call for your suggestions when the time is right. No multi-state (windows driver onboard) adapters will be considered. Multi-function (wifi and bluetooth) adapters will only be considered for adapters that are USB2 (and maybe not at all). I already have a small amount of adapters to add to the list but I look forward to your input.
Warning: This message is about Realtek WiFi 5 support, not WiFi 6 support. My messages warning Linux users to AVOID USB WiFi adapters that use Realtek WiFi 6 chips is still applicable. Good support for Realtek WiFi 6 USB chips could be years away if it happens at all. Please heed this WARNING and buy adapters with Mediatek chips for WiFi 6 and 7. I will do my best to keep a variety of WiFi 6 and 7 USB WiFi adapters that use Mediatek chips in the Plug and Play List so that you are aware of the better options.
Adapters with the following WiFi 5 chips are approaching what I consider to be very good support, maybe not perfect yet, in rtw88 (in-kernel):
USB : RTW8812AU, RTW8821AU, RTW8811AU, RTW8822BU, RTW8812BU, RTW8822CU, RTW8812CU, RTW8821CU, RTW8811CU, RTW8723DU
The rtl8812au and rtl8821/11au drivers just went into kernel 6.13. rtl8814au is in development and not ready at this time. Remember, if you upgrade to kernel 6.13 to check the drivers out:
If you want to try the drivers on kernels older than 6.13, I recommend going to the development repo and installing from there for the time being. This repo will automagically blacklist all conflicting in-kernel drivers so that you do not have to worry about it.
https://github.com/lwfinger/rtw88
Patches for rtw88 are still flowing into mainline so it may take a while for everything to be in place. I suspect things will be stabilized by around the time Ubuntu 25.04 is released in April.
If you have questions, please post below.
@morrownr
The text was updated successfully, but these errors were encountered: