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

-- 
modem-manager fails to recognize 3G modem after suspend/resume
https://bugs.launchpad.net/bugs/614274
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to