6

I have Ubuntu 16.04 LTS, my wifi was working perfectly but around one month ago every time after suspending the session my wifi doesn't work anymore, although the wifi-interface confirms that the connection has been established. The command

sudo service network-manager restart  

works fine, but I must call it every time I get back from suspending, and it's kind of annoying.

I followed the instructions of wifi still sleeping when resume, but unfortunately the proposed solution fails in my case when calling

sudo systemctl enable wifi-resume.service

returning "command not found". How could I generate a script to fix this problem?

More info on my wireless can be found here: http://paste.ubuntu.com/24334731/

bruco
  • 343

4 Answers4

2

Both systemd and systemctl seem to be correct. However, to try to help solve your issue, please try:

sudo -i
/bin/systemctl enable wifi-resume.service
exit

Please post any errors or warnings.

chili555
  • 61,330
1

In the present case, after coming out of sleep my wifi was rfkill-blocked (normally this doesnt happen) and it only had to be unblocked.

(sidenote: I found out after trying to manually bring up the wifi interface with sudo ip link set wlp6s0 up -> output was: RTNETLINK answers: Operation not possible due to RF-kill)

solution was:

rfkill list       # (to show all interfaces, if anyone has soft or hard-block "yes" it cant be used)
# output:
#   2: phy0: Wireless LAN
#      Soft blocked: no
#      Hard blocked: no
sudo rfkill unblock wlan    # you can use the number or the name/category, see `man rfkill`

after unblocking (maybe check again with rfkill list), wifi was working again

MacMartin
  • 353
0

In my case, I "fixed" it with sudo ifconfic <wireless_card> up evey time I suspend the computer. It's not perfect, but it works eventually.

0

I resolved this issue with "enable Airplane Mode" and disabling it again. Wireless connection started to resume. Hope this helps.