Friday, June 03, 2005

How to make ipw2100 module work with suspend/resume

ipw2100 module needs to be removed from the kernel before suspending. Otherwise it won't be operational on resume. To accomplish that something like this needs to be added to /etc/acpi/actions/sleep file:

#!/bin/bash
if grep -q closed /proc/acpi/button/lid/LID/state
then
/sbin/modprobe -r ipw2100
echo -n "mem" > /sys/power/state
/sbin/modprobe ipw2100
/sbin/ifup eth1
fi