Fix ‘No WiFi Adapter Found’ for HP Laptops with Ubuntu 18.04

August 22, 2018 — 59 Comments

HP Linux Imaging and Printing

This tutorial is a quick fix for HP laptops that wireless does not work on Ubuntu 18.04 Gnome desktop.

On my cheap laptop HP 246 G6 I found that the wireless network does not work out-of-box after installed Ubuntu 18.04. No wifi option in system tray menu, and System Settings says ‘No Wifi adapter found‘.

This happens on many HP devices including HP 15-bs000, 15-bs100, 15g-br000, 15q-bu000, and Pavilion 15-br000, HP 280 G3, 290 G1, and more. And the reason is Ubuntu does not support RTL8723de wifi driver.

Here’s what I did to fix no wifi adapter issue in Ubuntu 18.04:

1. Reboot and go to BIOS to make sure wireless network are enabled. And plug laptop into a wired connection.

2. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

3.1 Run command to get the newest Realtek rtlwifi codes that includes rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae.:

git clone https://github.com/lwfinger/rtlwifi_new.git

And then check out extended branch for rtl8822be or rtl8723de:

cd rtlwifi_new/ && git checkout origin/extended -b extended

3.2 You may install the building tools first via command:

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

4. In this terminal window, install the drivers via command:

sudo make install

Type your password (no asterisks feedback) when it prompts and hit Enter.

5. If the installation success, run 2 commands load the new driver:

sudo modprobe -r rtl8723de

sudo modprobe rtl8723de

Wireless network starts working in my case:

6. If that does not work, you may remove and blacklist the broadcom drivers and restart:

sudo apt purge bcmwl-kernel-source

sudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.conf

sudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf

In addition, (thanks to jeremy31) if you notice weak signal try command:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not run:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2

Or write the rule into configuration. Replace X with whatever setting worked best

echo "options rtl8723de ant_sel=X" | sudo tee /etc/modprobe.d/rtl8723de.conf

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to ubuntuhandbook1@gmail.com

