You are not logged in.

#1 2024-06-15 10:10:43

someoneetc
Member
Registered: 2022-08-01
Posts: 6

Another RTL8821CE issue: ping swinging from 62ms to 200ms

Hello everybody.

First of all, I' ve already checked some of the other posts(the ones I found) concerning similar issues but I haven't found anything useful for now :-/
The problem is that my ping is very unstable, here is an example:

PING archlinux.org (95.217.163.246) 56(84) bytes of data.
64 bytes from archlinux.org (95.217.163.246): icmp_seq=1 ttl=47 time=320 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=2 ttl=47 time=139 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=3 ttl=47 time=162 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=4 ttl=47 time=287 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=5 ttl=47 time=106 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=6 ttl=47 time=128 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=7 ttl=47 time=151 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=8 ttl=47 time=174 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=9 ttl=47 time=196 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=10 ttl=47 time=117 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=11 ttl=47 time=141 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=12 ttl=47 time=163 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=13 ttl=47 time=185 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=14 ttl=47 time=105 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=15 ttl=47 time=126 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=16 ttl=47 time=150 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=17 ttl=47 time=171 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=18 ttl=47 time=194 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=19 ttl=47 time=115 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=20 ttl=47 time=136 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=21 ttl=47 time=158 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=22 ttl=47 time=180 ms
64 bytes from archlinux.org (95.217.163.246): icmp_seq=23 ttl=47 time=203 ms

Provided that, with my other devices, everything looks fine(for example, my phone has an average ping of 22), I' m quite clueless on what else I should try.
I have already tried to replace rtw88 with https://aur.archlinux.org/packages/rtl8821ce-dkms-git but I've had no luck.

By the way, here is the output from journalctl -b 0

https://pastebin.com/YZa3LSFy

and here is the output of lshw -C network

  *-network
       description: Wireless interface
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 00
       serial: cc:5e:f8:03:2d:67
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw_8821ce driverversion=6.9.4-arch1-1 firmware=N/A ip=192.168.1.162 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:74 ioport:f000(size=256) memory:fce00000-fce0ffff

Any idea on what to do?

Thank you :-)

[EDIT/UPDATE] as others reported for similar issues, sometimes, when the situation becomes critical(many random disconnections and very bad ping), the journal is flooded with this message

rtw_8821ce 0000:02:00.0: failed to send h2c command

so I think that the problem is definitely the driver.
To "fix it" partially I have to restart the profile(I use netctl)

Last edited by someoneetc (2024-06-16 09:46:25)

Offline

#2 2024-06-17 06:48:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,272

Re: Another RTL8821CE issue: ping swinging from 62ms to 200ms

"failed to send h2c command" would be rtw_8821ce specific?
Did you try "rtw88_core.disable_lps_deep=Y rtw88_pci.disable_aspm=Y" for the rtw88 module?

Offline

#3 2024-06-19 16:41:32

cantabile
Member
Registered: 2010-06-29
Posts: 48

Re: Another RTL8821CE issue: ping swinging from 62ms to 200ms

You should try this version of rtw88: https://aur.archlinux.org/packages/rtw88-dkms-git It has some extra fixes for RTL8821C which I didn't feel the need to send upstream so far.

"failed to send h2c command" suggests that the wifi firmware is very busy or stopped working.

Also please ping your AP instead of archlinux.org to rule out problems with your internet connection.

It's not clear to me if you tried to disable the power saving:

iw wlan0 set power_save off

Driver for every Realtek wifi 6 and 7 USB adapter: https://github.com/morrownr/rtw89

Offline

Board footer

Powered by FluxBB