Periodic WiFi connection issues that resolve after reconnecting

I installed Manjaro w/ KDE recently and my WiFi has been acting strange since installation. Despite staying connected, it periodically stops working until I disconnect and reconnect.

Network manager says “limited connectivity”, DNS resolving fails (pinging fails and matray pops up with a “Temporary failure in name resolution” in manjaro.moson.eu), and no webpages load. Discord can sometimes receive messages but can’t send them. However, existing connections to game servers (i.e. Minecraft) continue to work fine.

I have an Intel AC-8265. My issue appears related to another post (I can’t post links though), so I tried installing iwlwifi-next and changing the .conf files, but this only made the issue less frequent. The issue wasn’t resolved for that user either, and there wasn’t any more replies. I also tried updating to the latest kernel, 5.16r6.

Interestingly, a similar issue was present (less frequently) on Windows; no DNS resolving or sending Discord messages until reconnecting. Perhaps it’s a driver issue present in both OSes, or maybe an issue with my hardware?

Inxi displays the following

Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel
    bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Full Inxi output
System:
  Kernel: 5.16.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
    root=UUID=aee042e1-281d-4f37-a338-0c84d4d382fe rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: UX430UAR v: 1.0 serial: <filter>
  Mobo: ASUSTeK model: UX430UAR v: 1.0 serial: <filter>
    UEFI: American Megatrends v: UX430UAR.308 date: 04/17/2019
Battery:
  ID-1: BAT0 charge: 12.4 Wh (56.9%) condition: 21.8/48.9 Wh (44.5%)
    volts: 11.6 min: 11.6 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: Charging cycles: 1548
Memory:
  RAM: total: 7.62 GiB used: 5.75 GiB (75.4%)
  Array-1: capacity: 8 GiB slots: 2 EC: None max-module-size: 4 GiB
    note: est.
  Device-1: ChannelA-DIMM0 size: 4 GiB speed: spec: 2133 MT/s
    actual: 1867 MT/s type: LPDDR3 detail: synchronous unbuffered (unregistered)
    bus-width: 64 bits total: 64 bits manufacturer: Samsung
    part-no: K4E6E304EB-EGCG serial: <filter>
  Device-2: ChannelB-DIMM0 size: 4 GiB speed: spec: 2133 MT/s
    actual: 1867 MT/s type: LPDDR3 detail: synchronous unbuffered (unregistered)
    bus-width: 64 bits total: 64 bits manufacturer: Samsung
    part-no: K4E6E304EB-EGCG serial: <filter>
CPU:
  Info: model: Intel Core i5-8250U socket: BGA1356 (U3E1) note: check bits: 64
    type: MT MCP arch: Coffee Lake family: 6 model-id: 0x8E (142)
    stepping: 0xA (10) microcode: 0xEA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 727 high: 800 min/max: 400/3400 base/boost: 1500/8300
    scaling: driver: intel_pstate governor: powersave volts: 0.7 V
    ext-clock: 100 MHz cores: 1: 728 2: 700 3: 700 4: 700 5: 745 6: 800 7: 750
    8: 700 bogomips: 28808
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
    f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
    hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm
    lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae
    pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti
    pts rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2
    sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
    bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300
  Display: server: X.Org 1.21.1.2 compositor: kwin_x11 driver:
    loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 158
    size: 309x173mm (12.2x6.8") diag: 354mm (13.9")
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.3.2
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.16.0-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel
    bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-8:5 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 65.94 GiB (27.6%)
  ID-1: /dev/sda maj-min: 8:0 vendor: SK Hynix model: HFS256G39TND-N210A
    family: SATA SSDs size: 238.47 GiB block-size: physical: 4096 B
    logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
    rev: 0P10 temp: 38 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 2y 201d 1h cycles: 398
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 80 GiB size: 78.49 GiB (98.12%) used: 65.91 GiB (84.0%)
    fs: ext4 block-size: 4096 B dev: /dev/sda5 maj-min: 8:5 label: N/A
    uuid: aee042e1-281d-4f37-a338-0c84d4d382fe
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 25.9 MiB (10.1%) fs: vfat block-size: 512 B dev: /dev/sda1
    maj-min: 8:1 label: SYSTEM uuid: 74BD-17A6
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 11 GiB used: 1.82 GiB (16.6%) priority: -2
    file: /swapfile
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 16 MiB fs: N/A label: N/A uuid: N/A
  ID-2: /dev/sda3 maj-min: 8:3 size: 157.42 GiB fs: bitlocker label: N/A
    uuid: N/A
  ID-3: /dev/sda4 maj-min: 8:4 size: 800 MiB fs: ntfs label: RECOVERY
    uuid: 8A2ACFF82ACFDF77
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-8:5 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2b class-ID: e001
  Device-2: 1-9:6 info: Elan Micro ELAN:Fingerprint type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 04f3:0903 class-ID: 0000
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 49.0 C pch: 41.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 3000
Info:
  Processes: 307 Uptime: 18h 36m wakeups: 18026 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: 1480
  pacman: 1468 lib: 386 flatpak: 4 snap: 8 Shell: Zsh (sudo) v: 5.8
  default: Bash v: 5.1.12 running-in: yakuake inxi: 3.3.12

