PDA

View Full Version : [ubuntu] Ubuntu21 - rtw88_8821ce wireless driver stops working a few minutes after boot. Anyth



coyoteltd
July 25th, 2021, 04:07 AM
Computer is a brand new HP laptop, HP 17-by4063CL running Ubuntu21 with Cinnamon (Ubuntu Cinnamon Remix)
Wireless card is a Realtek RTL8821CE 802.11a/b/g/n/ac (1x1) Wi-Fi® and Bluetooth® 4.2 comboWi
dmesg shows



[ 604.202418] rtw_8821ce 0000:01:00.0: failed to read ASPM, ret=-5
[ 606.202425] rtw_8821ce 0000:01:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 606.202443] rtw_8821ce 0000:01:00.0: mac power on failed
[ 606.202445] rtw_8821ce 0000:01:00.0: failed to power on mac
[ 606.202447] rtw_8821ce 0000:01:00.0: leave idle state failed
[ 606.202564] rtw_8821ce 0000:01:00.0: failed to leave ips state
[ 606.202565] rtw_8821ce 0000:01:00.0: failed to leave idle state
[ 612.073660] rtw_8821ce 0000:01:00.0: failed to poll offset=0x5 mask=0x2 value=0x0


This led me to believe that maybe I needed to disable ASPM, so I did by adding pcie_aspm=off to the kernel line in /etc/default/grub. No joy. Behavior is the same.
Any other ideas?

chili555
July 25th, 2021, 08:51 PM
Please try this: https://bbs.archlinux.org/viewtopic.php?id=260589

coyoteltd
July 26th, 2021, 02:46 AM
I did this in /etc/default/grub and got the exact same behaviour. :(

Any other ideas?

chili555
July 26th, 2021, 11:52 PM
Did you try each parameter seperately?

coyoteltd
July 28th, 2021, 07:17 PM
Someone on Reddit had the solution. For anyone who stumbles upon this thread trying to solve a similar problem, what I had to do was:

1) git clone this driver: https://github.com/tomaspinho/rtl8821ce
2) Install DKMS
3) From inside the rtl8821ce directory, run as root ./dkms-install.sh
4) Blacklist tw88_8821ce in /etc/modprobe.d/blacklist.conf

After a reboot all is working well.