lenovo e540 RTL8723be wifi not working

I’m really struggling to have working wifi on my laptop lenovo E540. I googled about my network card using ubuntu, but nothing solved my problem.
First of all, I installed Ubuntu 14.04.1 LTS 64-bit. I could use wifi, but after few minutes it would turn off and I could not connect to wifi again. So I started googling.

Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

First of all, I found this thread with comment 29 to be helpful for many users having same controller as me. So I installed it and got kernel panic. I googled more. Found kozak127’s edited rtl8723be. Tried it, got kernel panic.
Here is suggested to use older kernel. No differece there for me.
My kernel:


So my question is: Is there a way to get this realtek controller working? how?

Offtopic: I bought a new laptop, so I would have less problems than I had with lenovo n500 and ubuntu. Is there a brand that works great with linux? I looked up lenovo n540 and linux compatibility and no problems were reported there.



Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

The system natively includes the driver rtl8723be. We need to troubleshoot the native driver. Before we do so, please uninstall the two drivers you installed that caused kernel panics. Follow the process you followed previously for both, except instead of make and sudo make install, do sudo make uninstall.

Then do:

gksudo gedit /etc/modprobe.d/blacklist.conf

Use nano or kate or leafpad if you don’t have the text editor gedit. Remove the line: blacklist rtl8723be. Proofread carefully, save and close the text editor.

Now do:

sudo modprobe rtl8723be swenc=1
sudo iwconfig wlan0 power off

Is your wireless working better now? If so, we’ll amend a couple of files and make it permanent.

It appears that, somehow, the rtl8723be was deleted in the process of trying two replacements that failed by causing kernel panics. Let’s try to reinstall the current linux-image. With a working internet connection:

sudo apt-get install --reinstall linux-image-$(uname -r)

After it’s done, retry the steps above.

Solution 2

I’ve resolved that on my Lenovo Flex2 with Ubuntu 14.10, installing the new driver from https://github.com/lwfinger/rtlwifi_new.
It seems to have solved my problems, don’t forget to reboot Ubuntu.


After to unzip that run the following command to install the new drive

$: make
$: sudo make install

reboot the OS.

note: we’ve to run the same procedure every time we want to upgrade our Ubuntu with a new kernel

note2: in Ubuntu 15.04 is not necessary to make that

Solution 3

Ok, there are still bugs with the rtl8723be on kernel 3.15.x.

I found the perfect fix with no disconnections or anything.

Go here and download and install all 3 debs for 32 or 64 bit:


Choose 32-bit or 64-bit (depending on which system you installed)

reboot into the new 3.16.x


apt-get -f autoremove

Next run:

dpkg –list | grep linux-image

apt-get purge (Old Kernel):

apt-get purge linux-image-3.14-kali1-amd64


apt-get purge linux-image-3.14

Once you removed old kernel run:


After you are done, reboot.
The wireless drivers will be 100% working and no data drops like in 3.15.x kernel!

& drivers are pre-installed in the new kernel!

Solution 4

I found this solution, and worked perfectly on a Lenovo g40-30 so i guess it should work in other lenovo pc…


for one time test:

sudo rmmod ideapad_laptop

for working after reboot:

echo "blacklist ideapad_laptop" | sudo tee -a /etc/modprobe.d/blacklist-ideapad.conf

found it in: Wifi Not Working On Ubuntu 14.04 Lenovo G 50-30

prior to that I re-installed the module, updated the kernel to 3.16, and none of that worked.
this piece of code did make the realtek run

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply