Comment 5 for bug 1658016

Revision history for this message
GrzesiekC (grzesiekc) wrote :

I can confirm the same behaviour
$ uname -a
Linux E7470 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

My workaround:

Create a file /etc/systemd/system/wifi-resume.service

#/etc/systemd/system/wifi-resume.service
#sudo systemctl enable wifi-resume.service
[Unit]
Description=Restart networkmanager at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl stop network-manager.service
ExecStart=/bin/systemctl start network-manager.service
ExecStart=/bin/sleep 3
ExecStart=/sbin/modprobe -r iwlwifi
ExecStart=/sbin/modprobe iwlwifi

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

to enable the service
$sudo systemctl enable wifi-resume.service

to disable the service
$sudo systemctl disable wifi-resume.service
and remove the file