Running sudo dmesg | grep wlp, I get repeating instances of this:

[66338.657078] audit: type=1111 audit(1642919741.767:523): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=2000 pid=906 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66338.680040] audit: type=1111 audit(1642919741.790:524): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=500 pid=1234 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66341.122502] audit: type=1111 audit(1642919744.233:525): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=0 pid=906 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66341.134759] audit: type=1111 audit(1642919744.247:526): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=500 pid=1234 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66652.550792] audit: type=1111 audit(1642920055.662:528): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=2000 pid=906 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66652.566645] audit: type=1111 audit(1642920055.679:529): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=500 pid=1234 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66654.658463] audit: type=1111 audit(1642920057.769:530): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=device-disconnect interface="wlp2s0" ifindex=2 pid=906 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66654.688616] audit: type=1111 audit(1642920057.799:531): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=0 pid=906 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66654.697777] wlp2s0: deauthenticating from 70:f2:20:7c:16:e6 by local choice (Reason: 3=DEAUTH_LEAVING)
[66654.718558] audit: type=1111 audit(1642920057.829:533): pid=13263 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=statistics interface="wlp2s0" ifindex=2 args=500 pid=1234 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[66657.884891] wlp2s0: authenticate with 70:f2:20:7c:16:e6
[66657.887775] wlp2s0: send auth to 70:f2:20:7c:16:e6 (try 1/3)
[66657.889856] wlp2s0: authenticated
[66657.892101] wlp2s0: associate with 70:f2:20:7c:16:e6 (try 1/3)
[66657.895914] wlp2s0: RX AssocResp from 70:f2:20:7c:16:e6 (capab=0x1511 status=0 aid=82)
[66657.900271] wlp2s0: associated
[66657.977773] wlp2s0: Limiting TX power to 24 (24 - 0) dBm as advertised by 70:f2:20:7c:16:e6
[66658.063470] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready

Running journalctl -x -p 3 -b 0, I see a few things related from nmbd (Samba?):

