Comment 50 for bug 1422143

Revision history for this message
Mark Stosberg (markstos) wrote :

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.