59 responses to Fix ‘No WiFi Adapter Found’ for HP Laptops with Ubuntu 18.04

  1. You missed one step. Plug laptop into a wired connection.

  2. My Dear Ji M,

    Congratulations!!!! your solution works very well.

    Trying to resolve the issue from past 2 days.

    Today I set it right with your help.

    Thank You.

  3. Dear Jim, I followed the procedure as you described, but I got stuck at point Nr. 4: Terminal does not accept the command sudo make install.
    sudo: make: command not found
    I hope you can help me solve this problem.
    Thanks a lot!

  4. HI Ji M, I have just purchased a HP 15da0 laptop and installed Ubuntu 18.04 LTS with the problem wifi adapter not found. I followed your procedure and all is now working.
    thank you

  5. hi Paolo,
    try sudo apt-get install make
    enter your password when prompted.
    then run make install again

    Andy

  6. modprobe: ERROR: could not insert ‘rtl8723de’: Unknown symbol in module, or unknown parameter (see dmesg)

  7. Hello,

    I don’t succed in running the command sudo make install, it tells me
    make[1]: *** /lib/modules/4.15.0-33-generic/build: No such file or directory.
    What do I have to do?

  8. Thank you so much for putting this explanation together. Worked perfectly.

  9. Dalchandra Sharma October 1, 2018 at 9:35 am

    thanks your help

  10. Dear,
    I am using a laptop Hp amd e1 crr model rtl8188ee and i am facing that issue of wifi adapter not found from the last week since i installed ubuntu 18.04 i tried my level best to resolve the issue but not succeed kindly help me if you can. Thank you!

  11. Wow it works like a charm on my hp laptop elementary os loki version… Only u need to disable ethernet network from settings that’s it!!!

  12. Bernardo Battistini October 10, 2018 at 10:07 am

    Hi Ji M,

    first of all, thanks for your help.
    i got stuck at step 5: the terminal displays the following message

    modprobe: FATAL: module rtl8723de not found.
    Any tips?
    Thanks in advance

    • Check the source directory (rtlwifi_new) in your file browser and see if rtl8723de folder exist.

      If not, you need to extend the source, as step 3.1 said:

      cd ~/rtlwifi_new/ && git checkout origin/extended -b extended

      Finally in the source dir, redo make install:

      cd ~/rtlwifi_new/ && sudo make install

      • make -C /lib/modules/4.15.0-36-generic/build M=/home/reddevil/rtlwifi_new modules
        make[1]: Entering directory ‘/usr/src/linux-headers-4.15.0-36-generic’
        Makefile:975: “Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel”
        CC [M] /home/reddevil/rtlwifi_new/base.o
        cc1: error: code model kernel does not support PIC mode
        scripts/Makefile.build:332: recipe for target ‘/home/reddevil/rtlwifi_new/base.o’ failed
        make[2]: *** [/home/reddevil/rtlwifi_new/base.o] Error 1
        Makefile:1551: recipe for target ‘_module_/home/reddevil/rtlwifi_new’ failed
        make[1]: *** [_module_/home/reddevil/rtlwifi_new] Error 2
        make[1]: Leaving directory ‘/usr/src/linux-headers-4.15.0-36-generic’
        Makefile:87: recipe for target ‘all’ failed
        make: *** [all] Error 2

        I get this error after executing 3.1 Step

  13. hello Ji M
    I have problem when going to use step 5
    following error message are occurs :
    modprobe: ERROR: could not insert ‘rtl8723de’: Exec format error
    please help me to come out from this .
    you are great person.

  14. modprobe: ERROR: could not insert ‘rtl8723de’: Unknown symbol in module, or unknown parameter (see dmesg)

  15. Thanks man, it’s works…

  16. sudo modprobe -r rtl8723de

    libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/iwlwifi.conf line 8: ignoring bad line starting with ‘“options’

    Stuck here . Can someone pls help .

  17. This is the best process. and thank you for help and its working.

  18. Oh my goodness, this worked! Thank you! for me setting ant_sel=2 did the trick after installing the package.

  19. For “HP Pavilion – 15-cs0511sa” I succeeded with https://github.com/tomaspinho/rtl8821ce
    I saw the WiFi networks, but couldn’t connect. I had to disable the PCIe power savings. This helped me “https://askubuntu.com/a/1041830/882226”. Now everything is working fine.

  20. Here’s a fun question for you, what do you do if your ethernet connection is broken because someone stuck a usb into it not realizing it was the wrong port and broke the pins inside?

  21. So mine says “modeprobe: ERROR: could not insert ‘rtl8723de’ : Required key not available”

    What would I do in this case?

  22. Hello, I get this error after 5 step, this command: sudo modprobe rtl8723de
    modprobe: ERROR: could not insert ‘rtl8723de’: Unknown symbol in module, or unknown parameter (see dmesg)

  23. It works. but i have to do it again and again every time i start my machine

  24. hi

    i have latest release, 18.10
    git is not available for it.

    what to do. I tried installing it using sudo apt install git
    but it says git is either removed or shifted to diff repository

    what to do

    • Git is availalbe in universe repository. Open Software & Updates and make sure all the main repositories are enabled. Then refresh repository cache:

      sudo apt update && sudo apt install git

  25. :)

    WiFI started working !!

    Thanks a ton Ji m

  26. After running your instructions, I can connect to wifi only within very short range. How do get more extended range.

  27. Hi, ı tried Every step and these steps helped me first but then ı turned off my computer and when ı turned it on it was all the same, the wifi again started to say wifi adapter can not be found. I tried all steps again but this time they didnt work. So what should ı do? Please help me, ı am so desperate.

  28. Awesome thanks so much!

  29. Hey Ji M,

    I get this message when i do the last command:

    modprobe: ERROR: could not insert ‘rtl8723de’: Required key not available

    Any ideas?

    Thank you!

    • Make sure the kernel module is installed, run command lspci -k. And disable secure boot if possible.

      • Dear Ji m,

        I have run command lspci – k (because the result is “modprobe: ERROR: could not insert ‘rtl8723de’: Required key not available”), then it is show:
        Network controller: Realtek Semiconductor Co., Ltd. Device d723
        Subsystem: Hewlett-Packard Company Device 8319
        Kernel modules: rtl8723de

        How to do next? Thank you

        Thanks

  30. This worked for me (you can edit the script to work with your adapter):

    git clone https://github.com/tarunbatra/fixRTL8723BE

    cd fixRTL8723BE

    sudo bash install.sh

  31. Thanks a lot !!

  32. Trying to resolve the issue from past 2 days.

    Today I set it right with your help.

    Thank You.

  33. i did everything you said but i`m stacked “sudo modprobe -r rtl8723de” and “sudo modprobe -r rtl8723de” everytime i try to use them ! nothing happens !! :( please help ….

    • Etienne Ntumba Kabongo November 3, 2018 at 11:28 pm

      Dear Sam i might the same issue , what you can do is to delete “rtl8723de” and restart the process, It will work

  34. Etienne Ntumba Kabongo November 3, 2018 at 10:51 am

    Hi JI M !
    your commands working very good, but i have an issue, if i power off and power on the wifi run away again. If want to find it , i restart the same procedure, i want your help for fixing for ever.
    My computer is HP-Laptop-15 and the operating system is Ubuntu 18.04.1 LTS.
    i’m going to totalize 2 months now. Please help me

  35. libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/iwlwifi.conf line 8: ignoring bad line starting with ‘“options’
    Please help me with this

  36. after restarting its not working

  37. It’s much easier if you select Software and Updates. Then Additional Drivers. Wait 1 minute for it to update then select the unused wifi adapter and wait whilst the driver is loaded.
    Total time about 3 minutes.
    regards,
    jB

    • Ok. Sounds like a plan, BUT where do I get the driver from? I have NO connection with internet after upgrading from 16.04 LTS to 18.04 LTS (Beaver) on my Acer!

  38. Abu-Mazrou Ahmad November 9, 2018 at 3:20 pm

    Thank you very very much.
    I have tried several solutions but your comment is solved my problem with HP laptops WiFi on Ubuntu OS.

  39. Thank you so much Ji m , it worked like a charm ;)

  40. Thanks so much Jim, I’ve been pulling my hair out over this for the best part of the whole day. Seems like this is a bit of a problem on HP computers.

  41. Thanks you VERY MUCH sir, you just save me days of nightmares haha

  42. thanks work on my laptop HP bw series…

  43. Thanks this work very well, you are a unvaluable helper

  44. Also, every time you update your kernel you have to reinstall the wifi drivers.

  45. It worked. Great man!! Thanks.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*