Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: wpasupplicant (Ubuntu) Status: New => Confirmed
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to network-manager in Ubuntu. https://bugs.launchpad.net/bugs/1556357 Title: WiFi fails to resume after suspend; Race with wpasupplicant / wpa_cli resume? Status in network-manager package in Ubuntu: Confirmed Status in wpasupplicant package in Ubuntu: Confirmed 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 /system-sleep/wpasupplicant (which is a wrapper to wpa_cli). 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-sleep[29174]: System resumed. | Mar 12 13:53:06 ragnar.local systemd-sleep[29174]: Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory | Mar 12 13:53:06 ragnar.local systemd-sleep[29227]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255. | 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-suspend.service. Stopping, too. | Mar 12 13:53:06 ragnar.local NetworkManager[23292]: <info> wake requested (sleeping: yes enabled: yes) | Mar 12 13:53:06 ragnar.local systemd[1]: Stopped target Suspend. | Mar 12 13:53:06 ragnar.local NetworkManager[23292]: <info> waking up... | Mar 12 13:53:06 ragnar.local systemd-logind[662]: Operation 'sleep' finished. | Mar 12 13:53:06 ragnar.local kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready | 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[23292]: <info> (wlp3s0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] | 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[23292]: <info> NetworkManager state is now DISCONNECTED | Mar 12 13:53:07 ragnar.local kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready | Mar 12 13:53:07 ragnar.local wpa_supplicant[23157]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none | Mar 12 13:53:07 ragnar.local wpa_supplicant[23157]: dbus: Failed to construct signal | Mar 12 13:53:07 ragnar.local wpa_supplicant[23157]: Could not read interface p2p-dev-wlp3s0 flags: No such device | Mar 12 13:53:07 ragnar.local NetworkManager[23292]: <info> (wlp3s0): supplicant interface state: starting -> ready | Mar 12 13:53:07 ragnar.local NetworkManager[23292]: <info> (wlp3s0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42] | Mar 12 13:53:07 ragnar.local NetworkManager[23292]: <info> Device 'wlp3s0' has no connection; scheduling activate_check in 0 seconds. | Mar 12 13:53:07 ragnar.local kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready 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 PackageArchitecture: amd64 ProcVersionSignature: Ubuntu 4.4.0-11.26-generic 4.4.4 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.conffile..etc.NetworkManager.NetworkManager.conf: [modified] modified.conffile..etc.dnsmasq.d.network.manager: [modified] mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2015-09-12T15:03:20.815898 mtime.conffile..etc.dnsmasq.d.network.manager: 2014-07-29T22:12:51.096293 nmcli-con: NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH hld-2.4GHz deffb41a-c707-4088-a887-36d63f43a6a0 802-11-wireless 1457784347 Sat 12 Mar 2016 11:05:47 PM AEDT yes 0 no /org/freedesktop/NetworkManager/Settings/0 yes wlp3s0 activated /org/freedesktop/NetworkManager/ActiveConnection/12 nmcli-dev: DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH wlp3s0 wifi connected /org/freedesktop/NetworkManager/Devices/0 hld-2.4GHz deffb41a-c707-4088-a887-36d63f43a6a0 /org/freedesktop/NetworkManager/ActiveConnection/12 lo loopback unmanaged /org/freedesktop/NetworkManager/Devices/1 -- -- -- nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1556357/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp