You are not logged in.

#1 2018-02-26 18:38:52

rbaj
Member
Registered: 2016-01-27
Posts: 36

Wireless drops every five minutes exactly

Recently my wifi connection has started dropping every five minutes. It only happens at home so I'm not discounting my crappy Technicolor router, but it would be nice to pin down the cause. It sometimes reconnects by itself. If I reconnect myself I get another five minutes. Where can I look to diagnose this further?

Hardware:

$ lspci -v
Network controller: Broadcom Limited BCM4331 802.11a/b/g/n (rev 02)
	Subsystem: Apple Inc. AirPort Extreme
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at a0600000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: wl
	Kernel modules: bcma, wl

NetworkManager complaints:

Feb 26 16:28:18 NetworkManager[2444]: <info>  [1519662498.5540] connectivity: (wlp2s0) timed out
Feb 26 16:33:18 NetworkManager[2444]: <info>  [1519662798.5541] connectivity: (wlp2s0) timed out
Feb 26 16:38:18 NetworkManager[2444]: <info>  [1519663098.5537] connectivity: (wlp2s0) timed out
Feb 26 16:43:18 NetworkManager[2444]: <info>  [1519663398.5530] connectivity: (wlp2s0) timed out
Feb 26 16:48:18 NetworkManager[2444]: <info>  [1519663698.5535] connectivity: (wlp2s0) timed out
Feb 26 16:53:18 NetworkManager[2444]: <info>  [1519663998.5523] connectivity: (wlp2s0) timed out
Feb 26 16:58:18 NetworkManager[2444]: <info>  [1519664298.5538] connectivity: (wlp2s0) timed out
Feb 26 17:03:18 NetworkManager[2444]: <info>  [1519664598.5541] connectivity: (wlp2s0) timed out
Feb 26 17:13:18 NetworkManager[2444]: <info>  [1519665198.5533] connectivity: (wlp2s0) timed out
Feb 26 17:23:18 NetworkManager[2444]: <info>  [1519665798.5534] connectivity: (wlp2s0) timed out
Feb 26 17:33:18 NetworkManager[2444]: <info>  [1519666398.5520] connectivity: (wlp2s0) timed out
Feb 26 17:38:18 NetworkManager[2444]: <info>  [1519666698.5520] connectivity: (wlp2s0) timed out

But there's nothing consistent that happens before these:

