WiFi stops working semi-randomly

For preface, this problem persisted through my install of Endeavour until I decided to get an Ethernet to USB adapter for my laptop. The issue goes like this, I start up the laptop, I am already connected to Wifi as I set it up to auto-connect. The wifi works from a range of 3-10 mins. Randomly, wlan0’s status is set to DOWN and DORMANT and when I try to start it again using sudo ip link set wlan0 up it gives me the error RTNETLINK answers: Connection timed out.

The problem persists even after; turning off sleep mode, rebooting, and adding rules to my modprobe.

Here are the results of dmesg

Here is my ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp4s0f3u1u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 94:05:bb:18:37:50 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether 0a:0e:19:13:9e:5f brd ff:ff:ff:ff:ff:ff permaddr e0:0a:f6:af:15:87

Here is my lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
03:00.0 Non-Volatile memory controller: Micron Technology Inc 2450 NVMe SSD (DRAM-less) (rev 01)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c2)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
05:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

my lsusb

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:4853 Realtek Semiconductor Corp. Bluetooth Radio
Bus 003 Device 002: ID 10a5:9800 FPC FPC Sensor Controller L:0001 FW:16.26.23.14
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b725 Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and my rfkill

ID TYPE      DEVICE                 SOFT      HARD
 0 wlan      ideapad_wlan      unblocked unblocked
 1 bluetooth ideapad_bluetooth   blocked unblocked
 2 bluetooth hci0                blocked unblocked
 3 wlan      phy0              unblocked unblocked

If someone could help me out, you’d be a lifesaver, also let me know it i need to my topic to kernal and hardware.

What does this show

inxi -Na

This is what it shows

Network:
  Device-1: Realtek vendor: Lenovo driver: rtw89_8852be v: kernel
    modules: rtw_8852be pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:b852 class-ID: 0280

I guess you could try the git version rtw89-dkms-git
Not sure if you installed any package or it’s running on a kernel module?

It was running on kernal module. I installed what you gave me but it still does not work even after reloading using modprobe. Interestingly when I was reloading the driver I got this error,

thomas@thomas-laptop ~/rtw89-dkms-git (master)> sudo modprobe -rv rtw_8852be
thomas@thomas-laptop ~/rtw89-dkms-git (master)> sudo modprobe -v rtw_8852be
insmod /lib/modules/6.4.2-arch1-1/updates/dkms/rtw_8852be.ko.zst 
modprobe: ERROR: could not insert 'rtw_8852be': Device or resource busy

Not sure if this is helpful but its something

Ok so I rebooted the system, now wlan0 doesn’t show up at all. Im going to check the internet on how to solve this but just thought I’d update.

Try removing the package then and hopefully it comes back on boot.

Edit: This is the other package recommended for that chip. :man_shrugging:

Edit2: As far as i know the 8852 should work out of the box on these newer kernels.

Yeah uninstalling and reinstalling didnt work, now my wlan0 doesnt even show up on anything. inxi -Na just shows No PCI device data found. Im going to reboot again without my ethernet plugged in just incase its getting confused.

Didn’t you just leave the git package uninstalled and then reboot?

Yes I did that, it still didn’t show up

Did you try using modprobe rtw_8852be

Just tried it, it gave me this message in my dmesg

[  341.260594] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  341.260773] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  341.279811] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[  341.279819] cfg80211: failed to load regulatory.db
[  341.345494] rtw89core: loading out-of-tree module taints kernel.
[  341.345501] rtw89core: module verification failed: signature and/or required key missing - tainting kernel

The only thing i know is this is a newer WiFi 6 chip

Did you try

sudo modprobe -r rtw_8852be
sudo modprobe rtw_8852be

Yes, the device still isnt found

Darn , sorry i got you messed up worse than it was. :disappointed:

Don’t worry about it man lol, this is a clean install im not super attached to it. Plus atleast you could help

According to this post #6 the dkms package should work.

https://bbs.archlinux.org/viewtopic.php?id=281839

Still not working, I think I’ll reinstall so I can be back at square one. Be back in ab 20-30 mins.

Alright im reinstalled, this time in the cinnamon enviroment. The issue is still that I am able to connect and use wifi when I boot, but after a minute or so the wireless wifi turns itself off and im forced to use ethernet or to reboot.

Edit: Im going to see if I can open my laptop up to see if the Wifi module is intact and not burnt out as this might also be a possibility