RTL88x2BU Unstable WiFi Connection


Try disabling IPv6.

Add the following kernel boot parameter to grub:

ipv6.disable=1

The following command will automatically add the above kernel boot parameter to /etc/default/grub:

sudo cp /etc/default/grub /etc/default/grub.bak && sudo sed '/^GRUB_CMDLINE_LINUX_DEFAULT=/s/"$/ ipv6.disable=1"/g' -i /etc/default/grub

After adding the boot parameter, run:

sudo update-grub 

Then reboot


Have you tried the adapter on different USB ports, USB2 vs USB3?



Have you rebooted your router?



Try locking your Wifi connection to your AP’s SSID in network manager.

You can do this in Network Manager’s “Wi-Fi” tab in your WiFi connection’s properties settings.

There is a “BSSID” drop down field where you can select and lock your home Wi-Fi to a single BSSID.

After modifying Network Manager’s configuration, reboot both your router and your computer.


Select a fixed wifi channel in your router settings.


Select a single band in your router settings, 2.4 or 5MHz not both.

Test your wifi on the 2.4 MHz band, and be sure you have separate BSSID’s for the 2.4 and 5 MHz bands set in your router.


Test your connection with wifi encryption temporarily disabled. This is only a troubleshooting step. Never leave your wifi security disabled for an extended period of time.


Edit:


Enable Network Manager’s debugging mode with the following command:

echo -e "[logging]\nlevel=DEBUG" | sudo tee /etc/NetworkManager/conf.d/00-defaults.conf

This will give you a far more in depth logging.

Open a Network Manager live log session.

The command below will output a live log detailing your network’s current activities. Open a live Network Manager debugging log session via this command:

journalctl -fu NetworkManager 

Let the command run in the terminal, logging all current network activities.

Connect to your network and perform some large downloads to generate some useful log information.

Log at least 25-50 lines of output around times when your connection was dropped.

Copy the output from the terminal and post any important looking excerpts from the log (especially around failure events).

In another terminal tab/window you can also run:

journalctl -f _COMM=wpa_supplicant

You may want to test iwd in place of wpa_supplicant.


Try changing the channel bandwidth to 20MHz in your router.


Do you have a spare router, (or can you borrow one) to swap in temporarily? Please don’t tell me it works fine with Windows.


Run the following command:

sudo systemctl stop NetworkManager; sudo modprobe -r 88x2bu; sleep 3; sudo modprobe 88x2bu rtw_power_mgnt=0 rtw_ips_mode=0 rtw_enusbss=0; sleep 3; sudo systemctl start NetworkManager

If your connectivity is improved using the above command, then make these driver options permanent with:

echo "options 88x2bu rtw_power_mgnt=0 rtw_ips_mode=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/88x2bu.conf

Reboot.


2 Likes