You are not logged in.

#1 2009-01-01 15:11:15

ghostcat
Member
Registered: 2008-08-18
Posts: 10

acer_wmi and rfkill

The 2.6.28 Kernel contains a patch for acer_wmi, which integrates it with rfkill.

Unfortunately, this has an adverse effect on suspend (at least for me) in that the wireless is switched off at some stage during the suspend / resume cycle. 

My solution is to create a /etc/pm/sleep.d/55Network file and add the following:

#!/bin/sh
# Stop the network before suspending

[ -f /etc/rc.d/network ] || exit $NA

KILL_STATE=/sys/devices/platform/acer-wmi/rfkill/rfkill0/state
case "$1" in
    hibernate|suspend)
        /etc/rc.d/network stop >/dev/null
        ;;
    thaw|resume) 
        if [ -f $KILL_STATE ] ;
        then
            echo "1" > $KILL_STATE ;
        fi
        /etc/rc.d/network start >/dev/null
        ;;
    *) exit $NA
        ;;
esac

Note: Stopping and Starting the network is necessary on my system using ndiswrapper. You may or may not need to do this depending on your wireless device.

Offline

Board footer

Powered by FluxBB