Very slow WiFi connect after resume from suspend [Solved]

If none of the more specific forums is the right place to ask

Very slow WiFi connect after resume from suspend [Solved]

Postby Hallvor » 2019-12-19 10:40

I have had this problem several times after resuming from suspend.* The WiFi will be connected to the network, but no traffic comes through. After a few minutes, everything works as usual. It is not a dealbreaker, just annoying.

The computer is a Lenovo Thinkpad X240 (not the one in my signature) with Intel 7260 WiFi.
Code: Select all
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)


Errors from journalctl from the time this was happening:

Code: Select all
des. 19 11:56:34 debian-mini wpa_supplicant[815]: nl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlp3s0/drop_unicast_in_l2_multicast: No such file or directory
des. 19 11:56:34 debian-mini wpa_supplicant[815]: nl80211: Failed to set IPv4 unicast in multicast filter
des. 19 11:56:34 debian-mini nm-dispatcher[20246]: req:5 'down' [wlp3s0]: new request (2 scripts)
des. 19 11:56:34 debian-mini nm-dispatcher[20246]: req:5 'down' [wlp3s0]: start running ordered scripts...
des. 19 11:56:34 debian-mini nm-dispatcher[20246]: req:6 'connectivity-change': new request (2 scripts)
des. 19 11:56:34 debian-mini wpa_supplicant[815]: nl80211: Failed to open /proc/sys/net/ipv4/conf/p2p-dev-wlp3s0/drop_unicast_in_l2_multicast: No such file or directory
des. 19 11:56:34 debian-mini kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
des. 19 11:56:34 debian-mini wpa_supplicant[815]: nl80211: Failed to set IPv4 unicast in multicast filter
[...]
des. 19 11:59:30 debian-mini root[21300]: /etc/dhcp/dhclient-exit-hooks.d/zzz_avahi-autoipd returned non-zero exit status 1


It complains about a missing file. This is a very minimal install, so I may lack something important... Any ideas?

* I very rarely reboot the computer, so it is possible that there is a problem on fresh boots as well, as the problem comes and goes.
Last edited by Hallvor on 2019-12-27 16:55, edited 1 time in total.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 988
Joined: 2009-04-16 18:35
Location: Norway

Re: Very slow WiFi connect after resume from suspend

Postby Head_on_a_Stick » 2019-12-19 16:25

Is this with NetworkManager?

Please post the output of
Code: Select all
systemctl list-unit-files --state=enabled
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Very slow WiFi connect after resume from suspend

Postby shep » 2019-12-19 22:21

The other thing to look at is power saving features:
https://wiki.archlinux.org/index.php/Power_management#Intel_wireless_cards_(iwlwifi)
My realtek card dropped connections until I disable powersaving with a /etc/modprobe.d entry.
shep
 
Posts: 353
Joined: 2011-03-15 15:22

Re: Very slow WiFi connect after resume from suspend

Postby Hallvor » 2019-12-20 06:49

Yes, NetworkManager is installed and enabled. I am puzzled by the random loss of traffic. The computer worked fine when I woke up the computer from suspend now - and it usually works fine, like I mentioned.

Code: Select all
root@debian-mini:~# systemctl list-unit-files --state=enabled
UNIT FILE                                  STATE 
accounts-daemon.service                    enabled
anacron.service                            enabled
apparmor.service                           enabled
autovt@.service                            enabled
avahi-daemon.service                       enabled
blk-availability.service                   enabled
console-setup.service                      enabled
cron.service                               enabled
dbus-fi.w1.wpa_supplicant1.service         enabled
dbus-org.freedesktop.Avahi.service         enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
dbus-org.freedesktop.timesync1.service     enabled
getty@.service                             enabled
haveged.service                            enabled
keyboard-setup.service                     enabled
lvm2-monitor.service                       enabled
ModemManager.service                       enabled
network-manager.service                    enabled
networking.service                         enabled
NetworkManager-dispatcher.service          enabled
NetworkManager-wait-online.service         enabled
NetworkManager.service                     enabled
nftables.service                           enabled
pppd-dns.service                           enabled
rsyslog.service                            enabled
syslog.service                             enabled
systemd-timesyncd.service                  enabled
tlp-sleep.service                          enabled
tlp.service                                enabled
udisks2.service                            enabled
unattended-upgrades.service                enabled
wpa_supplicant.service                     enabled
avahi-daemon.socket                        enabled
dm-event.socket                            enabled
lvm2-lvmpolld.socket                       enabled
remote-fs.target                           enabled
anacron.timer                              enabled
apt-daily-upgrade.timer                    enabled
apt-daily.timer                            enabled
fstrim.timer                               enabled
logrotate.timer                            enabled
man-db.timer                               enabled

43 unit files listed.


Code: Select all
root@debian-mini:~# systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-12-20 08:28:24 CET; 13min ago
     Docs: man:NetworkManager(8)
 Main PID: 814 (NetworkManager)
    Tasks: 4 (limit: 4915)
   Memory: 17.6M
   CGroup: /system.slice/NetworkManager.service
           ├─ 814 /usr/sbin/NetworkManager --no-daemon
           └─1547 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /run/dhclient-wlp3s0.pid -lf /var/lib/NetworkManager/dhclient-92909545-2a78-4268-838d-60fa21ae1e65-wlp3s0.

des. 20 08:29:18 debian-mini dhclient[1650]: XMT: Solicit on wlp3s0, interval 16790ms.
des. 20 08:29:34 debian-mini dhclient[1650]: XMT: Solicit on wlp3s0, interval 34970ms.
des. 20 08:29:47 debian-mini NetworkManager[814]: <warn>  [1576826987.2806] dhcp6 (wlp3s0): request timed out
des. 20 08:29:47 debian-mini NetworkManager[814]: <info>  [1576826987.2807] dhcp6 (wlp3s0): state changed unknown -> timeout
des. 20 08:29:47 debian-mini NetworkManager[814]: <info>  [1576826987.2829] dhcp6 (wlp3s0): canceled DHCP transaction, DHCP client pid 1650
des. 20 08:29:47 debian-mini NetworkManager[814]: <info>  [1576826987.2829] dhcp6 (wlp3s0): state changed timeout -> done
des. 20 08:38:24 debian-mini NetworkManager[814]: <info>  [1576827504.3732] device (wlp3s0): supplicant interface state: completed -> authenticating
des. 20 08:38:24 debian-mini NetworkManager[814]: <info>  [1576827504.3762] device (wlp3s0): supplicant interface state: authenticating -> associating
des. 20 08:38:24 debian-mini NetworkManager[814]: <info>  [1576827504.3883] device (wlp3s0): supplicant interface state: associating -> associated
des. 20 08:38:24 debian-mini NetworkManager[814]: <info>  [1576827504.3948] device (wlp3s0): supplicant interface state: associated -> completed



shep wrote:The other thing to look at is power saving features:
https://wiki.archlinux.org/index.php/Power_management#Intel_wireless_cards_(iwlwifi)
My realtek card dropped connections until I disable powersaving with a /etc/modprobe.d entry.


I tried disabling the WiFi power saving feature on TLP. It was disabled on AC power, but enabled on battery. I'll let you know how it works out.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 988
Joined: 2009-04-16 18:35
Location: Norway

Re: Very slow WiFi connect after resume from suspend

Postby Hallvor » 2019-12-27 16:54

No trouble after disabling WiFi power saving. Marking thread as solved for now. Thanks!
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 988
Joined: 2009-04-16 18:35
Location: Norway


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable