Problem Solved for No WiFi Adapter Found for Laptops with Ubuntu 18.04/20.04

The Frequent lost of the wifi adapter in the Ubuntu version 18/20 is a very common problem nowadays.

You will open up your laptop and you will find the No Wifi Adapter Found, wifi signal is missing, you must be thinking god knows what happened.
Just before few hours, everything was working properly, and all of sudden which lightning has fallen on my laptop.
After exploring and scratching on the web we get a solution. Thank God for saving my @#$

After searching intensely, you will find a way, which is illustrated below

This tutorial is illustrated for the HP laptops in which the wireless does not work on Ubuntu 18.04 or 20.04 Gnome desktop.

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

This happens on many of the HP devices including HP 15-bs000, 15-bs100, 15g-br000, 15q-bu000, and Pavilion 15-br000, HP 280 G3, 290 G1, and more. I can find the same problem is faced by the other companies laptops as well And the reason is Ubuntu does not support RTL8723de wifi driver.

Here’s what I did to fix a WiFi adapter problem in Ubuntu 18.04:

1. Reboot and go to BIOS to make sure wireless network is enabled. And plug the 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 You may install the building tools first via command:

sudo apt-get install linux-headers-$(uname -r) build-essential git

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

git clone

And then check out the extended branch for rtl8822be or rtl8723de:

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

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

The 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

Besides, if you notice weak signal try the 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

(REQUIRED) Or write the rule into the configuration. REPLACE X with whatever setting (1, 2, or 3) worked best.

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

But, today I am encountering a new problem while installing the wireless driver in my ubuntu 20.04 version also facing the same issue with (ubuntu 18.04).

I was following the above solution, step by step.

But while executing the sudo make install which is Step 3, I am getting an error which I have posted below.

make -C /lib/modules/5.4.0-28-generic/build M=/home/username/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-28-generic'
  CC [M]  /home/username/rtlwifi_new/rc.o
/home/username/rtlwifi_new/rc.c:336:11: error: initialization of ‘void * (*)(struct ieee80211_hw *, struct dentry *)’ from incompatible pointer type ‘void * (*)(struct ieee80211_hw *)’ [-Werror=incompatible-pointer-types]
  336 |  .alloc = rtl_rate_alloc,
      |           ^~~~~~~~~~~~~~
/home/username/rtlwifi_new/rc.c:336:11: note: (near initialization for ‘rtl_rate_ops.alloc’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/ /home/username/rtlwifi_new/rc.o] Error 1
make[1]: *** [Makefile:1719: /home/username/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-28-generic'
make: *** [Makefile:85: all] Error 2

The problem is arising due to change source in newer kernels

So for such an error, do exactly as Step 3 mentioned above, then follow the new steps which are illustrated below.

sudo apt install dkms


git clone

sudo dkms add ./rtl8723de

sudo dkms install rtl8723de/

After these steps, you can run run the command for weak signal if you require.

Check mokutil --sb-state as Secure Boot needs to be disabled Reboot

Hope, this will resolve your problem.

If you really found it helpful, please comment on this post.

If the problem still persists, please do share in the comment. Thank you