Unable to connect to wifi after resuming in ubuntu 14.04

After upgrading my system from ubuntu 12.04 LTS to ubuntu 14.04 LTS wireless network was working fine until I suspended my system. Immediately after resuming my system, I was unable to connect to the internet or wireless network. After a lot of searching on the internet I was finally able to figure out that the wireless was still in its sleep mode. To resolve this issue, please follow the below instructions.

For temporary solution, (Every time the system is resumed, you may have to enter the below command in your terminal)

sudo nmcli nm sleep false

For a permanent solution,

  • Open your terminal
  • Create a file named ‘wirelessnet.sh’ inside the /etc/pm/sleep.d/ folder.
sudo vi /etc/pm/sleep.d/wirelessnet.sh
  • Copy paste the below code into the file wirelessnet.sh
case "$1" in
nmcli nm sleep false
exit $?
  • Save and close the file.
  • Make the file executable, so that every time the system is resumed this code gets executed and enables you to connect to the wireless network.
sudo chmod +x /etc/pm/sleep.d/wirelessnet.sh
  • Reboot your system.

Boom! You have resolved your wireless network issue!

Courtesy: http://askubuntu.com/questions/452826/wireless-networking-not-working-after-resume-in-ubuntu-14-04

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.