In /etc/network/interfaces there is a line of code
It should prevent the wireless dongle from going to hibernate, but seems to have a problem. Once in hibernate the WiFi is down.
Here is a solution:
Disabling the 60_wpa_supplicant hook
A hook invoking 60_wpa_supplicant is disabling the wifi interface: it is not useful.
[code]$ cat /usr/lib/pm-utils/sleep.d/60_wpa_supplicant
Action script to notify wpa_supplicant of pm-action events.
case “$1” in
You can disable this hook by just creating an empty file corresponding to the hook in /etc/pm/sleep.d/. We want to disable the hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant, you can do this by calling
Do not set the executable bit on that dummy-hook.
Create the dummy empty file in /etc/pm/sleep.d
sudo mkdir /etc/pm
sudo mkdir /etc/pm/sleep.d
sudo touch /etc/pm/sleep.d/60_wpa_supplicant
sudo chmod 644 /etc/pm/sleep.d/60_wpa_supplicant
This will disable the ’60_wpa_supplicant’ hook in /usr/lib/pm-utils/sleep.d and set permissions to 644. You can change it. Everyone else can only read it.
sudo chmod 644 /etc/pm/sleep.d/60_wpa_supplicant # Set no execute permissions
Now your WiFi will stay alive!