Wifi drop regularly

Hello everyone,
I am new to Fedora and decided to use it full time on my LG gram laptop, but I have a wifi problem: it drops regularly (usually I just click on the wifi name directly and it reconnects, but never showed it was disconnected).

I am using this card :

00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01)

I got the log from journalctl but I wasn’t able to find out the reason.

nov. 08 18:37:44 fedaul NetworkManager[2399]: <info>  [1699465064.0534] dhcp4 (wlp0s20f3): state changed new lease, address=10.220.8.224
nov. 08 18:37:44 fedaul systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
nov. 08 18:37:44 fedaul systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
nov. 08 18:37:44 fedaul audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-di>
nov. 08 18:37:54 fedaul systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
nov. 08 18:37:54 fedaul audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dis>
nov. 08 18:39:49 fedaul NetworkManager[2399]: <info>  [1699465189.0067] manager: NetworkManager state is now CONNECTED_SITE
nov. 08 18:39:49 fedaul systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
nov. 08 18:39:49 fedaul systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
nov. 08 18:39:49 fedaul audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-di>
nov. 08 18:39:59 fedaul systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
nov. 08 18:39:59 fedaul audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dis>

# I think I got the wifi back here without having to do anything

nov. 08 18:44:08 fedaul NetworkManager[2399]: <info>  [1699465448.2587] manager: NetworkManager state is now CONNECTED_GLOBAL
nov. 08 18:44:08 fedaul systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
nov. 08 18:44:08 fedaul systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
nov. 08 18:44:08 fedaul audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher co>
nov. 08 18:44:18 fedaul systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
nov. 08 18:44:18 fedaul audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher com>

Btw I had the same problem in Fedora 38 and I have already disabled wifi power management, that didn’t solve the issue.

I hope someone can help me :slight_smile:

Please post the output of inxi -Nxxx and lspci -nnk so we have detailed info.

Sure, here are the results.

Result of inxi -Nxxx:

Network:
  Device-1: Intel Raptor Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f1 class-ID: 0280

Result of lspci -nnk:

00:00.0 Host bridge [0600]: Intel Corporation Raptor Lake-P/U 4p+8e cores Host Bridge/DRAM Controller [8086:a707]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: i915
	Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant [8086:a71d]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: proc_thermal_pci
	Kernel modules: processor_thermal_device_pci
00:06.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port [8086:a74d]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: pcieport
00:06.2 PCI bridge [0604]: Intel Corporation Device [8086:a73d]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: pcieport
00:07.0 PCI bridge [0604]: Intel Corporation Raptor Lake-P Thunderbolt 4 PCI Express Root Port #2 [8086:a72f]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: pcieport
00:07.3 PCI bridge [0604]: Intel Corporation Device [8086:a71f]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: pcieport
00:08.0 System peripheral [0880]: Intel Corporation GNA Scoring Accelerator module [8086:a74f]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
00:0a.0 Signal processing controller [1180]: Intel Corporation Raptor Lake Crashlog and Telemetry [8086:a77d] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: intel_vsec
	Kernel modules: intel_vsec
00:0d.0 USB controller [0c03]: Intel Corporation Raptor Lake-P Thunderbolt 4 USB Controller [8086:a71e]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: xhci_hcd
00:0d.3 USB controller [0c03]: Intel Corporation Raptor Lake-P Thunderbolt 4 NHI #1 [8086:a76d]
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: thunderbolt
	Kernel modules: thunderbolt
00:14.0 USB controller [0c03]: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller [8086:51ed] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Alder Lake PCH Shared SRAM [8086:51ef] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
00:14.3 Network controller [0280]: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:51f1] (rev 01)
	Subsystem: Intel Corporation Device [8086:0094]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 [8086:51e8] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: intel-lpss
00:15.1 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 [8086:51e9] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: intel-lpss
00:16.0 Communication controller [0780]: Intel Corporation Alder Lake PCH HECI Controller [8086:51e0] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1c.0 PCI bridge [0604]: Intel Corporation Alder Lake-P PCH PCIe Root Port #4 [8086:51bb] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Raptor Lake LPC/eSPI Controller [8086:519d] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Raptor Lake-P/U/H cAVS [8086:51ca] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: sof-audio-pci-intel-tgl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-P PCH SPI Controller [8086:51a4] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
01:00.0 Non-Volatile memory controller [0108]: SK hynix Platinum P41/PC801 NVMe Solid State Drive [1c5c:1959]
	Subsystem: SK hynix Platinum P41/PC801 NVMe Solid State Drive [1c5c:1959]
	Kernel driver in use: nvme
	Kernel modules: nvme
02:00.0 Non-Volatile memory controller [0108]: Micron/Crucial Technology P2 [Nick P2] / P3 / P3 Plus NVMe PCIe SSD (DRAM-less) [c0a9:540a] (rev 01)
	Subsystem: Micron/Crucial Technology Device [c0a9:5021]
	Kernel driver in use: nvme
	Kernel modules: nvme
57:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
	Subsystem: LG Electronics, Inc. Device [1854:0488]
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci

I pasted everything, but I think the only useful part is

00:14.3 Network controller [0280]: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:51f1] (rev 01)
	Subsystem: Intel Corporation Device [8086:0094]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

This is the important part from which we see that the chipset id for the wifi chip is
8086:51f1:8086:0094

It is using the iwlwifi driver as anticipated for intel chipsets but the issue is finding what causes it to drop regularly. You may check with that laptop and perform a probe at the linux hardware database to see what it may tell you. Sometimes minor changes in the chipset can affect performance.

Intel has historically done well in keeping the drivers up to date but occasionally there is a small lag between the hardware release and the release of the updated drivers. It often may need feedback in the form of filing a bug for issues with the newer hardware for the problems to become known.

Someone with more experience than I may be able to add to the troubleshooting suggestions.

Just as an additional note:
The log snippet you posted above is truncated at the right (ends with ‘>’) so we cannot see the full content of the messages. It is always a good idea to try and have everything included so the full details are available.

I also note that every disconnect & connect message is followed by an audit message with selinux attributes reported. This may be an issue with selinux interfering with wifi. We cannot tell exactly what the report is about since those lines are the ones that are truncated – though it clearly is related to network manager.
Maybe the simple act of running sudo restorecon -R / to reset all selinux context on the entire system may fix the problem. Restorecon may take some time to complete since it checks and verifies the context of every file on the entire system. The same may be done at boot time by using sudo touch /.autorelabel before shutting down then patiently waiting for the check and relabel to complete before the system will finish booting (restorecon does not interfere with normal operation of a running system in most cases).

1 Like

Thank you for your answer. I’ll try to run the command. If the problem happen again, I will make sure to post the full log :slight_smile: