Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
frostyfreakguardian
Level 1
Level 1
Posts: 2
Joined: Thu Aug 21, 2014 2:00 am

Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by frostyfreakguardian »

Hello! This is my first time posting so I hope I am posting at the right place and that this can be useful to you people who currently have this issue.
I have a Lenovo G40-30 laptop with a Realtek RTL8723BE PCIe Wireless Network Adapter (driver: rtl8723be)

I installed Linux Mint 17.1 Cinnamon 64-bit alongside Windows 8.1, but whilst on Mint I can't toggle the WiFi switch on, and bluetooth says "hardware disabled." It took me so long to make it work, browsing the forums for codes that will work for me....

Anyway, here are what I've found, and I hope these works well for you who might need it.

Zeroeth
I used a LAN cable to connect to the internet and ran Mint's Update manager and installed /all/ the updates and rebooted. Then I updated my kernel to 3.16.* kernel (3.16.3 is the latest on my end) because I've read that helps (for some users just doing this installs the drivers needed for the WiFi to work, but it didn't for me). Reboot after installing the kernel.
First
Post by JeremyB on Sun Oct 05, 2014 4:00 pm

Lets try this to start to see if things improve

Code: Select all

echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
reboot and see if it helps, you can also try this as it might help

Code: Select all

echo "options rtl8723be msi=Y" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
I see you are hardblocked so

Code: Select all

sudo modprobe -r ideapad_laptop

Code: Select all

sudo rfkill unblock all

Code: Select all

rfkill list
I might have to do some digging for an ubuntu thread on modifying ideapad_laptop for the rfkill bit if this doesn't work
Second
Post by JeremyB on Wed Oct 08, 2014 11:42 am

We could blacklist ideapad_laptop with

Code: Select all

echo "blacklist ideapad_laptop" | sudo tee -a /etc/modprobe.d/blacklist.conf
Reboot
Third
Post by varunendra on Sat Sep 13, 2014

Hello pawel-juchnowski, Welcome to the forums!

Please try a couple of driver parameters available for your driver. In a terminal (can be opened with Ctrl-Alt-T), please run this code (you may copy-paste) to try them--

Code: Select all

echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
Fourth
Before rebooting, run this in the terminal:

Code: Select all

sudo gedit
Once gedit launches, open this file in gedit:

Code: Select all

/etc/modprobe.d/rtl8723be.conf
Erase its contents, replace it with this:

Code: Select all

# Prevents the WiFi card from automatically sleeping and halting connection
# This is neccesary to fix the wifi card problem.

options rtl8723be fwlps=0 swlps=0



options rtl8723be fwlps=N ips=N
This is following minthousiast's advice on this post: http://forum.linuxmint.com/viewtopic.php?f=49&t=180564
Don't forget to save before you exit gedit!

Fifth
Post by varunendra on Sat Sep 13, 2014

Reboot and reconnect. Does it make the connection stable?

And which country you are in? We may have to explicitly set your country code for regdomain settings.
To see the regulatory domain your laptop is using now, enter the following command as root user:

Code: Select all

iw reg get
I got the output "country 00," and the country code 00 is not the code of the country I am in at present.
Post by jeremy31 on Sat Sep 20, 2014

You will also need to run

Code: Select all

sudo iw reg set PL
PL should be changed to the country code of your country, as PL is for Poland. I changed it to PH, because I am in the Philippines. If you are in the United Kingdom, change PL to GB. To find out your country code, go here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
Reboot if you must, but I didn't need to in my case

I know there are many solutions that can make your WiFi work for you, but these are the ones that worked for me. After applying above solution I can connect to WiFi networks without it suddenly disconnecting or being flaky, and my bluetooth can be turned on as well. I hope this is helpful, and kudos to the cool peeps who gave these advice in the first place:
- JeremyB
- varunendra
- minthousiast
- jeremy31

Thank you very much!!

Source Threads:
http://forums.linuxmint.com/viewtopic.p ... 2&start=20
http://ubuntuforums.org/showthread.php?t=2243978
http://forum.linuxmint.com/viewtopic.php?f=49&t=180564

JeremyB
Level 20
Level 20
Posts: 11475
Joined: Fri Feb 21, 2014 8:17 am

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by JeremyB »

I am listed twice in the list! I post on ubuntuforums and askubuntu as jeremy 31

What kernel are you using as I can fix the ideapad_laptop so it doesn't need to be blacklisted.

Code: Select all

uname -a

frostyfreakguardian
Level 1
Level 1
Posts: 2
Joined: Thu Aug 21, 2014 2:00 am

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by frostyfreakguardian »

Oh hello! Thanks man, you helped me a ton!


uname -a's output is this:

Code: Select all

Linux Lenovo-G40-30 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

JeremyB
Level 20
Level 20
Posts: 11475
Joined: Fri Feb 21, 2014 8:17 am

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by JeremyB »

Ok

Code: Select all

sudo apt-get install build-essential linux-headers-generic

Code: Select all

wget https://www.dropbox.com/s/ivaogq03guukrmq/x86-ideapad-3.16.0-33.tar.gz

Code: Select all

tar -zxf x86-ideapad-3.16.0-33.tar.gz

Code: Select all

cd x86

Code: Select all

cp /boot/config-$(uname -r) .config

Code: Select all

cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers

Code: Select all

make -C /lib/modules/$(uname -r)/build M=$PWD modules

Code: Select all

sudo cp ideapad_laptop.ko /lib/modules/$(uname -r)/kernel/drivers/platform/x86/
Then you can edit the blacklist to delete

Code: Select all

blacklist ideapad_laptop

Code: Select all

sudo gedit /etc/modprobe.d/blacklist.conf
blacklist ideapad_laptop should be very close to the bottom of the file, once ideapad_laptop is deleted, you can save, exit program and reboot

All it took was changing a few lines around line 840 in ideapad_laptop.c to

Code: Select all

.ident = "Lenovo G40-30",
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo G40-30"),
It was

Code: Select all

.ident = "Lenovo Yoga 3 Pro 1370",
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 3 Pro-1370"),

rzr
Level 1
Level 1
Posts: 3
Joined: Thu Apr 30, 2015 7:35 pm

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by rzr »

Nice fix it seems to do the trick , have you tried to upstream this ? If it's hard to make it land into mainline what about having a project module to be built using module-assistant ?

I can help if you want it to be pushed and tested , thanks
--
http://rzr.online.fr/q/ideapad# #RTL8723BE #BlueTooth working : #bluez next on #Linux master + #UsbBt loads lib/firmware/rtl_bt/*.ko #AskMe!

JeremyB
Level 20
Level 20
Posts: 11475
Joined: Fri Feb 21, 2014 8:17 am

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by JeremyB »

rzr wrote:Nice fix it seems to do the trick , have you tried to upstream this ? If it's hard to make it land into mainline what about having a project module to be built using module-assistant ?

I can help if you want it to be pushed and tested , thanks
Some of it is included upstream but only for the Yoga 2 and 3. I haven't got the internet connection for downloading linux-next or any uncompressed kernel

It also works with G50-30 http://ubuntuforums.org/showthread.php? ... st13276318

rzr
Level 1
Level 1
Posts: 3
Joined: Thu Apr 30, 2015 7:35 pm

Re: Lenovo G40-30 Realtek RTL8723BE wireless not working fix

Post by rzr »

I am trying to push it for G40-30 and if it's merged I'll try for others ... keep in touch at :

https://bugs.launchpad.net/ideapad-laptop/+bug/1450946
--
http://rzr.online.fr/q/ideapad# #RTL8723BE #BlueTooth working : #bluez next on #Linux master + #UsbBt loads lib/firmware/rtl_bt/*.ko #AskMe!

Post Reply

Return to “Wireless”