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!
configure hibernate - how? [SOLVED]
configure hibernate - how? [SOLVED]
Last edited by jsfarinet on 8. Oct 2015, 10:23, edited 1 time in total.
Re: configure hibernate - how?
create a file in /etc/pm/sleep.d/ with name wifi.sh
e.g.
and paste the following
Note: For x86_64 change the line . /usr/lib/pm-utils/functions to . /usr/lib64/pm-utils/functions
Please report back here if it is working.
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
Re: configure hibernate - how?
Thanks a lot. I'll try tomorrow and i'll report 

Re: configure hibernate - how?
IT WORKS!!! GREAT!!
And thanks a lot!
And thanks a lot!