Tuesday, 31 May 2016

Wifi is not working when suspend resume in ubuntu?

1. sudo touch /etc/pm/sleep.d/10_restart_network_manager
2. sudo chmod +x /etc/pm/sleep.d/10_restart_network_manager
3. sudo gedit /etc/pm/sleep.d/10_restart_network_manager
 
After that paste these codes and then save and close it.
 
 
#!/bin/sh

case $1 in
    resume|thaw)
        sudo /bin/systemctl restart network-manager.service
    ;;
esac
 
NOTE:-Now you can try it after suspend your system.