Wifi connection randomly cuts off and after clicking WiFi icon it just comes back

I am a newbie to linux, but I had a realtek card too and kinda had the same issue.So I am giving my input.
Can you post your
lspci -k
There you can see which all network drivers are installed and in use.

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: pcieport
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
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: pcieport
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: pcieport
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
Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: ASUSTeK Computer Inc. Device 1e21
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 16ef
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 16ef
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: ASUSTeK Computer Inc. Device 208f
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
Subsystem: AzureWave Device 3750
Kernel driver in use: rtw_8822ce
Kernel modules: rtw88_8822ce
04:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5404 (rev 03)
Subsystem: Micron Technology Inc Device 1100
Kernel driver in use: nvme
Kernel modules: nvme
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)
Subsystem: ASUSTeK Computer Inc. Device 16ef
Kernel driver in use: amdgpu
Kernel modules: amdgpu
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
Subsystem: ASUSTeK Computer Inc. Device 16ef
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
Kernel driver in use: ccp
Kernel modules: ccp
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
Subsystem: ASUSTeK Computer Inc. Device 201f
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
Subsystem: ASUSTeK Computer Inc. Device 201f
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
Subsystem: DekTec Digital Video B.V. Device 1043
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_sof_amd_renoir
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
DeviceName: HD Audio Controller
Subsystem: ASUSTeK Computer Inc. Device 1a0e
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: ahci
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
Subsystem: ASUSTeK Computer Inc. Device 1e21
Kernel driver in use: ahci

This means nothing, your router could still be part of the problem.

  • Make sure you reboot both your router and computer.
  • If power cycling your router did not improve your connectivity then a full reset of your router may be required, see link below:
    How to Reset Your Wireless Router
  • Install the newest firmware available for your router.
  • Configure and test out a static IP address via MAC address association in your router's setup utility.

Other things to try:

  • Install and test different kernels.
  • Disable MAC address randomization.
  • Test out Garuda live boot disks with different DE's, and boot disks from other distros. If your WiFi works on any other live media, report on the kernel and driver in use.
  • Have you tested your laptop on any alternate networks?

Some of these were already suggested, but you never confirmed if you'd actually implemented these suggestions. Please provide feedback on every suggestion given, and every question put to you.

3 Likes

Yes I tried everything suggested, but unfortunately nothing worked.
I will try your suggestions and see what happens.
Thank you.

1 Like

According to this no other driver other than the default(faulty) one is installed.
So I recommend to install this driver
(realtek-linux/RTL8822CE at master · XAIOThaifeng/realtek-linux · GitHub)
its name in pamac is rtl88x2ce-dkms. Install that and send your lspci -k

Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
DeviceName: WLAN
Subsystem: Hewlett-Packard Company Device 831a
Kernel driver in use: rtl8821ce
Kernel modules: rtw88_8821ce, 8821ce

btw mine looks like this rtw88_8821ce being the fauly one and 8821ce(which I installed through pamac) being in use

Do i have to delete my default driver before I try to install the other one?

I'll wait for your reply so I don't mess things up

Update: Saw your thread. so if the above solutions won't work reinstalling garuda might help right?

So, yesterday I tried to log in my router, but it wouldn't let me to. After some struggle I called to company whose internet and router I am using. Company told me that they don't allow their users to configure settings on their own and they could do it for me. So I made them do hard reset and told them if there are any new firmware install it. According to them they did all of that.

So I'll see how it will play out. If this method won't work then I'll try to install different driver as
Odin5133 suggested below

So i did what u have told me to do. I did
sudo pacman -Syu rtl88x2ce-dkms
Checked lspci -k
Nothing was changed. Then I restarted my laptop and there was no connection at all.
I checke lscpi -k
and this wass the output:

Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
Subsystem: AzureWave Device 3750
Kernel modules: rtw88_8822ce

I couldn't see kernel driver in use: section

Followed solution on your thread and this is how lspci-k looks right now

Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
Subsystem: AzureWave Device 3750
Kernel driver in use: rtw_8822ce
Kernel modules: rtw88_8822ce, rtw_8822ce

didn't I install the same driver though?

quick recap of what I did.

Disabled Mac address randomization.
Disabled IPv6
Follow the solution of this thread step-by-step:RTL8821CE - When idle, wifi drops and works only after reconnecting - #14 by tbg

contacted internet provider and they fully restarted my router settings.

UPDATE: connection cut still happened. This time I detected it with steam while playing online game for testing reasons. I got disconnected and after clicking WiFi icon magic happened and I got reconnected.

UPDATE:So after connection cut my device was not even detecting internet connection so I had to Snap back.

  1. You had Windows installed just prior to installing Garuda?
  2. Did you turn off any Fast Boot or related settings in your BIOS that interfere with full hardware detection?

Here's the deal; Windows likes to "capture" hardware. And sometimes BIOS have hardware detection turned to minimal in order to accomplish faster boot times. Those BIOS settings sometimes need to be adjusted when coming from Windows to Linux.

1 Like

1.Yes I was running windows for 1 year before switching to Garuda.
2.Haven't messed with BIOS settings during installation

How can I adjust BIOS settings exactly.
Thank you for your response.

You can enter the BIOS at boot time, usually by pressing a key such as F2 or F12. Every BIOS manufacturer has a slightly different method. Same goes for Fast Boot. It has a couple of different names, but they all do the same thing; speed up boot by skipping full hardware detection for what the operating system--presumably Windows--already thinks it knows is there. That can interfere with it being detected and fully utilized in Linux. To avoid that, ensure your BIOS does not skip that important step.

But it could also be some bastardized power-saving feature, who knows. And I would also try different kernels. But first, I would undo whatever harm I've already done by installing packages willy-nilly.

1 Like

so now the new driver is installed but it is not being used by the kernel, so copy paste this code in the terminal

echo -e "options rtw_pci disable_aspm=1\nblacklist rtw88_8822ce" | sudo tee /etc/modprobe.d/rtl8822ce.conf

This will make a file to blacklist the original one.and restart.

1 Like

Btw it is a problem with many/all realtek cards and tbh reinstalling garuda didnt fixed the problem, installing the new driver and blacklisting the old one did.But at that point the thread was closed so I didnt knew how to change the solution.

Ok so I'll go now enter BIOS settings and enable hardware detection setting. Did I get it right?

I believe this command was last command in your threads solution so i had it enabled, but didn't work for some reason.
edit: now that I think about it maybe I needed to download different driver than the one mentioned in your threads solution

did you change the rtw88_8821ce(which is my wifi driver) to rtw88_8822ce(which is your wifi driver) in that command?
Maybe once type this command and check the result, I have modified it for your use case

This is my lpci-k right now

Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
Subsystem: AzureWave Device 3750
Kernel driver in use: rtw_8822ce
Kernel modules: rtw88_8822ce

and after I did solution mentiioined in your thread lspci-k was like that:

Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
Subsystem: AzureWave Device 3750
Kernel driver in use: rtw_8822ce
Kernel modules: rtw88_8822ce, rtw_8822ce