Intermitent Wifi Issues on Ubuntu Studio 24.04.2 LTS, Lenovo IdeadPad 5 Flex 14ABR8

Ubuntu Version:
Ubuntu Studio 24.04.2 LTS

Desktop Environment (if applicable):
KDE

Problem Description:
The WiFi works for a while until it does not. At boot it works fine, but after a while the following dialog appears, and wifi shuts down. Ethernet keeps working if I connect a hub and a wifi cable. Its not the hotspot that stops working, since my android phone, iPad all connect to it fine without any issues.
Screenshot_20250617_214816

Ocasionally the touchpad also seems to stop working, and it seems related, but its not 100% overlapping. However the touch screen never stops working. My main goal for now is wireless, I just mention the touchpad issue cause it may help the diagnostic.

Relevant System Information:
Ubuntu Studio 24.04.2 LTS

rui@music-laptop:~$ uname -a
Linux music-laptop 6.11.0-1014-lowlatency #15~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  6 12:39:24 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Laptop model: Lenovo IdeadPad 5 Flex 14ABR8


rui@music-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 5986:214d Bison Electronics Inc. Integrated Camera
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 1c7a:0576 LighTuning Technology Inc. EgisTec EH576
Bus 003 Device 003: ID 0bda:4853 Realtek Semiconductor Corp. Bluetooth Radio
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Screenshots or Error Messages:
See above.

What I’ve Tried:
I have also tried the latest version of Ubuntu (not the LTS, not studio flavor), and the latest version of Linux mint, and all have the same issue. I searched the forum for this and found no topics. Around the internet posts like this seem to suggest upgrading the kernel, but i’m on 6.11 that should be recent enough.
https://forums.linuxmint.com/viewtopic.php?t=403131
In any case I need a low-latency kernel, maybe those don’t have the correct tree merged in? maybe someone could confirm this…

Thank you very much for the time reading this post.

Any results from terminal for lspci -nnk | grep -iA3 net

Both when not working and working

rui@music-laptop:~$ lspci -nnk | grep -iA3 net
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller [10ec:b852]
        Subsystem: Lenovo RTL8852BE PCIe 802.11ax Wireless Network Controller [17aa:4853]
        Kernel driver in use: rtw89_8852be
        Kernel modules: rtw89_8852be
03:00.0 Non-Volatile memory controller [0108]: Sandisk Corp WD PC SN740 NVMe SSD 512GB (DRAM-less) [15b7:5016] (rev 01)

Any results for sudo dmesg | egrep -i 'rtw89|8852'

First of all @Jeremy31 thanks for taking time to help.

Today the WiFi was annoyingly stable, so it took a bit to get the logs, but in the end it failed again. This is what makes it so frustrating, it works fine then it does not.

Here is what dmesg and kernel.log report

2025-06-19T00:27:01.429785+01:00 music-laptop kernel: wlp2s0: authenticate with 24:2f:d0:0f:75:ba (local address=c0:35:32:1c:c1:cf)
2025-06-19T00:27:01.429804+01:00 music-laptop kernel: wlp2s0: send auth to 24:2f:d0:0f:75:ba (try 1/3)
2025-06-19T00:27:01.482813+01:00 music-laptop kernel: wlp2s0: authenticate with 24:2f:d0:0f:75:ba (local address=c0:35:32:1c:c1:cf)
2025-06-19T00:27:01.482824+01:00 music-laptop kernel: wlp2s0: send auth to 24:2f:d0:0f:75:ba (try 1/3)
2025-06-19T00:27:01.576787+01:00 music-laptop kernel: wlp2s0: authenticated
2025-06-19T00:27:01.577808+01:00 music-laptop kernel: wlp2s0: associate with 24:2f:d0:0f:75:ba (try 1/3)
2025-06-19T00:27:01.605121+01:00 music-laptop kernel: wlp2s0: RX AssocResp from 24:2f:d0:0f:75:ba (capab=0x1011 status=0 aid=2)
2025-06-19T00:27:01.714799+01:00 music-laptop kernel: wlp2s0: associated
2025-06-19T00:27:05.005811+01:00 music-laptop kernel: input: MX Anywhere 2S Keyboard as /devices/virtual/misc/uhid/0005:046D:B01A.0004/input/input24
2025-06-19T00:27:05.005830+01:00 music-laptop kernel: input: MX Anywhere 2S Mouse as /devices/virtual/misc/uhid/0005:046D:B01A.0004/input/input25
2025-06-19T00:27:05.005834+01:00 music-laptop kernel: hid-generic 0005:046D:B01A.0004: input,hidraw3: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2S] on c0:35:32:1c:c1:d0
2025-06-19T00:27:19.898797+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: failed to pre-release fwcmd
2025-06-19T00:27:19.948790+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: rtw89: failed to leave lps state
2025-06-19T00:27:19.948801+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: write rf busy swsi
2025-06-19T00:27:19.949793+01:00 music-laptop kernel: message repeated 17 times: [ rtw89_8852be 0000:02:00.0: write rf busy swsi]
2025-06-19T00:27:19.952754+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:27:19.952762+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:27:20.448766+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: firmware failed to ack for leaving ps mode
2025-06-19T00:27:20.498776+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: rtw89: failed to leave lps state
2025-06-19T00:27:20.498783+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: write rf busy swsi
2025-06-19T00:27:20.499799+01:00 music-laptop kernel: message repeated 17 times: [ rtw89_8852be 0000:02:00.0: write rf busy swsi]
2025-06-19T00:27:20.593774+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 0
2025-06-19T00:27:20.593812+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 1
2025-06-19T00:27:20.593822+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 2
2025-06-19T00:27:20.594752+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 3
2025-06-19T00:27:20.594757+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 8
2025-06-19T00:27:20.594760+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 9
2025-06-19T00:27:20.614767+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 0
2025-06-19T00:27:20.614781+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 1
2025-06-19T00:27:20.614784+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 2
2025-06-19T00:27:20.614786+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 3
2025-06-19T00:27:20.614788+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 8
2025-06-19T00:27:20.614789+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: timed out to flush pci txch: 9
2025-06-19T00:27:20.936813+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: FW does not process h2c registers
2025-06-19T00:27:20.936831+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:27:20.936834+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:27:20.936839+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: write rf busy swsi
2025-06-19T00:27:20.936842+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: write rf busy swsi
2025-06-19T00:27:20.936844+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:27:21.001790+01:00 music-laptop kernel: message repeated 1001 times: [ rtw89_8852be 0000:02:00.0: read rf busy swsi]

This goes on for a while and ends like this:

2025-06-19T00:42:15.395784+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: read rf busy swsi
2025-06-19T00:42:15.395785+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: write rf busy swsi
2025-06-19T00:42:15.400750+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: FW does not process h2c registers
2025-06-19T00:42:15.400753+01:00 music-laptop kernel: rtw89_8852be 0000:02:00.0: HW scan failed with status: -110

Once more, thank for your time!

In terminal echo "options rtw89_pci disable_clkreq=y disable_aspm_l1=y disable_aspm_l1ss=y"| sudo tee /etc/modprobe.d/rtw89.conf
Then reboot

Found that at https://bbs.archlinux.org/viewtopic.php?pid=2102231#p2102231

1 Like

Its worth a try, thanks, I will report back!