Skip to content

Instantly share code, notes, and snippets.

@iAnatoly
Created November 5, 2019 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iAnatoly/6a0786f61c7f4d9ebed7eb5c0671c651 to your computer and use it in GitHub Desktop.
Save iAnatoly/6a0786f61c7f4d9ebed7eb5c0671c651 to your computer and use it in GitHub Desktop.
Fix no wifi on resume in Ubuntu
# 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