$ journalctl | grep -B 3 "timed out"
Feb 26 16:25:48 openvpn[3090]: /usr/bin/ip route add 128.0.0.0/1 via 10.5.0.1
Feb 26 16:25:48 openvpn[3090]: Initialization Sequence Completed
Feb 26 16:27:04 wpa_supplicant[701]: wlp2s0: WPA: Group rekeying completed with c4:ea:1d:42:01:8b [GTK=TKIP]
Feb 26 16:28:18 NetworkManager[2444]: <info>  [1519662498.5540] connectivity: (wlp2s0) timed out
--
Feb 26 16:32:18 root[3537]: ACPI group/action undefined: button/volumedown / VOLDN
Feb 26 16:32:18 root[3541]: ACPI group/action undefined: button/volumedown / VOLDN
Feb 26 16:32:57 root[3560]: ACPI group/action undefined: cd/play / CDPLAY
Feb 26 16:33:18 NetworkManager[2444]: <info>  [1519662798.5541] connectivity: (wlp2s0) timed out
Feb 26 16:33:41 root[3565]: ACPI group/action undefined: cd/play / CDPLAY
Feb 26 16:37:04 wpa_supplicant[701]: wlp2s0: WPA: Group rekeying completed with c4:ea:1d:42:01:8b [GTK=TKIP]
Feb 26 16:38:18 NetworkManager[2444]: <info>  [1519663098.5537] connectivity: (wlp2s0) timed out
Feb 26 16:43:18 NetworkManager[2444]: <info>  [1519663398.5530] connectivity: (wlp2s0) timed out
Feb 26 16:47:04 wpa_supplicant[701]: wlp2s0: WPA: Group rekeying completed with c4:ea:1d:42:01:8b [GTK=TKIP]
Feb 26 16:48:18 NetworkManager[2444]: <info>  [1519663698.5535] connectivity: (wlp2s0) timed out
Feb 26 16:53:18 NetworkManager[2444]: <info>  [1519663998.5523] connectivity: (wlp2s0) timed out
Feb 26 16:57:04 wpa_supplicant[701]: wlp2s0: WPA: Group rekeying completed with c4:ea:1d:42:01:8b [GTK=TKIP]
Feb 26 16:58:18 NetworkManager[2444]: <info>  [1519664298.5538] connectivity: (wlp2s0) timed out
Feb 26 17:03:18 NetworkManager[2444]: <info>  [1519664598.5541] connectivity: (wlp2s0) timed out
--
Feb 26 17:12:20 root[4802]: ACPI group/action undefined: button/volumedown / VOLDN
Feb 26 17:12:37 sudo[4811]:    robaj : TTY=pts/0 ; PWD=/home/robaj ; USER=root ; COMMAND=/usr/bin/pacman -S -y -u
Feb 26 17:12:37 sudo[4811]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 26 17:13:18 NetworkManager[2444]: <info>  [1519665198.5533] connectivity: (wlp2s0) timed out
--
Feb 26 17:19:34 openvpn[4671]: Initialization Sequence Completed
Feb 26 17:19:55 root[5551]: ACPI group/action undefined: cd/play / CDPLAY
Feb 26 17:20:01 root[5555]: ACPI group/action undefined: cd/play / CDPLAY
Feb 26 17:23:18 NetworkManager[2444]: <info>  [1519665798.5534] connectivity: (wlp2s0) timed out
--
Feb 26 17:29:04 openvpn[6014]: /usr/bin/ip route add 128.0.0.0/1 via 10.5.0.1
Feb 26 17:29:04 openvpn[6014]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Feb 26 17:29:04 openvpn[6014]: Initialization Sequence Completed
Feb 26 17:33:18 NetworkManager[2444]: <info>  [1519666398.5520] connectivity: (wlp2s0) timed out
--
Feb 26 17:38:06 root[6542]: ACPI group/action undefined: button/volumeup / VOLUP
Feb 26 17:38:08 root[6546]: ACPI group/action undefined: button/volumeup / VOLUP
Feb 26 17:38:08 root[6550]: ACPI group/action undefined: button/volumeup / VOLUP
Feb 26 17:38:18 NetworkManager[2444]: <info>  [1519666698.5520] connectivity: (wlp2s0) timed out
--
Feb 26 17:39:34 openvpn[6014]: /usr/bin/ip route add 0.0.0.0/1 via 10.5.0.1
Feb 26 17:39:34 openvpn[6014]: /usr/bin/ip route add 128.0.0.0/1 via 10.5.0.1
Feb 26 17:39:34 openvpn[6014]: Initialization Sequence Completed
Feb 26 17:43:18 NetworkManager[2444]: <info>  [1519666998.5518] connectivity: (wlp2s0) timed out

Many thanks.

Last edited by rbaj (2018-02-27 11:49:23)

Offline

#2 2018-02-26 19:06:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Wireless drops every five minutes exactly

I'd guess multiple networking services competing.

Please show the output of the following:

find -L /etc/systemd/system -type f

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2018-02-26 19:22:19

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Wireless drops every five minutes exactly

"Every five minutes exactly" sounds like power management issues. Try disabling power management with

iwconfig wlp2s0 power off

iwconfig is part of the wireless_tools package.

Offline

#4 2018-02-26 20:13:55

rbaj
Member
Registered: 2016-01-27
Posts: 36

Re: Wireless drops every five minutes exactly

Network services:

$ find -L /etc/systemd/system -type f
/etc/systemd/system/printer.target.wants/org.cups.cupsd.service
/etc/systemd/system/suspend.target.wants/suspend@robaj.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/suspend@.service
/etc/systemd/system/sockets.target.wants/org.cups.cupsd.socket
/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service
/etc/systemd/system/multi-user.target.wants/acpid.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/org.cups.cupsd.path
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service
/etc/systemd/system/timers.target.wants/fstrim.timer

