Anonymous

Changes

From Karnataka Open Educational Resources
Line 76: Line 76:     
[[#top|Back to Top]]
 
[[#top|Back to Top]]
 +
 +
== If network manager fails ==
 +
 +
Sometimes the network manager becomes disabled after resuming from hibernation. If this happens, please create the executable script /etc/pm/sleep.d/55_local_networkmanager to solve this. Follow below steps to do that -
 +
 +
* Open the terminal and execute below command:
 +
 +
sudo gedit /etc/pm/sleep.d/55_local_networkmanager
 +
 +
Enter password and press Enter.
 +
 +
* Add the following lines of code to the new file and save it:
 +
 +
 +
    #!/bin/sh
 +
    # This script gets NetworkManager out of suspend.
 +
    case $1 in
 +
    suspend|suspend_hybrid|hibernate)
 +
        # No need to do anything here.
 +
        ;;
 +
    resume|thaw)
 +
        #nmcli nm sleep false
 +
        if [ "`nmcli -f state -t nm`" = "asleep" ]; then
 +
          service network-manager restart
 +
        fi
 +
        ;;
 +
    esac
 +
 +
 +
* Now restart to see the working network manager.
 +
 +
 +
 +
[[#top|Back to top]]