How to solve Realtek RTL8723BE weak wifi signal problem in ubuntu
Realtek RTL8723BE is wireless network adapter. It will work well with windows but it will cause weak wifi signal problem in ubuntu based linux distributions. And the wifi is only works when you sit next to your modem. Realtek RTL8723BE wireless network adapter has problems in managing the antenna on Linux. This will lead the weak wifi signal problem.
Updated for Ubuntu 21.04
Solution for Realtek RTL8723BE weak wifi signal in ubuntu:
Open your terminal.To open terminal click the Dash home from unity launcher.And type terminal in the search field.And click Terminal.
Type the below command in the terminal and hit enter.
Note down the wlp number. Here (in my case) its wlp13s0
For Ubuntu 20.10 (kernel 5.8) and below:
Go to the below link and download the new driver zip file to desktop and unzip it to the desktop.
Download driver from this link Direct driver Download link to desktop and unzip it to the desktop and follow all steps.
Then in the terminal windows type the below code and press enter.
Then type the below code and press enter.
Here “rtlwifi_new-master” is extracted zip file folder name.
Then run this command.
Type and enter
sudo make install
Type your ubuntu password.
For Ubuntu 21.04 (kernel 5.11) and above:
For Ubuntu 21.04 and above users you don’t need to download the above Drivers and compile. By default Kernel 5.11 above comes with RTL8723BE wifi drivers. So just skip the above driver download, compile and install steps. After the iwconfig command just follow below commands and steps.
sudo modprobe -rv rtl8723be
Then type below line of code in your terminal and press the enter button.
sudo modprobe -v rtl8723be ant_sel=2
then type and enter.
sudo ip link set wlp13s0 up
Then type below command in terminal and enter.It will scan all networks with signal strength.
sudo iw dev wlp13s0 scan
To make the settings permanent,type below command in terminal and press enter.
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf
Just wait for 5 minutes and then restart your system. just Wait some time the signal will comes or just restart one more time . Now you will get strong wifi signal.
Note No 1: If you still not get the strong wifi signal with your antenna 2, then just replace antenna 2 with antenna 1 and try all steps. For that in command “sudo modprobe -v rtl8723be ant_sel=2” replace sel=2 with sel=1 like below.
sudo modprobe -v rtl8723be ant_sel=1
In command “echo “options rtl8723be ant_sel=2” | sudo tee /etc/modprobe.d/50-rtl8723be.conf” replace sel=2 with sel=1 like below
echo "options rtl8723be ant_sel=1" | sudo tee /etc/modprobe.d/50-rtl8723be.conf
And restart your system 2 times.
Note No 2: After your OS (Kernel) update, you need to apply these settings again to get strong signal. (Delete old extracted folder from desktop and Download new driver zip file and apply all the above steps)
Note No 3: Tested with Ubuntu 20.10 and Kernel 5.8 with our Downloaded drives.
Note No 4: Tested with Ubuntu 21.04 and Kernel 5.11 with build-in OS drives. (You don’t need to download and install wifi drivers from our site. Just skip the driver download, make and install steps and follow all other steps.). If antenna 2 not work then try with antenna 1. It will work.
Note No 5: It also work with older versions of Ubuntu and other Ubuntu Debian based Linux Distro.