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
Please open a terminal and do:
Use nano or kate or leafpad if you don't have the text editor gedit. A new empty file will open. Add the following:
Proofread carefully twice, save and close the text editor.
Now do:
And next:
I suggest you reboot. Test and let us hear your report.
Another solution similar to the nmcli one Tristan T referenced in the question (without nm, which is no longer an option as Tristan mentioned):
I used Owais Lone's answer to a similar question to enable automatic resume of wifi after suspension for my laptop (a Dell Precision) on 16.04 LTS.
I created /etc/pm/sleep.d/10_resume_wifi
followed by a
sudo chmod +x /etc/pm/sleep.d/10_resume_wifi
to make the file executable.In case you're wondering about the double semicolons or the solitary close parenthesis like I was, see http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html -- that's just how the case syntax works.
For me worked
followed by a sudo chmod +x /etc/pm/sleep.d/10_resume_wifi
Also user can try if the first fails.
The accepted answer in this thread did not work for me, not did any of the alternate solutions. I had to add the following service file as
/etc/systemd/system/wifi-resume.service
and then enable with
sudo systemctl enable wifi-resume.service
As a backup while testing the above, I created a bash script with the following
And tied it to a custom keyboard shortcut.