2

I've just installed Ubuntu studio 21.10 on a new Asus laptop. Its now dual Boot with W10. Wifi works as expected in W10 but not in ubuntu. Adapter is a Realtek RTL8821CE. Is shows up when I do sudo lspci but beyond that I'm lost in Terminal. Any help to get the correct drivers installed would be greatly appreciated

benm@Bens-asus:~$ lspci -nnk | grep 0280 -A3
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
        DeviceName: WLAN
        Subsystem: AzureWave RTL8821CE 802.11ac PCIe Wireless Network Adapter [1a3b:3040]
        Kernel modules: rtw88_8821ce
benm@Bens-asus:~$ sudo dmesg | grep 8821
[sudo] password for benm: 
[    3.899773] rtw_8821ce 0000:03:00.0: enabling device (0000 -> 0003)
[    3.901991] rtw_8821ce 0000:03:00.0: Firmware version 24.8.0, H2C version 12
[    3.924396] rtw_8821ce 0000:03:00.0: rfe 4 isn't supported
[    3.924819] rtw_8821ce 0000:03:00.0: failed to setup chip efuse info
[    3.924824] rtw_8821ce 0000:03:00.0: failed to setup chip information
chili555
  • 60,188
  • 1
    Please edit your question to show the result of the terminal commands: lspci -nnk | grep 0280 -A3 and also: sudo dmesg | grep 8821 – chili555 Jan 30 '22 at 14:31
  • I've pasted it in but it has changed the layout a bit – Rollem Neb Jan 30 '22 at 14:42
  • Kernel 5.14 and above seem to address this issue/bug. – Error404 Jan 30 '22 at 14:57
  • Please try: sudo modprobe -r rtw88_8821ce and: sudo modprobe rtw88_pci disable_aspm=1 and then: sudo modprobe rtw88_8821ce Is there any improvement? Reference: https://bugzilla.kernel.org/show_bug.cgi?id=210779 – chili555 Jan 30 '22 at 14:58
  • I have entered the code but it seemed to have no effect – Rollem Neb Jan 30 '22 at 15:13
  • benm@Bens-asus:~$ sudo modprobe -r rtw88_8821ce [sudo] password for benm: benm@Bens-asus:~$ sudo modprobe rtw88_pci disable_aspm=1 benm@Bens-asus:~$ sudo modprobe rtw88_8821ce benm@Bens-asus:~$ ^C benm@Bens-asus:~$ – Rollem Neb Jan 30 '22 at 15:14
  • nothing seemed to happen in terminal and no change to the wifi – Rollem Neb Jan 30 '22 at 15:14
  • I am currently updating to Kernal 5.14. I think. – Rollem Neb Jan 30 '22 at 16:49
  • i've just gone through the update process but it seems i'm only at 5.13! – Rollem Neb Jan 30 '22 at 16:58
  • Did you reboot? What does this tell us? uname -r – chili555 Jan 30 '22 at 17:24
  • yes, rebooted. 5.13.0-27-lowlatency – Rollem Neb Jan 30 '22 at 18:12
  • i tried following this https://www.linuxcapable.com/how-to-install-or-upgrade-to-linux-kernel-5-14-on-debian-11-bullseye/#ftoc-heading-8 but get to a stage where it says E: Type ‘sudo’ is not known on line 59 in source list /etc/apt/sources.list E: The list of sources could not be read. – Rollem Neb Jan 30 '22 at 18:12
  • No. Do not follow a Debian guide. I have no doubt that it doesn't work. Please revert all changes. – chili555 Jan 30 '22 at 18:18
  • maybe i should reinstall. I tried your guide and i still get the message about the source list. I have no idea how to revert the changes – Rollem Neb Jan 30 '22 at 18:29
  • You could reinstall in 15 minutes or meet me in chat and undo all of the incorrect steps, maybe, in a couple of hours. Which do you prefer? – chili555 Jan 30 '22 at 20:33
  • thank you, i think i'll reinstall in the morning. i have no work to back up or anything so a nice clean install might be best. I will let you know how it goes. i love working with ubuntu, this is third laptop i've had ubuntu on but every time the wifi has been an problem. i don't really understand why such a fundamental thing is such an issue – Rollem Neb Jan 30 '22 at 20:54
  • I will propose what I believe to be a proper working solution for the wifi a bit later. See you tomorrow. – chili555 Jan 30 '22 at 21:32
  • yes it worked! I reinstalled then did the steps you suggested and it worked! Thank you – Rollem Neb Feb 01 '22 at 06:47
  • In fact now that I've got working wifi, dropbox and scrcpy installed I hope I never have to go near the terminal again! – Rollem Neb Feb 01 '22 at 07:22
  • Awesome! Glad it's working. If my answer has been helpful, please accept it: https://askubuntu.com/tour The searchers will appreciate it. – chili555 Feb 01 '22 at 13:35

2 Answers2

1

This guide should work:

Secure boot must be deactivated.

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

For deinstallation:

sudo ./dkms-remove.sh

Or you can try this:

sudo apt-get install --reinstall dkms build-essential linux-headers-$(uname -r)

wget https://launchpad.net/~canonical-hwe-team/+archive/ubuntu/rtl8821ce/+files/rtl8821ce-dkms_5.2.5.2.1.30816.20190425-0ubuntu1_all.deb

sudo dpkg -i *.deb

For further instructions look here:

https://forum.ubuntuusers.de/topic/wlan-modul-nicht-aktieviert-unter-ubuntu-18-04/#post-8985121

1

Please note the well-known bug report: https://bugzilla.kernel.org/show_bug.cgi?id=210779

rtw88_8821ce doesn't work [1] can't connect [2]

Let’s blacklist the native driver:

sudo -i
echo “blacklist rtw88_8821ce”  >>  /etc/modprobe.d/blacklist.conf
exit

Next, with a working internet connection by ethernet, tethering or whatever means possible, do:

sudo apt update
sudo apt install git dkms build-essential bc linux-headers-generic
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh

Reboot, disable Secure Boot and your wireless should be working.

chili555
  • 60,188