I am USING Ubuntu 20.04 Fresh install and the only significant change I have made (except installing the drivers for the said adapter) is to disable "Wake on X" settings on BIOS since it caused the PC to reboot instead of shutting down. But even without this, 9 out of 10 cases, I do not see the wireless icon when I turn on the PC unless I take it out and plug it back in. Is there a solution to this, where I can keep it plugged in at the back of the case and not bother at all?
Here is the Network manager log:
Mär 05 15:48:49 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955729.4703] agent-manager: agent[1a2f8924292a42c2,:1.80/org.gnome.Shell.NetworkAgent/1000]: agent registered
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7539] device (wlan0): driver supports Access Point (AP) mode
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7546] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7605] supplicant: wpa_supplicant running
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7761] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/ieee80211/phy0/rfkill>
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7834] device (wlan0): interface index 3 renamed iface from 'wlan0' to 'wlx1cbfce65cf9d'
Mär 05 15:49:34 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955774.7896] device (wlx1cbfce65cf9d): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.4636] manager: (D4:0B:1A:E6:22:9C): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/4)
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.4642] device (D4:0B:1A:E6:22:9C): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.4679] device (D4:0B:1A:E6:22:9C): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5155] sup-iface[0x5638a019a110,wlx1cbfce65cf9d]: supports 5 scan SSIDs
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5159] device (wlx1cbfce65cf9d): supplicant interface state: starting -> ready
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5160] Wi-Fi P2P device controlled by interface wlx1cbfce65cf9d created
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5162] manager: (p2p-dev-wlx1cbfce65cf9d): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/5)
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5165] device (p2p-dev-wlx1cbfce65cf9d): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'externa>
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5169] device (p2p-dev-wlx1cbfce65cf9d): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed>
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955775.5171] device (wlx1cbfce65cf9d): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: >
Mär 05 15:49:35 ifrat-ThinkCentre-M83 NetworkManager[603]: <warn> [1614955775.5234] sup-iface: failed to cancel p2p connect: P2P cancel failed
Mär 05 15:49:39 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955779.4255] policy: auto-activating connection 'WLAN-07B646' (e1122307-80a2-41a8-b243-3cbd6bcbadab)
Mär 05 15:49:39 ifrat-ThinkCentre-M83 NetworkManager[603]: <info> [1614955779.4263] device (wlx1cbfce65cf9d): Activation: starting connection 'WLAN-07B646' (e1122307-80a2-41a8-b243-3cbd6bcbadab)
In case it is relevant, these are the commands I have executed through terminal to get the dongle to be recognized by Ubuntu in the first place:
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh
sudo modprobe 8821cu
sudo journalctl -b 0 -u NetworkManager
.iwlwifi
. I can't test it, but it might work.