2024-06-01 22:02:14

by devin

[permalink] [raw]
Subject: Realtek RTL8822CE PCIe Frequent Disconnection Issues on Linux

over my past 3 linux installations i've used both:
- rtw_8822ce (https://github.com/lwfinger/rtw88/, built locally)
- rtw88_8822ce (built in, still unsure what the difference is)
and experienced frequent to very occasional disconnections and general
instability

ive switched between wpa_supplicant and iwd, changed rtw88's options, etc.

through some messing around with options the only difference i've
noticed is that when disable_msi is used, the interface is online yet
never detects any wifi networks, my options are as follows

- no networks being detected:
- rtw_pci: `support_bf=Y disable_aspm=Y, disable_msi=Y`
- rtw_core: `support_bf=Y, disable_lps_deep=Y, debug_mask=0`

- networks working (but being disconnected frequently):
- rtw_pci: `support_bf=Y disable_aspm=Y, disable_msi=N`
- rtw_core: `support_bf=Y, disable_lps_deep=Y, debug_mask=0`

at different points i switched kernel versions between
- `6.8.5-301.fc40`
- `6.8.10-300.fc40`
- `6.8.11-300.fc40`
- whatever linux mint was using at the time (iirc 5.x)

using fedora40 workstation kde, linux mint, etc

here's some logs that might give more insight into what the issue is:

[ 456.737481] wlp2s0: Connection to AP 10:da:43:96:cd:1d lost
[ 458.102204] wlp2s0: 80 MHz not supported, disabling VHT
[ 458.304693] wlp2s0: authenticate with 10:da:43:96:cd:1d (local
address=c8:94:02:05:c4:a9)
[ 458.367851] wlp2s0: send auth to 10:da:43:96:cd:1d (try 1/3)
[ 458.375293] wlp2s0: authenticated
[ 458.375666] wlp2s0: associate with 10:da:43:96:cd:1d (try 1/3)
[ 458.381633] wlp2s0: RX AssocResp from 10:da:43:96:cd:1d
(capab=0x1411 status=0 aid=12)
[ 458.382018] wlp2s0: associated
[ 458.458488] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as
advertised by 10:da:43:96:cd:1d
[ 475.619923] wlp2s0: Connection to AP 10:da:43:96:cd:1d lost
[ 477.020238] wlp2s0: 80 MHz not supported, disabling VHT
[ 477.221723] wlp2s0: authenticate with 10:da:43:96:cd:1d (local
address=c8:94:02:05:c4:a9)
[ 477.284976] wlp2s0: send auth to 10:da:43:96:cd:1d (try 1/3)
[ 477.292366] wlp2s0: authenticated
[ 477.292871] wlp2s0: associate with 10:da:43:96:cd:1d (try 1/3)
[ 477.299281] wlp2s0: RX AssocResp from 10:da:43:96:cd:1d
(capab=0x1411 status=0 aid=12)
[ 477.299665] wlp2s0: associated
[ 477.302567] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as
advertised by 10:da:43:96:cd:1d

[ 4.490323] NET: Registered PF_QIPCRTR protocol family
[ 4.728234] alg: No test for hmac(md4) (hmac(md4-generic))
[ 4.756452] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY
driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
[ 4.931686] r8169 0000:01:00.0 enp1s0: Link is Down
[ 5.306429] usb 1-9: set resolution quirk: cval->res = 384
[ 5.306699] usbcore: registered new interface driver snd-usb-audio
[ 6.208052] wlp2s0: 80 MHz not supported, disabling VHT
[ 6.411522] wlp2s0: authenticate with 10:da:43:96:cd:1d (local
address=c8:94:02:05:c4:a9)
[ 6.584173] wlp2s0: send auth to 10:da:43:96:cd:1d (try 1/3)
[ 6.587522] wlp2s0: authenticated
[ 6.589564] wlp2s0: associate with 10:da:43:96:cd:1d (try 1/3)
[ 6.594139] wlp2s0: RX AssocResp from 10:da:43:96:cd:1d
(capab=0x1411 status=0 aid=12)
[ 6.594528] wlp2s0: associated
[ 6.669503] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as
advertised by 10:da:43:96:cd:1d
[ 12.051662] rfkill: input handler disabled

if it's at all important, my kernel params are here:
`ro rootflags=subvol=root noapic rhgb quiet`
(note: for some odd reason i have to use noapic otherwise my boot
screen will just be stuck on the HP logo)

ps: originally this was a windows desktop that i wiped to install
linux, ive heard its an issue with fastboot which i probably
originally had on before wiping my ssd

if you need any extra info i'm readily available in order to try and solve this,
thanks so much for your help.


2024-06-03 01:07:06

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: Realtek RTL8822CE PCIe Frequent Disconnection Issues on Linux

devin <[email protected]> wrote:
>
> [ 456.737481] wlp2s0: Connection to AP 10:da:43:96:cd:1d lost
> [ 458.102204] wlp2s0: 80 MHz not supported, disabling VHT
> [ 458.304693] wlp2s0: authenticate with 10:da:43:96:cd:1d (local
> address=c8:94:02:05:c4:a9)
> [ 458.367851] wlp2s0: send auth to 10:da:43:96:cd:1d (try 1/3)
> [ 458.375293] wlp2s0: authenticated
> [ 458.375666] wlp2s0: associate with 10:da:43:96:cd:1d (try 1/3)
> [ 458.381633] wlp2s0: RX AssocResp from 10:da:43:96:cd:1d
> (capab=0x1411 status=0 aid=12)
> [ 458.382018] wlp2s0: associated
> [ 458.458488] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as
> advertised by 10:da:43:96:cd:1d

Since your connections get lost after about 20 seconds, it's worth to give
a try to disable power save by

sudo iw wlan1 set power save off


> [ 475.619923] wlp2s0: Connection to AP 10:da:43:96:cd:1d lost
> [ 477.020238] wlp2s0: 80 MHz not supported, disabling VHT
> [ 477.221723] wlp2s0: authenticate with 10:da:43:96:cd:1d (local
> address=c8:94:02:05:c4:a9)
> [ 477.284976] wlp2s0: send auth to 10:da:43:96:cd:1d (try 1/3)
> [ 477.292366] wlp2s0: authenticated
> [ 477.292871] wlp2s0: associate with 10:da:43:96:cd:1d (try 1/3)
> [ 477.299281] wlp2s0: RX AssocResp from 10:da:43:96:cd:1d
> (capab=0x1411 status=0 aid=12)
> [ 477.299665] wlp2s0: associated
> [ 477.302567] wlp2s0: Limiting TX power to 30 (30 - 0) dBm as
> advertised by 10:da:43:96:cd:1d