Why is wifi not working RTL8821CE

lsmod | grep 8821 gives me

8821ce 2514944 0
cfg80211 1327104 1 8821ce

sudo modprobe rtw88_8821ce gives me
modprobe: ERROR: could not insert ‘rtw88_8821ce’: Invalid argument

This is weird, you still seem to have the dkms module in use there … try running sudo modprobe -r 8821ce before running the sudo modprobe rtw88_8821ce command again …

i uninstalled them again, rebooted. it seemed the uninstalling worked. tried sudo modprobe rtw88_8821ce when the command lsmod | grep 8821 didn’t return anything. i saw these entries, but they didn’t seem to bring back the interface more than the other driver. its just still stuck on unknown state. also forgot to say, when u said that i had em in there i reinstalled them upon boot and restarted again. just as a trying it deal.

rtw_8821ce 12288 0
rtw_8821c 94208 1 rtw_8821ce
rtw_pci 32768 1 rtw_8821ce
rtw_core 344064 2 rtw_8821c,rtw_pci

do you get any interesting output from

sudo dmesg | grep rtw_8821ce

(also, can’t you use a mobile phone with USB tethering ? that would prevent you from having to go back and forth between windows and Ubuntu while debugging)

on boot into i get no output but i type
sudo modprobe rtw_8821ce
and get this
sudo dmesg | grep rtw_8821ce
[ 91.453978] rtw_8821ce 0000:06:00.0: enabling device (0000 → 0003)
[ 91.458272] rtw_8821ce 0000:06:00.0: Firmware version 24.11.0, H2C version 12
[ 91.496840] rtw_8821ce 0000:06:00.0 wlp6s0: renamed from wlan0

(also yes, but i think my hotspot is broken its incredibly slow and i have to plug it in to tether. which then i have like 5gb of, i’d rather just keep booting into windows)
Heres also what my wifi page shows

That dmesg output looks good, the driver loads the firmware and actually creates a network device (wlp6s0) …

I see the GUI is actually trying to scan, you can do the same from commandline with:

sudo iw wlp6s0 scan

does that get you any results of APs around you (it might take a while and just sit there for a bit while scanning)

The hotspot function of your phone is broken?
One option I can think of is to connect the phone to wifi and use USB tethering until a fix is found
What model computer is this?

it is finding networks. just one example
BSS omitted mac(on wlp6s0)
TSF: 6476599809379 usec (74d, 23:03:19)
freq: 5220.0
beacon interval: 100 TUs
capability: ESS Privacy SpectrumMgmt ShortSlotTime RadioMeasure (0x1511)
signal: -37.00 dBm
last seen: 0 ms ago
Information elements from Probe Response frame:
SSID: Network
Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
DS Parameter set: channel 44
Country: US Environment: Indoor/Outdoor

i use bluetooth tethering. but my hotspot speeds are either just garbage or broken. its just really slow and i’d rather not deal with it.

Well, that means the driver and the card work fine I’d say :slightly_smiling_face:

Now, what did you do to make it not work in the GUI? You said you reinstalled network manager, how exactly did you do that?

used these
sudo apt remove network-manager
sudo apt install network-manager

Only other thing i installed was the KDE Plasma 5 desktop environment but the network manager stopped working after i installed that. I swear, just one day, something, somewhere did something to it. while i, was just watching grayjay. good app btw. but a video was playing, and it just went blank.

but, i think the network manager is still working. because i have tethered the phone to it, and that still works.

bump again since the post hasn’t been getting as many views :smile:

As you removed netwrok manager I wonder if you need to start it after reinstalling it. What happens after typing this in your terminal?

sudo service network-manager start

output is this
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-01-13 07:25:43 EST; 1min 17s ago
Docs: man:NetworkManager(8)
Main PID: 3690 (NetworkManager)
Tasks: 4 (limit: 19000)
Memory: 3.6M (peak: 20.7M)
CPU: 178ms
CGroup: /system.slice/NetworkManager.service
└─3690 /usr/sbin/NetworkManager --no-daemon

Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.5359] dhcp4 (enx1068382b01b4): state changed new lease, address=192.168.44.144, acd pending
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.6878] dhcp4 (enx1068382b01b4): state changed new lease, address=192.168.44.144
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.6881] policy: set ‘OnePlus 11 5G Network’ (enx1068382b01b4) as default for IPv4 routing and DNS
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.6916] device (30:BB:7D:D1:09:2C): state change: ip-config → ip-check (reason ‘none’, sys-iface-state: ‘managed’)
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7086] device (30:BB:7D:D1:09:2C): state change: ip-check → secondaries (reason ‘none’, sys-iface-state: ‘managed’)
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7087] device (30:BB:7D:D1:09:2C): state change: secondaries → activated (reason ‘none’, sys-iface-state: ‘managed’)
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7089] manager: NetworkManager state is now CONNECTED_SITE
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7091] device (30:BB:7D:D1:09:2C): Activation: successful, device activated.
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7092] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 13 07:26:07 zye NetworkManager[3690]: [1736771167.7093] manager: startup complete

but yet it looks like as shown here