Comment 49 for bug 363812

Revision history for this message
gdi2k (gdi2k) wrote :

Excellent, thanks Claire, this works for me too. My card now works reliably after startup (unlike issues I was having in comment 43), and running echo enabled > /proc/acpi/ibm/wan brings the card back reliably too as far as I can tell.

I was able to automate this by creating a script at /usr/lib/pm-utils/sleep.d/30wwan containing:

#!/bin/sh
#
# Bring WWAN card back up after suspend / hibernate.
#
. "${PM_FUNCTIONS}"

# Record the current operation to allow failure detection.
case "$1" in
        thaw|resume)
                echo enabled > /proc/acpi/ibm/wan
                ;;
esac

This may well be a horrible implementation, I just used one of the existing scripts as a guide. Corrections welcome, but it does work for me.