- Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora
- Step 1:
- Ubuntu :
- Debian:
- Step 2:
- Common steps for all three OSes.
- Step 3:
- Ubuntu and Debian
- Fedora
- Step 4:
- Common Steps
- Share this:
- Like this:
- Related
- Published by CV
- 36 thoughts on “ Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora ”
- How to Install Realtek Wifi Drivers in Ubuntu 22.04 | Linux Mint 21/20
- How to Tell Which Wi-Fi Chipset you have?
- Install Realtek Wi-Fi Driver from PPA:
- Step 1: Disable Secure Boot
- Step 2: Add the Ubuntu PPA
- Step 3: Update the cache
- Step 4: Select install driver package for your chipset
- Step 5: Load the driver (Kernel Module)
- How to Uninstall:
- How do I get a Realtek RTL8723BE wireless card to work?
Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora
I have been searching for a fix for the wifi problems in my HP Pavillion ab-028tx. It’s having a Realtek rtl8723be Wifi Card. For a long time, there was no perfect driver for this device. I tried many drivers and none of them fixed the disconnection and low wifi range problems. At last, I found a fix from ubuntu forums. Follow these steps to get your wifi working in Ubuntu.
- Get into your BIOS(in my case I had to press f10 after turning on my laptop). Then go into System Configuration->Boot options and Disable secure boot. This is very important as third party drivers won’t work in secure boot mode as they are not verified.
- Save and restart(f10), open up a terminal (ctrl + alt + t) and type the following commands in order.
- Installing new driver for the Realtek wifi chip.
Note: its suggested to have latest kernel installed(Linux kernel 4+).
Step 1:
Ubuntu :
$ sudo add-apt-repository ppa:hanipouspilot/rtlwifi $ sudo apt-get update $ sudo apt-get install rtlwifi-new-dkms linux-firmware
Debian:
$ sudo apt-get install firmware-realtek
Step 2:
Common steps for all three OSes.
- If you are not able to see your wifi networks, follow the steps below :
- Download the driver by clicking “Download ZIP” from GitHub.(Note that the GitHub driver must be the master branch) or clone the driver by using the link https://github.com/lwfinger/rtlwifi_new.git
- extract it to your home directory and open a terminal.
- Execute the following commands :
Step 3:
Ubuntu and Debian
$ sudo apt-get install linux-headers-$(uname -r) gcc g++ build-essential dkms git $ sudo reboot $ cd rtlwifi_new-rock.new_btcoex $ make $ sudo make install $ sudo modprobe -rv rtl8723be
Fedora
$ sudo dnf install kernel-devel kernel-headers $ cd rtlwifi_new-rock.new_btcoex $ make $ sudo make install $ sudo modprobe -rv rtl8723be
Step 4:
Common Steps
$ sudo modprobe -v rtl8723be ant_sel=2
- note : try changing ant-set=1 or 0 if it doesn’t work for u.
- Now your Wifi will be working perfectly as in windows, now set input #2 as permanent.
$ echo "options rtl8723be ant_sel=2
fwlps=0
" | sudo tee /etc/modprobe.d/rtl8723be.conf$ sudo modprobe -r rtl8723be
Share this:
Like this:
Related
Published by CV
36 thoughts on “ Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora ”
Lorenzo Del Bello says:
Sorry, when I type: $ sudo apt-get install linux-headers-$(uname -r) gcc g++ build-essential dkms git I receive the following message: E: Unable to locate package rtl8723be Please, can someone explain me what’s wrong?
Many thanks in advance! Like Liked by 1 personWorks Perfect on latest Fedora 27 Kernel . just pull it from git with “git clone https://github.com/lwfinger/rtlwifi_new” instead of downloading, to avoid “This branch is abandoned” message Like Liked by 1 person
make[1]: Entering directory ‘/usr/src/linux-headers-5.5.0-0.bpo.2-amd64’
/bin/sh: 2: cannot create /home/mahmut/rtlwifi_new-rock.new_btcoex/btcoexist/modules.order: Permission denied
make[4]: *** [/usr/src/linux-headers-5.5.0-0.bpo.2-common/scripts/Makefile.build:402: /home/mahmut/rtlwifi_new-rock.new_btcoex/btcoexist/modules.order] Error 2
make[3]: *** [/usr/src/linux-headers-5.5.0-0.bpo.2-common/scripts/Makefile.build:508: /home/mahmut/rtlwifi_new-rock.new_btcoex/btcoexist] Error 2
make[2]: *** [/usr/src/linux-headers-5.5.0-0.bpo.2-common/Makefile:1707: /home/mahmut/rtlwifi_new-rock.new_btcoex] Error 2
make[1]: *** [/usr/src/linux-headers-5.5.0-0.bpo.2-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.5.0-0.bpo.2-amd64’
make: *** [Makefile:57: all] Error 2
help Like LikeThank you very much for the post!, there is only one small problem on Step 1; the http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu artful Release repository, can not be updated safely and is deactivated, it does not have posting file Release “sudo add-apt-repository ppa:hanipouspilot/rtlwifi”.
Thank you so much! Like Liked by 1 personOk, following Step 2, Step 3 and Step 4 with the master branch, and antenna 2. Thanks a lot! Like Liked by 1 person
Hola, yo andaba con ese problema en Debian, no me funciono la solucion de este post, pero esta si: https://github.com/roopansh/rtl8723be_wifi Like Like
Hello, how do i get know which driver is installed? I am new at Linux specially a kernel modifications, but i do this:
[eugenious@cumputer ~]$ modinfo rtl8723ae
filename: /lib/modules/4.14.11-300.fc27.x86_64/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rtl8723ae.ko.xz
firmware: rtlwifi/rtl8723efw.bin
description: Realtek 8723E 802.11n PCI wireless
license: GPL
author: Realtek WlanFAE
author: lizhaoming
alias: pci:v000010ECd00008723sv*sd*bc*sc*i*
depends: rtlwifi,rtl8723-common,rtl_pci,btcoexist
name: rtl8723ae
vermagic: 4.14.11-300.fc27.x86_64 SMP mod_unload
parm: swenc:Set to 1 for software crypto (default 0)
(bool)
parm: ips:Set to 0 to not use link power save (default 1)
(bool)
parm: swlps:Set to 1 to use SW control power save (default 0)
(bool)
parm: fwlps:Set to 1 to use FW control power save (default 1)
(bool)
parm: msi:Set to 1 to use MSI interrupts mode (default 0)
(bool)
parm: debug:Set debug level (0-5) (default 0) (int)
parm: disable_watchdog:Set to 1 to disable the watchdog (default 0)
(bool)
parm: ant_sel:Set to 1 or 2 to force antenna number (default 0)
(int) It feels like still loaded default driver. At least on speedtest.net i am still getting like 20-30% of my real speed.
(My Android phone getting 100% as i have in contract with my net provider)
Also, my fedora ofc like 2-3 times a week getting new kernel update, and obliviously i have to reinstall this driver everytime. But i am ok. Like Liked by 1 personI’m unable to view any wifi networks when I restart my laptop. But I can view them when I enter these commands
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2
Should I execute these whenever I login? Is there any permanent solution? Like Liked by 1 personHow to Install Realtek Wifi Drivers in Ubuntu 22.04 | Linux Mint 21/20
Linux Kernel keeps updating with new device drivers. But, there are still some devices lack out-of-box support. Thanks to the open-source community, there are always a group of people maintaining missing drivers.
How to Tell Which Wi-Fi Chipset you have?
Firstly, you may want to find out the device name of your wireless network card. In Ubuntu or Linux Mint, you may just search for and open “hardinfo” (aka, System Profiler and Benchmark) either from start menu or ‘Activities’ overview.
Install "hardinfo" via Ubuntu Software or Synaptic Package Manager if you don't have it.
When it opens, navigate to “Devices -> PCI Devices“. Then, find out the network controller information in the right. For USB Wi-Fi adapter, go find it under “Devices -> USB Devices“.
For those familiar Linux command, use lspci command to find integrated network card or lsusb for USB adapter:
Install Realtek Wi-Fi Driver from PPA:
There’s a github repository that maintains RTL8822BE, RTL8822CE, RTL8821CE, RTL8723DE, RTL8723AU, RTL8723BU, RTL8188EU driver source codes. Advanced users may go to that page, grab the source and build by yourself.
To make life easier, the kablosuz-wireless PPA maintains the driver packages for:
- rtl8723bu, rtl8822bu, rtl8188eu, rtl8188eus, rtl8188fu, rtl8188gu, rtl8192cu, rtl8192du, rtl8192ee, rtl8192eu, rtl8192fu, rtl8723au, rtl8723bu, rtl8723de, rtl8723ds, rtl8723du, rtl8812au, rtl88XXau, rtl8814au, rtl8821ce, rtl8821cu, rtl8822bu, rtl8822ce, rtl8852au, rtw88, and rtw89.
The guy also maintains another PPA with packages for:
- r8101, r8125, RTL8152/RTL8153/RTL8156, r8168, rts5139, and rts5229 network drivers.
Step 1: Disable Secure Boot
The drivers are built in DKMS mode that will work (rebuild automatically) even after update to new Kernel series. If you have your system installed in UEFI mode, you have to disable secure boot first.
1. To verify if your system is installed in UEFI mode, open terminal (Ctrl+Alt+T) and run command:
[ -d /sys/firmware/efi ] && echo "EFI" || echo "BIOS"
2. To check the status of secure boot:
If secure boot is enabled, reboot into BIOS/UEFI settings and disable it!
Step 2: Add the Ubuntu PPA
First, open terminal by pressing Ctrl+Alt+T key combination on keyboard. When it opens, run the command below to add the PPA:
sudo add-apt-repository ppa:kelebek333/kablosuz
For r8101, r8125, RTL8152/RTL8153/RTL8156, r8168, rts5139, and rts5229 network drivers, add another PPA:
sudo add-apt-repository ppa:kelebek333/drivers
Step 3: Update the cache
Ubuntu 22.04 now automatically updates the cache while adding PPA. But, Linux Mint does not. So you have to manually run the command below to refresh cache:
Step 4: Select install driver package for your chipset
Open “Synaptic Package Manager“, navigate to “Origin” tab in the left. Finally click on “LP-PPA-kelebek333-drivers” or “LP-PPA-kelebek333-kablosuz” to list all the packages from that repository. Finally, right-click on desired driver package, mark for installation, and click Apply.
Install Synaptic Package Manager from Ubuntu Software if you don't have it.
Or, you can install the package via apt command (for example, install r8822bu driver):
sudo apt install r8822bu-dkms
Keep an eye on output info while installing the package. It tells where to install the Kernel modules.
Step 5: Load the driver (Kernel Module)
After installing the driver package, restart your computer. Then, you may find out the modules via:
ls /usr/lib/modules/$(uname -r)/updates/dkms
The command should outputs the previously installed Kernel modules in
.ko
files.You can finally, load the driver ( 8723ds for example) via command:
And, verify via lsmod command with ‘grep’ filter:
If you have loaded the correct network driver, Wi-Fi should work now!
How to Uninstall:
To unload the driver module, use modprobe command with -r flag. For example, unload ‘8723ds’ via command:
And, to remove the driver package, either use “Synaptic Package Manager” or run apt remove command:
sudo apt remove package_name
To remove the Ubuntu PPAs, use command:
sudo add-apt-repository --remove ppa:kelebek333/kablosuz
sudo add-apt-repository --remove ppa:kelebek333/drivers
How do I get a Realtek RTL8723BE wireless card to work?
I have installed Ubuntu 15.04 on my laptop with RTL8723BE Wi-fi card. But it is always disconnecting from network. I have tried echo «options rtl8723be fwlps=N ips=N» | sudo tee /etc/modprobe.d/rtl8723be.conf but that didn’t helped. What can I do to prevent the wifi from disconnecting? If I upgrade to kernel 4.X, will it help? ~$ lspci -knn | grep Net -A2
09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] Subsystem: Hewlett-Packard Company Device [103c:2231] Kernel driver in use: rtl8723be ~$ rfkill list 0: hci0: Bluetooth Soft blocked: yes Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no ~$ ifconfig && iwconfig && route -n && ping -c 1 google.com eth0 Link encap:Ethernet HWaddr 38:63:bb:cd:4a:7e UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:53 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:752 (752.0 B) TX bytes:8445 (8.4 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:3870 errors:0 dropped:0 overruns:0 frame:0 TX packets:3870 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:314613 (314.6 KB) TX bytes:314613 (314.6 KB) wlan0 Link encap:Ethernet HWaddr c0:38:96:6d:c4:83 inet addr:192.168.1.205 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::c238:96ff:fe6d:c483/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:15240 errors:0 dropped:0 overruns:0 frame:0 TX packets:14627 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14410285 (14.4 MB) TX bytes:2192744 (2.1 MB) eth0 no wireless extensions. wlan0 IEEE 802.11bgn ESSID:"DIR-615" Mode:Managed Frequency:2.437 GHz Access Point: 00:90:4C:08:00:0D Bit Rate=150 Mb/s Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Power Management:off Link Quality=70/70 Signal level=-22 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:186 Missed beacon:0 lo no wireless extensions. Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 400 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 PING google.com.Dlink (172.26.136.19) 56(84) bytes of data. 64 bytes from 19.136.26.172.in-addr.arpa (172.26.136.19): icmp_seq=1 ttl=249 time=102 ms --- google.com.Dlink ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 102.547/102.547/102.547/0.000 ms