I have seen many people struggling with getting their Wifi running due to their Realtek driver. As I had a Broadcom driver I had posted that long before and now when I see people want the fix for Realtek also, therefore I am writing the post for them. Actually, this is a post of Chirath, on his blog. If this re-post may help people then it would delight us. Hence here we go.
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.
Note: Its suggested to have latest kernel installed(Linux kernel 4+).
$ sudo add-apt-repository ppa:hanipouspilot/rtlwifi $ sudo apt-get update $ sudo apt-get install rtlwifi-new-dkms linux-firmware
$ sudo reboot
$ sudo apt-get install firmware-realtek
$ 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
$ sudo dnf install kernel-devel kernel-headers $ cd rtlwifi_new-rock.new_btcoex $ make $ sudo make install $ sudo modprobe -rv rtl8723be
$ sudo modprobe -v rtl8723be ant_sel=2
$ echo "options rtl8723be ant_sel=2 fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
And reload the module.
$ sudo modprobe -r rtl8723be
$ sudo modprobe rtl8723be
Now your WiFi should be working perfectly :).
A very special thanks for chirath who had done the actual work over this post. I'm just reposting this as I have seen many struggling over this and the most of the work and research over this was done by Chirath. This is an exceptional work and should be applauded as it benefited many. Even though, during this time(When I was asking him about reposting this blog post) we had a convo saying that all these issues may be fixed in the upcoming release of the newer version of kernel hence, we won't need to do all these again. Great right. Hope it will work for most of the readers. Actual post link.
Networking is an essential part of building wealth.