Jan 22 22:20:41 zen nmbd[581]: [2022/01/22 22:20:41.188068,  0] ../../source3/libsmb/nmblib.c:923(send_udp)
Jan 22 22:20:41 zen nmbd[581]:   Packet send failed to 192.168.1.255(138) ERRNO=Network is unreachable
Jan 22 22:20:41 zen nmbd[581]: [2022/01/22 22:20:41.188295,  0] ../../source3/libsmb/nmblib.c:923(send_udp)
Jan 22 22:20:41 zen nmbd[581]:   Packet send failed to 192.168.1.255(137) ERRNO=Network is unreachable
Jan 22 22:20:41 zen nmbd[581]: [2022/01/22 22:20:41.188349,  0] ../../source3/nmbd/nmbd_packets.c:180(send_netbios_packet)
Jan 22 22:20:41 zen nmbd[581]:   send_netbios_packet: send_packet() to IP 192.168.1.255 port 137 failed
Jan 22 22:20:41 zen nmbd[581]: [2022/01/22 22:20:41.188391,  0] ../../source3/nmbd/nmbd_namequery.c:245(query_name)
Jan 22 22:20:41 zen nmbd[581]:   query_name: Failed to send packet trying to query name WORKGROUP<1d>
Jan 22 22:20:41 zen nmbd[581]: [2022/01/22 22:20:41.188812,  0] ../../source3/nmbd/nmbd.c:359(reload_interfaces)
Jan 22 22:20:41 zen nmbd[581]:   reload_interfaces: No subnets to listen to. Waiting..
...
Jan 23 00:27:16 zen nmbd[581]: [2022/01/23 00:27:16.625667,  0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response)
Jan 23 00:27:16 zen nmbd[581]:   query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.68 for name WORKGROUP>
Jan 23 00:27:16 zen nmbd[581]:   This response was from IP 192.168.1.75, reporting an IP address of 192.168.1.75.

… and many USB device errors:

Jan 22 22:20:41 zen kernel: usb usb1-port6: Cannot enable. Maybe the USB cable is bad?
Jan 22 22:20:41 zen kernel: usb 1-6: hub failed to enable device, error -22
Jan 22 22:20:41 zen kernel: usb usb1-port6: Cannot enable. Maybe the USB cable is bad?
Jan 22 22:20:41 zen kernel: usb 1-6: device not accepting address 60, error -22
...
Jan 22 22:20:41 zen kernel: usb 1-6: device descriptor read/64, error -71
Jan 22 22:20:41 zen kernel: usb 1-6: device descriptor read/64, error -71

I’ve found bug reports of similar issues in iwlwifi since at least kernel version 5.1.0 :confused:

Are you running zen kernel?

No, “zen” is my device name

This doesn’t sound like a driver issue to me. Can you please post the output of the following two commands?

ip address
cat /etc/resolv.conf
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 7c:76:35:85:f9:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.68/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 85278sec preferred_lft 85278sec
    inet6 fe80::ee57:b529:6d42:b2ba/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
# Generated by NetworkManager
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 8.8.4.4
nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

I have seen similar issues with Cloudflare’s DNS servers before. I would try putting the Google DNS servers in front of the Cloudflare DNS servers and see whether that fixes the issues.

Didn’t fix it

Are these DNS servers provided via DHCP (from your router)?

If so, did you change the order of DNS servers on your router too?

Nope, I set them in my OS manually. My DNS was initially set by my router, but I changed it and that made no difference. I’ll try changing the order in my router though in case these settings are somehow still being used from there

I don’t see how that’d make a difference though, since my device is the only one with this issue

Update: the issue is still present with my router’s DNS set to 8.8.8.8 and 8.4.4.8

I’m still having this issue.

Another thing I noticed that may or may not be related: IPv6 is broken. Running ping -6 www.google.com says “Network is unreachable”, despite other devices on the network having no such issues.

Primary is 8.8.8.8 secondary is 8.8.4.4 for Google.

Right, not sure why I missed that. It was correct in Manjaro but not on the router. We’ll see if that changes anything

Didn’t change anything

It really doesn’t look like DNS to me. When this happens, I can’t even ping an already resolved IP

Seems to be a bit better with Bluetooth coexistence off (bt_coex_active=0) in the iwlwifi.cong, but it only lasts longer

So, something interesting I just figured out. If I keep ping running in the background my connection stays up. That’s not an ideal workaround, but perhaps a clue as to what’s wrong?

I tried disabling MAC address randomization in my NetworkManager.conf:

[device]
wifi.scan-rand-mac-address=no

Now KDE doesn’t give me the “limited connectivity” notification, and I have to reconnect less frequently. I have yet to test it under load

Edit: it did it right after posting this, but went away on its own

This appears to have been fixed by an update at some point