You are not logged in.

#1 2022-12-18 11:05:22

SimonJ
Member
Registered: 2021-05-11
Posts: 119

[SOLVED] Wifi disconnecting

I have not had issues with wifi since installing but recently it has got worse and the last few days enough to start actively trying to resolve it.

lspci 
00:00.0 Host bridge: Intel Corporation Device 4c43 (rev 01)
00:01.0 PCI bridge: Intel Corporation Device 4c01 (rev 01)
00:02.0 VGA compatible controller: Intel Corporation RocketLake-S GT1 [UHD Graphics 750] (rev 04)
00:08.0 System peripheral: Intel Corporation Device 4c11 (rev 01)
00:14.0 USB controller: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller (rev 11)
00:14.2 RAM memory: Intel Corporation Tiger Lake-H Shared SRAM (rev 11)
00:14.3 Network controller: Intel Corporation Tiger Lake PCH CNVi WiFi (rev 11)
00:15.0 Serial bus controller: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 (rev 11)
00:15.1 Serial bus controller: Intel Corporation Tiger Lake-H Serial IO I2C Controller #1 (rev 11)
00:15.2 Serial bus controller: Intel Corporation Device 43ea (rev 11)
00:16.0 Communication controller: Intel Corporation Tiger Lake-H Management Engine Interface (rev 11)
00:17.0 SATA controller: Intel Corporation Device 43d2 (rev 11)
00:1c.0 PCI bridge: Intel Corporation Tiger Lake-H PCI Express Root Port #5 (rev 11)
00:1c.6 PCI bridge: Intel Corporation Device 43be (rev 11)
00:1d.0 PCI bridge: Intel Corporation Tiger Lake-H PCI Express Root Port #9 (rev 11)
00:1f.0 ISA bridge: Intel Corporation Device 4386 (rev 11)
00:1f.3 Audio device: Intel Corporation Tiger Lake-H HD Audio Controller (rev 11)
00:1f.4 SMBus: Intel Corporation Tiger Lake-H SMBus Controller (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-H SPI Controller (rev 11)
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980

Last journal

I currently have this /etc/NetworkManager/conf.d/wifi-power-save-off.conf

[connection]
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2

I also tried a systemd unit as well but nothing has worked long term.

The wifi works fine after a reboot and then after a day or two, it starts disconnecting, sometimes disabling wifi in netwrokmanager fixes for a while but then it comes back.

I do suspend the machine between uses so this may be the issue but I am lost as to what else to do.

Any pointers gratefully received.

Last edited by SimonJ (2022-12-24 10:25:33)

Offline

#2 2022-12-18 17:13:25

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Offline

#3 2022-12-18 17:23:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Wifi disconnecting

Do you have wpa_supplicant.service enabled? If so, disable it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2022-12-18 17:58:43

SimonJ
Member
Registered: 2021-05-11
Posts: 119

Re: [SOLVED] Wifi disconnecting

I have tried /etc/modprobe.d/iwlwifi.conf with no benefit.

If I systemctl stop wpa_supplicant.service  then use networkmanager to connect it is restarted again

systemctl status wpa_supplicant.service 
● wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; preset: disabled)
     Active: active (running) since Sun 2022-12-18 18:57:02 CET; 20s ago
   Main PID: 39911 (wpa_supplicant)
      Tasks: 1 (limit: 76789)
     Memory: 1.7M
        CPU: 48ms
     CGroup: /system.slice/wpa_supplicant.service
             └─39911 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

