After noticing that my Ubuntu 13.04 had no WLAN function after resuming from hibernation, I tried the
sudo restart network-manager as explained in this question: No wlan after standby .
It brought back the WLAN functionality so I decided to write the following script
#!/bin/sh # /usr/lib/pm-utils/sleep.d/49_restart_network-manager # Action script to restart network-manager of pm-action events. Written feb 19,2014 case "$1" in resume|thaw) restart network-manager ;; esac
saved it as
/usr/lib/pm-utils/sleep.d/49_restart_network-manager and applied a
sudo chmod +x on it to make it executable. Now I've tryed to put my computer in hibernation, but it only reaches the lock screen.
Now I've decided to delete the file and tried hibernating it...again it only reached the lock screen which normally appeared after it switched of and I turned it on...Then I tryed
$ sudo pm-hibernation
and there was no result apart from:
$ sudo pm-hibernation [sudo] Password for 'USER': $
How can I make my system hibernate again?
P.S. I have a copy of the script saved in a folder of my
~/Documents directory where I save all stuff that has helped me 'Pimp' my system. Does this affects hibernation?