Unfortunately the results are mixed when killing the modem upon suspend/resume:
150 suspend/resumes, modem there 200 suspend/resumes, modem gone 86 suspend/resumes, modem gone
Here's the modified script /etc/pm/power.d/20_wwan:
#!/bin/sh
WWANSTATE=$(cat /proc/acpi/ibm/wan|awk '/status:/ {print $2}') if [ "x${WWANSTATE}" = "xdisabled" ]; then echo "enable" >/proc/acpi/ibm/wan fi
WWANINDEX=$(rfkill list | grep tpacpi_wwan_sw | cut -f1 -d:) rfkill block $WWANINDEX sleep 1 rfkill unblock $WWANINDEX
Unfortunately the results are mixed when killing the modem upon suspend/resume:
150 suspend/resumes, modem there
200 suspend/resumes, modem gone
86 suspend/resumes, modem gone
Here's the modified script /etc/pm/ power.d/ 20_wwan:
#!/bin/sh
WWANSTATE=$(cat /proc/acpi/ ibm/wan| awk '/status:/ {print $2}')
if [ "x${WWANSTATE}" = "xdisabled" ]; then
echo "enable" >/proc/acpi/ibm/wan
fi
WWANINDEX=$(rfkill list | grep tpacpi_wwan_sw | cut -f1 -d:)
rfkill block $WWANINDEX
sleep 1
rfkill unblock $WWANINDEX