lwfinger / rtw88

A backport of the Realtek Wifi 5 drivers from the wireless-next repo.
599 stars 175 forks source link

[rtw_8822ce] frequent disconnections #198

Open interbattles opened 3 months ago

interbattles commented 3 months ago

over my past 3 linux installations i've used both:

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:

- networks working (but being disconnected frequently):

at different points i switched kernel versions between

using fedora40 workstation kde, linux mint, etc

interesting logs i got in disconnects

[  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 its 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

interbattles commented 3 months ago

hope to have this solved as soon as possible :smiley_cat: i am super grateful for this repo, thanks in advance to maintainers :>

interbattles commented 2 months ago

still having this ;/

dubhater commented 2 months ago

RTL8822CE has a good chance of being fixed, if you report the problem in the right place. That would be linux-wireless [at] vger.kernel.org. Make sure you send only plain text emails. The list rejects HTML emails. The title you used here is good. Also include the output of iw dev wlp2s0 station dump in your email.

interbattles commented 2 months ago

after trying many solutions yesterday it seems that ive stopped getting disconnections :grin:

i dont know which specifically did it but i think it's because while the power saving mode for the network adapter was off, i turned off power saving mode for the PCIe using TLP since this has been a major issue for me for months now i would like to give an extensive list of all the things ive tried incase it helps anyone who is just as stuck as me, hopefully somebody can fix their own aswell:

in tlp, the things i added were:

WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=off

and

RUNTIME_PM_DISABLE="02:00.0" #(the network controller pcie)

the relevant kernel parameters that i'm using are pcie_aspm=off pci=noacpi and iommu=soft (i think these two are from my cpu because originally it only listed one core)

i do not have power_save set in network manager anymore but its defaulted to off anyway

another notable thing that i did was update the development package from the aur (i am using rtw88-dkms-git) AND blacklisted additional modules to the following

-blacklist rtw88_8723de
 blacklist rtw88_8723d
-blacklist rtw88_8821ce
+blacklist rtw88_8723de
+blacklist rtw88_8723ds
+blacklist rtw88_8723du
 blacklist rtw88_8821c
-blacklist rtw88_8822be
+blacklist rtw88_8821ce
+blacklist rtw88_8821cs
+blacklist rtw88_8821cu
 blacklist rtw88_8822b
-blacklist rtw88_8822ce
+blacklist rtw88_8822be
+blacklist rtw88_8822bs
+blacklist rtw88_8822bu
 blacklist rtw88_8822c
+blacklist rtw88_8822ce
+blacklist rtw88_8822cs
+blacklist rtw88_8822cu
 blacklist rtw88_core
 blacklist rtw88_pci
+blacklist rtw88_sdio
+blacklist rtw88_usb

here is my personal modprobe config

blacklist rtw88_8821ce rtw_8821ce rtw88_core rtw88_pci

options rtw_pci disable_aspm=1
#options rtw88_pci disable_aspm=1 disable_msi=y 

options rtw_core disable_lps_deep=y 
#options rtw88_core disable_lps_deep=y 
# options rtw88_pci disable_msi=y disable_aspm=y

i will KEEP THIS OPEN and continue to tinker with the solutions i tried to see which solution in particular was the one that worked

io-qar commented 1 month ago

Hey, I also have RTW8822CE and had experienced disconnections and even hang of the system (I tried Ubuntu and Fedora). Then I find out everything is running smoothly with these options set in the configuration file:

options rtw_pci disable_aspm=y disable_msi=y
options rtw_core disable_lps_deep=y

and the blacklist configuration:

blacklist rtw88_8822ce
blacklist rtw88_pci
blacklist rtw88_core
dubhater commented 1 month ago

If your system hangs and disable_aspm=y makes it stop, you should report this to the linux-wireless@vger.kernel.org mailing list. The driver can be modified so you don't have to use the module parameter anymore.