Page 1 of 1
configure hibernate - how? [SOLVED]
Posted: 5. Oct 2015, 05:57
by jsfarinet
I've a problem with hibernate (suspend to disk): When i re-awake the laptop from hibernate, wlan is blocked (hardwarewise?). I've to do a 'sudo rfkill unblock wlan'. Now, i'd like to do this automatically. Is there a way configure hibernate this way?
Thanks in advance!
Re: configure hibernate - how?
Posted: 5. Oct 2015, 14:51
by djemos
create a file in /etc/pm/sleep.d/ with name wifi.sh
e.g.
Code: Select all
sudo geany /etc/pm/sleep.d/wifi.sh
and paste the following
Note: For x86_64 change the line . /usr/lib/pm-utils/functions to . /usr/lib64/pm-utils/functions
Code: Select all
#!/bin/bash
. /usr/lib/pm-utils/functions
case "$1" in
hibernate|suspend)
rfkill block wifi
;;
thaw|resume)
rfkill unblock wifi
;;
*)
;;
esac
exit
Code: Select all
sudo chmod 0755 /etc/pm/sleep.d/wifi.sh
Please report back here if it is working.
Re: configure hibernate - how?
Posted: 5. Oct 2015, 22:41
by jsfarinet
Thanks a lot. I'll try tomorrow and i'll report

Re: configure hibernate - how?
Posted: 6. Oct 2015, 00:24
by jsfarinet
IT WORKS!!! GREAT!!
And thanks a lot!