WiFi fails to resume after suspend; Race with wpasupplicant / wpa_cli resume?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
wpasupplicant (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Hi,
I'm constantly having issues where my WiFi connection doesn't re-establish after resuming from suspend. I think it may be a race where the interface isn't ready yet and systemd-sleep calls /lib/systemd/
I normally restart NetworkManager but then found that calling 'wpa_cli resume' works also.
Here's the logs:
| Mar 12 13:53:06 ragnar.local kernel: psmouse serio1: synaptics: quirked min/max coordinates: x [1024..5112], y [2024..4832]
| Mar 12 13:53:06 ragnar.local kernel: PM: resume of devices complete after 562.709 msecs
| Mar 12 13:53:06 ragnar.local kernel: PM: Finishing wakeup.
| Mar 12 13:53:06 ragnar.local systemd[1]: Time has been changed
| Mar 12 13:53:06 ragnar.local systemd[1066]: Time has been changed
| Mar 12 13:53:06 ragnar.local kernel: Restarting tasks ... done.
| Mar 12 13:53:06 ragnar.local systemd-
| Mar 12 13:53:06 ragnar.local systemd-
| Mar 12 13:53:06 ragnar.local systemd-
| Mar 12 13:53:06 ragnar.local systemd[1]: Started Suspend.
| Mar 12 13:53:06 ragnar.local systemd[1]: sleep.target: Unit not needed anymore. Stopping.
| Mar 12 13:53:06 ragnar.local systemd[1]: Stopped target Sleep.
| Mar 12 13:53:06 ragnar.local systemd[1]: Reached target Suspend.
| Mar 12 13:53:06 ragnar.local systemd[1]: suspend.target: Unit is bound to inactive unit systemd-
| Mar 12 13:53:06 ragnar.local NetworkManager[
| Mar 12 13:53:06 ragnar.local systemd[1]: Stopped target Suspend.
| Mar 12 13:53:06 ragnar.local NetworkManager[
| Mar 12 13:53:06 ragnar.local systemd-
| Mar 12 13:53:06 ragnar.local kernel: IPv6: ADDRCONF(
| Mar 12 13:53:06 ragnar.local kernel: iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
| Mar 12 13:53:06 ragnar.local NetworkManager[
| Mar 12 13:53:06 ragnar.local kernel: iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
| Mar 12 13:53:07 ragnar.local kernel: iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
| Mar 12 13:53:07 ragnar.local kernel: iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
| Mar 12 13:53:07 ragnar.local NetworkManager[
| Mar 12 13:53:07 ragnar.local kernel: IPv6: ADDRCONF(
| Mar 12 13:53:07 ragnar.local wpa_supplicant[
| Mar 12 13:53:07 ragnar.local wpa_supplicant[
| Mar 12 13:53:07 ragnar.local wpa_supplicant[
| Mar 12 13:53:07 ragnar.local NetworkManager[
| Mar 12 13:53:07 ragnar.local NetworkManager[
| Mar 12 13:53:07 ragnar.local NetworkManager[
| Mar 12 13:53:07 ragnar.local kernel: IPv6: ADDRCONF(
Thanks,
Haw
---
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
InstallationDate: Installed on 2014-04-24 (687 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
Package: wpasupplicant
PackageArchitec
ProcVersionSign
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial
Uname: Linux 4.4.0-11-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin plugdev sudo users
_MarkForUpload: True
modified.
modified.
mtime.conffile.
mtime.conffile.
nmcli-con:
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-
hld-2.4GHz deffb41a-
nmcli-dev:
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
wlp3s0 wifi connected /org/freedeskto
lo loopback unmanaged /org/freedeskto
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.
Changed in wpasupplicant (Ubuntu): | |
importance: | Undecided → High |
Changed in network-manager (Ubuntu): | |
importance: | Undecided → High |
tags: | added: regression-release |
| [hloeung@ragnar tmp]$ apt-cache policy systemd wpasupplicant archive. ubuntu. com/ubuntu xenial/main amd64 Packages dpkg/status archive. ubuntu. com/ubuntu xenial/main amd64 Packages dpkg/status
| systemd:
| Installed: 229-2ubuntu1
| Candidate: 229-2ubuntu1
| Version table:
| *** 229-2ubuntu1 500
| 500 http://
| 100 /var/lib/
| wpasupplicant:
| Installed: 2.4-0ubuntu6
| Candidate: 2.4-0ubuntu6
| Version table:
| *** 2.4-0ubuntu6 500
| 500 http://
| 100 /var/lib/