This question already has an answer here:
I have bought a new HP BS180TX laptop and installed Ubuntu 16.04 LTS and found that the wifi and bluetooth are not working. Wired connection works fine. I ran
lspci -knn | grep Net -A3; rfkill list and the result I got is
03:00.0 Network controller : Realtek Semiconductor Co., Ltd. Device [10ec:d723] DeviceName: WLAN Subsystem: Hewlett-Packard Company Device [103c:8319] 2: hci0: Bluetooth Soft blocked: no Hard blocked: no
What should I do?
The second answer here resolved my issue.
The first one did not work because the kernel version was not compatible. This even works in Ubuntu 18.04. I have tested this.
Bluetooth issue also fixed by the help of this thread
In 18.04, the kernel update can disable wifi. So you will have to redo the steps in the above answer I mentioned to re-enable it.