{"id":898,"date":"2017-03-22T21:22:12","date_gmt":"2017-03-22T18:22:12","guid":{"rendered":"https:\/\/oss-it.su\/?p=898"},"modified":"2019-09-08T13:40:23","modified_gmt":"2019-09-08T10:40:23","slug":"%d0%b2%d0%be%d1%81%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d1%8b-wi-fi-%d0%bf%d0%be%d1%81%d0%bb%d0%b5-%d0%b6%d0%b4%d1%83%d1%89%d0%b5%d0%b3","status":"publish","type":"post","link":"https:\/\/oss-it.su\/en\/898","title":{"rendered":"Restore wi-fi after suspend in Ubuntu"},"content":{"rendered":"<p>On many laptop models with Ubuntu systems (Kubuntu, Lubuntu, Xubuntu etc.) the wireless network stops working after returning from sleep\/standby mode. The problem is quite common and occurs in many versions of the system: 16.04, 14.04 and others. The article will describe a universal solution to this problem.<\/p>\n<p>If your wifi &#8220;drops&#8221; when you exit suspend\/hibernate\/hybrid-sleep, don&#8217;t despair, just type in the command in the terminal:<\/p>\n<p><code>sudo systemctl restart network-manager.service<\/code><\/p>\n<p>If this command restarts wifi, then create the <code>\/etc\/systemd\/system\/wifi-resume.service<\/code> file under the superuser:<\/p>\n<p><code>sudo nano \/etc\/systemd\/system\/wifi-resume.service<\/code><\/p>\n<p>With such content:<\/p>\n<p><code>#\/etc\/systemd\/system\/wifi-resume.service<br \/>\n#sudo systemctl enable wifi-resume.service<br \/>\n[Unit]<br \/>\nDescription=Restart networkmanager at resume<br \/>\nAfter=suspend.target<br \/>\nAfter=hibernate.target<br \/>\nAfter=hybrid-sleep.target<br \/>\n[Service]<br \/>\nType=oneshot<br \/>\nExecStart=\/bin\/systemctl restart network-manager.service<br \/>\n[Install]<br \/>\nWantedBy=suspend.target<br \/>\nWantedBy=hibernate.target<br \/>\nWantedBy=hybrid-sleep.target<\/code><\/p>\n<p>Then activate this script:<\/p>\n<p><code>sudo systemctl enable wifi-resume.service<\/code><\/p>\n<p>And you can safely go into standby mode.<\/p>\n<p>If rebooting the network-manager doesn&#8217;t help (which is rare in this case), look for a solution at the wifi-adapter driver level.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On many laptop models with Ubuntu systems (Kubuntu, Lubuntu, Xubuntu etc.) the wireless network stops working after returning from sleep\/standby mode. The problem is quite common and occurs in many versions of the system: 16.04, 14.04 and others. The article will describe a universal solution to this problem.<\/p>\n","protected":false},"author":1,"featured_media":901,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,15],"class_list":["post-898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","tag-network","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":6,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":1086,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/posts\/898\/revisions\/1086"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/media\/901"}],"wp:attachment":[{"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oss-it.su\/en\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}