Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5527  / 3 Years ago, tue, june 1, 2021, 2:12:34

When I put my desktop in hybernate and then put it back on the wifi is gone. It is simular to the problem described here. But to fix it you have to run a command sudo nmcli nm sleep false. But the nm thing is not working anymore. It has been removed from nmcli (Describe here). So what could you do to fix it?



I am using ubuntu gnome 4.2


More From » gnome

 Answers
4

Please open a terminal and do:



gksudo gedit  /etc/systemd/system/wifi-resume.service


Use nano or kate or leafpad if you don't have the text editor gedit. A new empty file will open. Add the following:



[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target


Proofread carefully twice, save and close the text editor.



Now do:



sudo chmod +x  /etc/systemd/system/wifi-resume.service


And next:



sudo systemctl enable wifi-resume.service


I suggest you reboot. Test and let us hear your report.


[#16168] Thursday, June 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lasagnerhead

Total Points: 487
Total Questions: 105
Total Answers: 122

Location: French Southern and Antarctic Lands
Member since Sun, May 3, 2020
4 Years ago
;