Power management was off already (and I checked tlp which is also installed) but here's confirmation:

wlp2s0    IEEE 802.11  ESSID:"TNCAP42018B"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: C4:EA:1D:42:01:8B   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Offline

#5 2018-02-26 20:18:12

rbaj
Member
Registered: 2016-01-27
Posts: 36

Re: Wireless drops every five minutes exactly

Interesting, I just got a log entry from NM about loss of connectivity but didn't notice anything while browsing. VPN stayed up too.

Offline

#6 2018-02-26 20:27:09

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: Wireless drops every five minutes exactly

If its DHCP try with static.


sys2064

Offline

#7 2018-02-26 20:39:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: Wireless drops every five minutes exactly

Trilby's spot on - disable the wpa_supplicant services*, NM invokes wpa_supplicant itself.

/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service

*I think, to be sure: 

systemctl list-unit-files --state=enabled

Offline

#8 2018-02-27 11:21:21

rbaj
Member
Registered: 2016-01-27
Posts: 36

Re: Wireless drops every five minutes exactly

EDIT: still dropping.. occasionally does coincide with an NM log entry. Any thoughts?

------------
Disabled wpa_supplicant.service and my connection is much more stable now.

I still get the log entries from NM though: they actually began on December 24th and occur for both wireless and ethernet. There's no correlation to the actual drops that I was getting. Sorry for the red herring.

I'll mark this solved but if anyone knows why NM might be complaining do reply!

Thanks all.

Last edited by rbaj (2018-02-27 11:53:39)

Offline

#9 2018-02-27 12:04:01

ray731
Member
Registered: 2018-01-27
Posts: 23

Re: Wireless drops every five minutes exactly

NM is not the only stuff. Have you tried any other?

Offline

#10 2018-02-27 12:41:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: Wireless drops every five minutes exactly

Are we still at "every 5 minutes"?

systemctl list-units | grep -iE '(wicd|conn|net|dhcp|wpa)'

Offline

#11 2018-02-27 13:27:03

rbaj
Member
Registered: 2016-01-27
Posts: 36

Re: Wireless drops every five minutes exactly

NM complains every five minutes, but VPN doesn't necessarily complain. When VPN complains, NM has complained.

Systemd units:

$ systemctl list-units | grep -iE '(wicd|conn|net|dhcp|wpa)'
sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-net-enp1s0f0.device          loaded active plugged   NetXtreme BCM57765 Gigabit Ethernet PCIe                                                          
sys-devices-pci0000:00-0000:00:1c.1-0000:02:00.0-net-wlp2s0.device              loaded active plugged   BCM4331 802.11a/b/g/n (AirPort Extreme)                                                           
sys-devices-virtual-net-airvpn.device                                                                   loaded active plugged   /sys/devices/virtual/net/airvpn                                                                   
sys-subsystem-net-devices-airvpn.device                                                            loaded active plugged   /sys/subsystem/net/devices/airvpn                                                                 
sys-subsystem-net-devices-enp1s0f0.device                                                       loaded active plugged   NetXtreme BCM57765 Gigabit Ethernet PCIe                                                          
sys-subsystem-net-devices-wlp2s0.device                                                           loaded active plugged   BCM4331 802.11a/b/g/n (AirPort Extreme)                                                           
NetworkManager.service                                                                                     loaded active running   Network Manager                                                                                   
systemd-timesyncd.service                                                                                 loaded active running   Network Time Synchronization                                                                      
wpa_supplicant.service                                                                                       loaded active running   WPA supplicant                                                                                    
network.target                                                                                                    loaded active active    Network                                                  

Offline

#12 2018-02-27 13:42:41

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: Wireless drops every five minutes exactly

Analyze traffic with sniffer.


sys2064

Offline

Board footer

Powered by FluxBB