I am using a Cardbus wireless card on my Debian thinkpad. Before suspend to disk I power off the card, but as the system is powering down I see
ACPI: PCI Interrupt ...
and the wireless card comes back on, and stays on while it is suspended, wasting my battery. I am not sure why this is happening.
I have tried disabling acpid before suspending, but that does nothing. Maybe it is the [kacpid] process??
I tried disabling udevd before suspending, thinking it was hotplug that was inserting the card, but that didn't work either.
I also tried unloading the yenta_socket module but rmmod fails because the module is busy. I can't find any processes that are using it, except maybe the [pccardd] process, but I don't know how to kill that process.
I am out of ideas for troubleshooting. Any suggestions?
-Ben
Here is my shutdown script:
Code:
#!/bin/bash
# Suspend to Disk
# suspend eth0 monitor
/etc/init.d/ifplugd suspend
# take down wireless network
/sbin/ifdown --force wlan0
# remove usb modules
/sbin/rmmod uhci_hcd
# disable cardbus
/sbin/pccardctl eject
# suspend
echo -n "disk" > /sys/power/state
# bring back cardbus
/sbin/pccardctl insert
#bring back usb
/sbin/modprobe uhci_hcd
# resume eth0 monitor
/etc/init.d/ifplugd resume
# bring back wireless network
/sbin/ifup wlan0