Advertisement
dimon2242

Ubuntu 16.04 wifi wireless disappear fix

Apr 8th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. https://it.toolbox.com/blogs/jeffhoogland/restarting-networkmanager-after-suspend-in-ubuntu-1604-091816
  2.  
  3. To do this we create the file /etc/systemd/system/wifi-resume.service using our text editor of choice with the contents:
  4.  
  5.  
  6. [Unit]
  7.  
  8. Description=Restart networkmanager at resume
  9.  
  10. After=suspend.target
  11.  
  12. After=hibernate.target
  13.  
  14. After=hybrid-sleep.target
  15.  
  16.  
  17. [Service]
  18.  
  19. Type=oneshot
  20.  
  21. ExecStart=/bin/systemctl restart network-manager.service
  22.  
  23.  
  24. [Install]
  25.  
  26. WantedBy=suspend.target
  27.  
  28. WantedBy=hibernate.target
  29.  
  30. WantedBy=hybrid-sleep.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement