Wifi keeps disconnecting. Using rtw_8822ce

My Wifi keeps disconnecting randomly. I’m currently using a RTL8822CE card from Realtek and is using rtw_8822ce as the kernel driver. The wifi usually works for a few minutes before disconnecting but disconnects immediately when I use a tty session. It works perfectly fine in windows but this same issue popped up in all the distros I’ve used.

Also i’ve turned on disable_lps_state=Y for rtw88_core and disable_aspm=Y rtw88_pci as per the advice in this thread: dmesg flood: realtek wi-fi: rtw_8822ce firmware failed to leave lps state but it didn’t work for me.

$ sudo lspci -k : lspci output
$ sudo dmesg : dmesg output
$ sudo journalctl -b : journalctl -b output

A detail I noticed is that whenever the wifi disconnects the following message pops up in my dmesg everytime:

[   36.584145] pcieport 0000:00:1c.0: AER: Uncorrected (Non-Fatal) error received: 0000:01:00.0
[   36.584185] rtw_8822ce 0000:01:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)
[   36.584190] rtw_8822ce 0000:01:00.0:   device [10ec:c822] error status/mask=00004000/00400000
[   36.584195] rtw_8822ce 0000:01:00.0:    [14] CmpltTO                (First)
[   36.584221] rtw_8822ce 0000:01:00.0: AER: can't recover (no error_detected callback)
[   36.584289] pcieport 0000:00:1c.0: AER: device recovery failed

It seems you have done quite a bit of searching.
What you may not have noted is that there are several threads here about problems with the rtw_8822ce driver and the cards it supports (poorly it seems) in linux.

Most seem to have replaced that card for a fix.

I would strongly suggest that you either replace that card or get a second card (maybe even a usb dongle) that is better supported so you do not have to fight with the realtek issues.

1 Like