Realtek RTL8723BE weak wifi signal and disconnects [duplicate]

Model: HP 15-af030ur inside Realtek RTL8723B
*ware: 2 years have problems under Linux Ubuntu 14.04LTS -> 16.04LTS -> 17.04 Gnome 3.24 wayland
Problem: weak wifi signal problem in ubuntu based linux distributions, but work well with windows

try all solutions, nothing help


Solution 1:

And finally I found a solution that works for me (checked on 2 laptops of same model with different versions of Ubuntu: 16.04LTS and 17.04)

  1. Open Terminal, and enter:

    iwconfig
    

    And note down the wl* number.

  2. Download the new driver rock.new_btcoex from Github and unzip it to Desktop folder.

  3. In Terminal, now run these commands:

    cd Desktop/rtlwifi_new-rock.new_btcoex
    make
    sudo make install` type your ubuntu password
    sudo modprobe -rv rtl8723be
    sudo modprobe -v rtl8723be ant_sel=2
    sudo ip link set wl* up` use your **wl* number**
    sudo iw dev wl* scan` same
    

To make the settings permanent, use this command:

echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf

Note: After your OS (Kernel) update, you need to apply these settings again to get a strong signal.