Created
November 5, 2019 02:28
-
-
Save iAnatoly/6a0786f61c7f4d9ebed7eb5c0671c651 to your computer and use it in GitHub Desktop.
Fix no wifi on resume in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat > /etc/systemd/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 restart network-manager.service | |
[Install] | |
WantedBy=suspend.target | |
WantedBy=hibernate.target | |
WantedBy=hybrid-sleep.target | |
^D | |
# systemctl enable wifi-resume.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment