I recently bought the Lenovo 130s-11igm to be a Linux experiment machine. The WiFi adapter it has is the Realtek RTL8821CE wireless PCIE card. After the WiFi not showing up in Ubuntu 19.04 I switched to 18.04 and have been trouble shooting it for a few days now. The Realtek drivers aren't mainlined so there's a repository that has the required drivers for it coming from a forum I found "having the solution" using the code below (connected to ethernet of course.)
sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r) git clone https://github.com/tomaspinho/rtl8821ce cd rtl8821ce chmod +x dkms-install.sh chmod +x dkms-remove.sh sudo ./dkms-install.sh
The code runs just fine, not giving me any errors. This doesn't fix the issue for me however. Here's a few of the details of my situation.
ideapad_wlan: Wireless LAN Soft block NO, Hard block YES Wireless LAN: Soft block NO, Hard block NO
Have tried "rfkill unblock all." Doesn't relinquish these blocks.
WiFi settings show up but am unable to turn WiFi on, remains "unavailable", which keeps any networks from being discoverable.
The fix was was pushing the airplane mode key. Despite being able to toggle it in the settings, it is required to push the airplane mode key on the keyboard. However the above code is STILL required in order to allow the Realtek RTL8821CE adapter to function properly.