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!