[Bug 1422143] Re: No wifi connection after suspend with systemd due to missing "wpa_cli suspend"

Mark Stosberg mark at stosberg.com
Wed Jun 1 15:33:55 UTC 2016


This fix works for me:

1. As root, create a file named /etc/systemd/system/resume.service  with
the following contents:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart NetworkManager.service

[Install]
WantedBy=suspend.target


####################

    sudo systemctl enable resume.service
    sudo systemctl daemon-reload

Now after a suspend resume, I the Network Manager icon reloads almost
instantly, and wifi comes back.

You can confirm the action ran by checking it's service log after a
resume:

 journalctl -u resume.service


Jun 01 11:29:11 myhost systemd[1]: Starting Local system resume actions...
Jun 01 11:29:12 myhost systemd[1]: Started Local system resume actions.

If you want to trigger other actions to run at "resume" time, you can
add additional "ExecStart=" lines to the file.

-- 
You received this bug notification because you are a member of Network-
manager, which is subscribed to NetworkManager.
https://bugs.launchpad.net/bugs/1422143

Title:
  No wifi connection after suspend with systemd due to missing "wpa_cli
  suspend"

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1422143/+subscriptions



More information about the Ubuntu-reviews mailing list