Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtw_8822ce] frequent disconnections #198

Open
interbattles opened this issue Jun 1, 2024 · 4 comments
Open

[rtw_8822ce] frequent disconnections #198

interbattles opened this issue Jun 1, 2024 · 4 comments

Comments

@interbattles
Copy link

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

  • rtw_8822ce (this, 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

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
Copy link
Author

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

@interbattles
Copy link
Author

still having this ;/

@dubhater
Copy link
Collaborator

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
Copy link
Author

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

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

  • note: i am a complete noob and have basically no idea what i'm doing so alot of this stuff probably sounds dumb
  • another note: those who arent aware (as i dont think anyone has mentioned it here) the legend himself has passed away at 84 , still dedicated to writing software to help this community, thank you for your contributions 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants