First try to update the system by open terminal and type the following command:
1. Turn on the laptop and connect it to the internet via LAN wired connection.
1.1 Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.
1.2 type the following command command:
sudo apt-get update
Let the system finish, then type:
sudo apt-get upgrade
In case the software asks you what type of packaging to install, choose the default options by pressing ENTER.
1.3 Open the update manager, refresh it and install all available updates.
You can see how to do it in this video:
* The video is for Linux Mint, but the process will be the same for Ubuntu.
After completing all the updates restart your computer and check if you can connect to the WiFi.
If Ubuntu still does not recognize the WiFi, move to stage 2:
2. Turn on the laptop and connect it to the internet via LAN wired connection.
2.1 Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.
2.2 type the following command command, in this order, one after the other finish:
sudo apt remove rtl8821ce-dkms sudo apt install git git clone https://github.com/tomaspinho/rtl8821ce.git cd rtl8821ce sudo ./dkms-install.sh
If Ubuntu still does not recognize the WiFi, move to stage 3:
3. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.
3.1 Run the command bellow 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 should starts working now, but if it doesn't move to stage 6:
6. 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 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
If this does not work try the following:
Remove the settings you made.
sudo rm /etc/modprobe.d/rtl8723be.conf
If you do not have this file, nothing is wrong.
Then install a good driver
sudo add-apt-repository ppa:hanipouspilot/rtlwifi sudo apt-get update sudo apt-get install rtlwifi-new-dkms