Wi-Fi driver randomly glitching every hour after startup

I fitted this in the Hardware section since I suspect that a hardware bug is going on.

I have something very weird going on. At a random time after startup, between half an hour-3 hours, the Wi-Fi driver on my laptop just… stops. It just stops working. Interestingly, it displays the error sign for the wired connection symbol with a red X to the bottom right. I use wireless with the KDE desktop GUI for wifi.

The wifi section displays no networks around me when this happens. This indicates that the driver is somehow not able to interact with the kernel or is non-functioning. My question is why and how can I figure out the answer to “why?”

The only recent thing that happened to my installation was that I fully upgraded the system. I remember that along with the applications I had installed there was a kernel update. I didn’t physically damage the computer or do anything that would harm the physical integrity of the driver.

Can somebody guide me in how I could diagnose this?

1 Like

Hi there, @Tripping and welcome to the forum! :enos:

Apart from you using KDE, we know nothing about your system hard- and software, kernel and driver in use, etc.
So, please be so kind as to follow this guide for enabling any others to help you out (including yourself, perhaps) :wink:

https://discovery.endeavouros.com/forum-log-tool-options/how-to-include-systemlogs-in-your-post/2021/03/

1 Like

I had to get creative, so I used the Steam system information popup.

Computer Information:
    Manufacturer:  ASUSTeK COMPUTER INC.
    Model:  FX505DT
    Form Factor: Laptop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  AuthenticAMD
    CPU Brand:  AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx  
    CPU Family:  0x17
    CPU Model:  0x18
    CPU Stepping:  0x1
    CPU Type:  0x0
    Speed:  2300 Mhz
    8 logical processors
    4 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Supported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    "EndeavourOS Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  6.3.8-arch1-1
    X Server Vendor:  The X.Org Foundation
    X Server Release:  12101008
    X Window Manager:  KWin
    Steam Runtime Version:  steam-runtime_0.20230118.0

Video Card:
    Driver:  AMD AMD Radeon Vega 10 Graphics (raven, LLVM 15.0.7, DRM 3.52, 6.3.8-arch1-1)
    Driver Version:  4.6 (Compatibility Profile) Mesa 23.1.2
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 120 Hz
    VendorID:  0x1002
    DeviceID:  0x15d8
    Revision Not Detected
    Number of Monitors:  1
    Number of Logical Video Cards:  2
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 13.54" x 7.64" (15.51" diag)
                                            34.4cm x 19.4cm (39.4cm diag)
    Primary VRAM: 512 MB

Sound card:
    Audio device: USB Mixer

Memory:
    RAM:  7373 MB

VR Hardware:
    VR Headset: None detected

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Total Hard Disk Space Available:  478133 MB
    Largest Free Hard Disk Block:  169482 MB

Storage:
    Number of SSDs: 1
    SSD sizes: 512G
    Number of HDDs: 0
    

... please wait for Steam Runtime System Information report:

The dmesg reads as:

<4>[  314.360072] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.390061] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.415019] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.420094] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.450038] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.480041] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.483295] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.510047] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.517415] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.540075] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.552774] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.565208] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.565229] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.571679] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.574947] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.600081] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.619819] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.630045] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.660074] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.690105] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.720064] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.723295] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.750069] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.780056] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.810030] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.824616] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.840108] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.870069] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.897311] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.900509] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.927008] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.930268] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.960074] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  314.990068] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.020077] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.029412] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.050073] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.080077] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.110054] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.131830] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.140072] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.170057] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.200073] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.230054] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.234236] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.260088] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.290080] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.320063] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.336616] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.350082] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.380059] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.410079] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.413340] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.439047] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.442267] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.470035] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.473242] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.541403] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.551294] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.557364] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.560612] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.590083] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.620063] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.643838] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.650075] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.680057] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.703848] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.707106] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.746233] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.749471] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.767505] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.848645] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.851868] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.860084] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.869543] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.951013] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.954268] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  315.971999] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.053466] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.056667] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.070067] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.074402] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.155822] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.159065] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.162328] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.176673] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.258219] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.261472] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.278961] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.360634] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.363863] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.370072] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.381858] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.463034] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.466267] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  316.484214] rtw_8822ce 0000:04:00.0: pci bus timeout, check dma status
<4>[  317.938999] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<3>[  317.942261] rtw_8822ce 0000:04:00.0: failed to send h2c command
<3>[  317.945376] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[  319.859008] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<3>[  319.862300] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[  321.779017] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<3>[  321.782291] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[  323.915698] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<4>[  325.835712] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<4>[  327.965757] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<4>[  329.885800] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<4>[  331.805748] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<3>[  331.809188] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[  333.942444] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<4>[  335.859108] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state
<3>[  335.862719] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[  337.992441] rtw_8822ce 0000:04:00.0: firmware failed to leave lps state

