Monday, February 4, 2013

Script I used for suspending wireless - bluetooth and wifi - on Sony Vaio VPCS116FA

Here is a script that I used for disabling / enabling wireless on my laptop during suspend/wakeup

[root]# cat > /etc/pm/sleep.d/wireless <<EOF

#!/bin/bash

. /usr/lib/pm-utils/functions

case "$1" in
    hibernate|suspend)
                rfkill block all
                ;;
    thaw|resume)
                rfkill unblock all
                ;;
    *)
                ;;
esac

exit

EOF
[root]# chmod 755 /etc/pm/sleep.d/wireless

2 comments:

  1. Dear, I like your blog very much, I can get many useful information. Hope that we can communicate with each other. By the way, have you ever used clone partition to ssd ? Unfortunately I lost my partition. I do not know how to do.

    ReplyDelete