I am a new Ubuntu user and have so far really enjoyed it. However, I spent around 3 hours yesterday trying to get my wifi to resume after my laptop wakes from sleep mode (it works if i reboot). I have scoured message boards and all the links on google are purple 3 or 4 pages in for every search result on this matter. Therefore, I don't think this question will be a repeat.
I have
- A Dell Inspiron 15
- AMD A6-6310
- Ubuntu A6-6310
- My wireless card is labeled as (device) wlp3s0 (driver) ath9k
and I have tried the following:
I have put these into a config folder in /config.d
SUSPEND_MODULES="$SUSPEND_MODULES ath9k"
SUSPEND_MODULES="ath9k"
I have created executable files in /sleep.d such as:
#!/bin/sh
#Tell Network Manager that resume was successful
case "$1" in
thaw)
/usr/bin/nmcli nm sleep false
;;
esac
#!/bin/sh
case "${1}" in
resume|thaw)
nmcli r wifi off && nmcli r wifi on ;;
esac
and many other variants thereof.
Also, this restarts the NetworkManager but does not connect wifi again:
sudo service network-manager restart
There are a couple other things I have tried that I can't exactly remember with commands like nmcli d wifi on, or something. They didnt work.
Now, I may be wrong, but I think the problem might lie in this:
sudo nmcli nm sleep false
Now, my terminal does NOT recognize "nm" and says:
sudo nmcli nm sleep false
and when I pull up the menu for nmcli, nm is nowhere in the object list. I feel like this might be the key to the problem. So, is there anything that I haven't done that I should do and is there any way to "fix" the "nm" problem? Thanks in advance!
FN+F9
in my case) to execute the commandpkexec systemctl restart network-manager.service
to tell systemd to restart network-manager from the GUI in the least intrusive way i found. – dgonzalez Dec 25 '16 at 02:23nmcli
is 1.2.2 – Timothy Truckle Dec 25 '16 at 20:44sudo sed -i 's/dns=dnsmasq/#dns=dnsmasq/' /etc/NetworkManager/NetworkManager.conf
Then reboot – Jeremy31 Dec 26 '16 at 14:10nm
object, nor thesleep
command. Personally I would turn off power management on the wireless interface to avoid the initial disconnection or perhaps attempt bring down all Network manager interfaces on suspend and bring them all up on resume. – Elder Geek Dec 29 '16 at 17:58uname -a
– Elder Geek Dec 29 '16 at 21:25