I have purchased a new HP Pavilion 15-ab030TX, just installed dual boot Ubuntu 14.04 next to Win8. But my wifi has been showing either very weak signal at times or none at all. I tried multiple solutions available on internet but nothing seems to work. Also i hosted connectify on another laptop and started using internet through that it worked for two days but it is also not connecting (probably due to trying some solution from old posts).
-
Which solutions did you try? – Pilot6 Jul 06 '15 at 19:45
-
I tried http://askubuntu.com/questions/389268/no-wifi-connection-on-ubuntu-13-10/389372#389372 solution from chili555 – pradex Jul 06 '15 at 20:02
-
I think you upgraded the kernel and the driver stopped working. I will answer how to install same driver permanently. – Pilot6 Jul 06 '15 at 20:04
3 Answers
You need to install the driver using dkms. If you build it from the lwfinger git, it stops working after kernel upgrades.
I packed the same driver as DKMS and added it to a ppa. Install it this way:
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware
and reboot.
-
This seems to have worked for me, I will keep an eye on my system for next 24 hours before marking this as Solved. Thanks a ton for your help. :) – pradex Jul 06 '15 at 20:38
-
-
@Pilot6 I got a HP pavilion x360 (laptop with touch screen). I was trying to install 16.10 (after clearing windows 10 which came per-installed)and followed your instruction. But still it is not working. Can you please help? – RSG Nov 23 '16 at 05:13
-
-
Error! Bad return status for module build on kernel: 4.10.0-38-generic (x86_64) Consult /var/lib/dkms/rtlwifi-new/0.10/build/make.log for more information. – MrObjectOriented Nov 01 '17 at 15:43
-
Quite often, the weak signal is a symptom of the antenna wire being connected to connection #1 on the card when the default driver is expecting to see the signal at connection #2. Of course, you could open the laptop and switch the wire or you could install a newer driver that permits antenna selection at the driver level.
Please obtain a temporary ethernet connection by ethernet, tethered or whatever means possible. Open a terminal and do:
wget https://github.com/lwfinger/rtlwifi_new/archive/rock.new_btcoex.zip
unzip rock.new_btcoex.zip
cd rtlwifi_new-rock.new_btcoex
make
sudo -i
make install
echo "options rtl8723be ant_sel=2" > /etc/modprobe.d/rtl8723be.conf
exit
Reboot.
Whenever Update Manager installs a later kernel version, also known as linux-image, after the requested restart, you must recompile:
cd rtlwifi_new-rock.new_btcoex
make clean
make
sudo make install
Reboot and your wireless should be working.

- 60,188
-
1
-
2I made DKMS and added to my repository http://askubuntu.com/a/635629/167850 – Pilot6 Feb 06 '16 at 10:22
-
Sorry, i didn't understand: if the default driver expects the antenna at connection #2, why to add
ant_sel=2
? Isn't it what it expects then? – Alexey Feb 15 '18 at 07:13 -
The default driver is unable to autodetect where the antenna is connected at all. If you have weak signal, tell the driver to try the other antenna connector; it is most often, but not always #2. @Alexey – chili555 Feb 15 '18 at 13:18
Upgrade your Linux Firmware to 1.161 and Kernel version to 4.8.
To update the Linux Firmware , there are two ways :-
1. Via Ubuntu Software Center:
Download this file -
[\[http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb\]][1][1]
Then open this Debian Package with Ubuntu Software Center and click Install
2.Via Terminal : Open The Terminal ( ctrl+alt+T) Enter :-
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
De-package it :-
sudo dpkg -i linux-firmware_1.161_all.deb
Now check your kernel version :-
Type:- uname -r
Note if its generic or cloud or low latency
Upgrade your kernel to 4.8:
Go to Index of /~kernel-ppa/mainline/v4.8
For 64 bit system look under the amd64, for 32 bit one look under i386
For example, if its amd64 and your kernel is generic download these 3 files:-
linux-headers-4.8.0-040800_4.8.0-040800.201610022031_all.deb
linux-headers-4.8.0-040800-generic_4.8.0-040800.201610022031_amd64.deb
linux-image-4.8.0-040800-generic_4.8.0-040800.201610022031_amd64.deb
Now Open these files one by one in Ubuntu Software Center and install all the three.
Re-boot
Check again for your kernel version Type:- uname -r
It’s 4.8 and your WiFi should be working !!!

- 109
-
Please let me know the reason you are down-voting the answer, I only posted this because it worked for me ! – Sangeet Feb 19 '17 at 09:19
-
The file http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8/linux-headers-4.8.0-040800-generic_4.8.0-040800.201610022031_i386.deb has unsatisfied dependencies, Argggh! – Paul A. Apr 15 '18 at 22:35