The error message is now: “wlan0 could not be configured.” whenever the disconnect happens

Please tell me if you need any more diagnostics.

Your WiFi chip rtw_8822ce has some known issues.

One potential solution could be to disable power-saving.

Another one:

Manually setting the wifi connection with NetworkManager to 2.4GHz… that’s because the problem happens when the driver switches between 2.4GHz to 5Ghz and viceversa… So you set only one band (2.4GHz is better because signal propagates easily through obstacles, though slower than 5GHz).

Sounds good. Once I go a day without issue, I will mark it as the solution.

I don’t have power saving on, but I did connect to my 2.4 GHz version. I hope it works.

As a final note for now, the error that appears in dmesg after the error is:

timed out to flush pci tx ring[0]
<4>[ 1299.449153] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[1]
<4>[ 1299.449236] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[2]
<4>[ 1299.449319] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[3]
<4>[ 1299.449398] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[5]
<4>[ 1299.449476] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[6]
<3>[ 1299.452617] rtw_8822ce 0000:04:00.0: failed to send h2c command
<3>[ 1299.455667] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[ 1299.455986] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[0]
<4>[ 1299.456067] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[1]
<4>[ 1299.456146] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[2]
<4>[ 1299.456225] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[3]
<4>[ 1299.456304] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[5]
<4>[ 1299.456382] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[6]
<3>[ 1301.456650] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<4>[ 1301.475214] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[0]
<4>[ 1301.475288] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[1]
<4>[ 1301.475368] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[2]
<4>[ 1301.475452] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[3]
<4>[ 1301.475534] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[5]
<4>[ 1301.475617] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[6]
<4>[ 1301.557165] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[0]
<4>[ 1301.557254] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[1]
<4>[ 1301.557332] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[2]
<4>[ 1301.557410] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[3]
<4>[ 1301.557489] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[5]
<4>[ 1301.557567] rtw_8822ce 0000:04:00.0: timed out to flush pci tx ring[6]
<3>[ 1301.560640] rtw_8822ce 0000:04:00.0: failed to send h2c command
<3>[ 1316.301856] rtw_8822ce 0000:04:00.0: failed to send h2c command
<4>[ 1316.311950] rtw_8822ce 0000:04:00.0: firmware failed to report density after scan
<3>[ 1318.312155] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1320.345350] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1322.347163] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1322.347177] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1322.347179] rtw_8822ce 0000:04:00.0: failed to power on mac
<3>[ 1324.923890] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1324.923903] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1324.923905] rtw_8822ce 0000:04:00.0: failed to power on mac
<3>[ 1326.925625] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1326.925641] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1326.925644] rtw_8822ce 0000:04:00.0: failed to power on mac
<3>[ 1736.884344] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1736.884362] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1736.884365] rtw_8822ce 0000:04:00.0: failed to power on mac
<3>[ 1741.411911] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1741.411935] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1741.411938] rtw_8822ce 0000:04:00.0: failed to power on mac
<3>[ 1743.413262] rtw_8822ce 0000:04:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
<3>[ 1743.413277] rtw_8822ce 0000:04:00.0: mac power on failed
<3>[ 1743.413279] rtw_8822ce 0000:04:00.0: failed to power on mac

Thanks for your help.

1 Like

You’re welcome! I hope it’ll continue to work for you. :v:

BTW, there’s quite a list on kernel-related bugs for these chip-sets:
https://bugzilla.kernel.org/buglist.cgi?quicksearch=rtw88

And some more on your specific device, here:

So while the fix didn’t outright get rid of the problem, it made it more manageable. Now it happens a long time after startup, and turning the wifi on and off before it has the chance to fully disconnect seems to work almost like a jumpstart or a defibrillator.

I’ll try the power save config and hopefully, it will make it more tolerable.

Considering that this is already a known kernel bug, I think it’s best if I just mark it solved since it relies on the kernel devs to fix it in the next patch.

Thank you.

EDIT: The power saver borked the network daemon. Getting rid of the power saver config un-borked the daemon. WTF?

EDIT: My idiot-self forgot to add the [connection] flag at the top. This does indeed work.

1 Like

Someone came up with this, maybe it can help you:

I solved this problem by permanently disabling the power_save feature also known as power management for the wireless interface of my KDE NEON HP Laptop.
Use a text editor to open the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Replace the content of the file with the below text.

[connection]
wifi.powersave = 2

Then reboot your computer.
Problem solved.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.