Dec 18 18:57:05 silex wpa_supplicant[39911]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Dec 18 18:57:09 silex wpa_supplicant[39911]: wlp0s20f3: Reject scan trigger since one is already pending
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=ES
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: SME: Trying to authenticate with c4:6e:1f:d1:13:8c (SSID='TPG2' freq=2432 M>
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: Trying to associate with c4:6e:1f:d1:13:8c (SSID='TPG2' freq=2432 MHz)
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: Associated with c4:6e:1f:d1:13:8c
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: WPA: Key negotiation completed with c4:6e:1f:d1:13:8c [PTK=CCMP GTK=CCMP]
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-CONNECTED - Connection to c4:6e:1f:d1:13:8c completed [id=0 id_s>
Dec 18 18:57:10 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-31 noise=9999 txrate=1000

The one I have not tried, and I will, is /etc/modprobe.d/iwlwifi.conf

Last edited by SimonJ (2022-12-18 17:59:43)

Offline

#5 2022-12-18 18:02:31

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Wifi disconnecting

SimonJ wrote:

I have tried /etc/modprobe.d/iwlwifi.conf with no benefit.

You've tried what in /etc/modprobe.d/iwlwifi.conf? You should share the file contents so we can spot any mistakes or omissions.

We should probably also check for conflicting services:

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
SimonJ wrote:

If I systemctl stop wpa_supplicant.service  then use networkmanager to connect it is restarted again

I don't think wpa_supplicant is causing this problem but you can switch to iwd instead, which is better anyway: https://wiki.archlinux.org/title/Networ … Fi_backend

EDIT: cfr actually asked you to disable the service rather than stop it:

# systemctl disable wpa_supplicant # or perhaps wpa_supplicant@${interface_name} but replace "{interface_name}" with the actual name of the interface

The reason being that NM should start wpa_supplicant itself so enabling that service can cause conflicts.

Last edited by Head_on_a_Stick (2022-12-18 18:06:13)

Offline

#6 2022-12-18 19:31:58

SimonJ
Member
Registered: 2021-05-11
Posts: 119

Re: [SOLVED] Wifi disconnecting

I have had

/etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=1 swcrypto=1

without any change and I have disabled wpa_supplicant.service

However it still reports as running after starting Networkmanager

systemctl status wpa_supplicant.service 
● wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; preset: disabled)
     Active: active (running) since Sun 2022-12-18 18:57:02 CET; 1h 30min ago
   Main PID: 39911 (wpa_supplicant)
      Tasks: 1 (limit: 76789)
     Memory: 1.8M
        CPU: 185ms
     CGroup: /system.slice/wpa_supplicant.service
             └─39911 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

Dec 18 20:26:27 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
Dec 18 20:26:27 silex wpa_supplicant[39911]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=ES
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: SME: Trying to authenticate with 04:25:c5:f8:32:00 (SSID='TPG' freq=2462 MH>
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: Trying to associate with 04:25:c5:f8:32:00 (SSID='TPG' freq=2462 MHz)
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: Associated with 04:25:c5:f8:32:00
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: WPA: Key negotiation completed with 04:25:c5:f8:32:00 [PTK=CCMP GTK=CCMP]
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-CONNECTED - Connection to 04:25:c5:f8:32:00 completed [id=0 id_s>
Dec 18 20:26:31 silex wpa_supplicant[39911]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-55 noise=9999 txrate=1000

I will switch to iwd and see how that goes, thank you.

Offline

#7 2022-12-18 19:37:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Wifi disconnecting

It's fine for wpa_supplicant to get started by NetworkManager. I was just saying to check you hadn't got it enabled separately because that can cause problems and I couldn't tell from the log. Just conflicting services is a common cause of disconnects and that was the only possible conflict I could see.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2022-12-20 11:35:45

SimonJ
Member
Registered: 2021-05-11
Posts: 119

Re: [SOLVED] Wifi disconnecting

OK, a couple of days of testing and it is still the same. To confirm :

systemctl status wpa_supplicant.service 
○ wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; preset: disabled)
     Active: inactive (dead)

and the latest journal with the disconnecting http://0x0.st/o5Ay.txt

Is it a Network manager thing or more basic than that?

Offline

#9 2022-12-21 13:00:23

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Wifi disconnecting

SimonJ wrote:

I have had

/etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=1 swcrypto=1

without any change

Did you try enabling antenna aggregation? How about disabling bluetooth co-existence? And did you check for firmware errors? Please read the entire section on iwlwifi.

Offline

#10 2022-12-21 13:06:39

SimonJ
Member
Registered: 2021-05-11
Posts: 119

Re: [SOLVED] Wifi disconnecting

Head_on_a_Stick wrote:
SimonJ wrote:

I have had

/etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=1 swcrypto=1

without any change

Did you try enabling antenna aggregation? How about disabling bluetooth co-existence? And did you check for firmware errors? Please read the entire section on iwlwifi.

I am going through the additions and testing, thanks for the help.

[Update]
This seems to be working:

/etc/modprobe.d/iwlwifi.conf

options iwlwifi 11n_disable=8
options iwlwifi bt_coex_active=0
options iwlwifi 11n_disable=1 swcrypto=1

Last edited by SimonJ (2022-12-24 10:25:12)

Offline

Board footer

Powered by FluxBB