Daily Dairy

Install Realtek rtl8723be Wifi Drivers in Arch Linux.

First of all make sure that the necessary packages are installed.

 $ sudo pacman -S base-devel git linux-headers iw rfkill wireless_tools

Then, clone the lwfinger/rtlwifi_new repository and checkout the rock.new_btcoex branch.

$ git clone https://github.com/lwfinger/rtlwifi_new.git
$ cd rtlwifi_new
$ git checkout rock.new_btcoex

Now, build the drivers and install the modules.

$ make clean && make
$ sudo make install

If sudo make install succeeds, update your initramfs.

$ sudo mkinitcpio -p linux

Then, reboot your system to make sure you are running the new module.
After rebooting, you can now examine which antenna port is connected by loading the module with a specific antenna, scanning for networks and comparing the scan results.
Open vim /etc/modprobe.d/rtl8723be.conf. You will see like:

options rtl8723be fwlps=N ips=N swlps=N swenc=Y disable_watchdog=1 ant_sel=X

In my case, ant_sel=1 provided a lot more networks with much higher signal strength than ant_sel=2. Finally, you can append the correct ant_sel parameter in your /etc/modprobe.d/rtl8723be.conf, where X is your antenna number.
You can set it using commands:

$ sudo rmmod rtl8723be
$ sudo modprobe rtl8723be ant_sel=1
$ sudo iwlist wlan0 scan
$ sudo rmmod rtl8723be
$ sudo modprobe rtl8723be ant_sel=2
$ sudo iwlist wlan0 scan

I hope this helps!
Thanks. 🙂

6 thoughts on “Install Realtek rtl8723be Wifi Drivers in Arch Linux.”

  1. hello, I have an issue with Realtek chipset mini pci card both wifi/bluetooth see webpage for details: http://www.shuttle.eu/products/xpc-accessories/wln-p/ – I use Antergos with KDE desktop and recently reinstalled after a problem with the latest Antergos iso, everything works and wifi is working and connected to internet etc but bluetooth does not start, I have queried on konsole using bluetoothctl and one of the outputs is: “hci0(btusb) : bluetooth, not connected”. Antergos have told me to recompile the drivers, but this is not something I have ever done. Do you have any suggestions? Many thanks if you can assist! Best regards Philip Mirabelli


  2. worked for me , but with no rtl8723be.conf i had to comment ## that line to be working, and also not working the “git checkout rock.new_btcoex” i had to delete the directory and restart the git download , than it worked,
    now I have Bluetooth working flawlessly
    WIFI was ok before but now is it even more stable!!
    many thanks for this post 🙂


  3. What about wifi not working after waking up from suspend?
    I’m having this issue. My wireless card is RTL8723BE too.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s