Suspend/Resume in Plasma Active on Nexus 7 3G with WWAN

In a previous post I wrote about using WWAN (UMTS/3G) in Plasma Active on Nexus 7. What I forgot to mention there was that there may be problems with suspend/resume when using UMTS. In order to circumvent these issues I created a systemd suspend script that takes care of turning the WWAN device on and off on resume/suspend. Simply place the executable script in “/lib/systemd/system-sleep/wwan-fix.sh”:

#!/bin/sh
case $1/$2 in
pre/*)
echo 0 > /sys/devices/platform/baseband_xmm_power/xmm_onoff
;;
post/*)
echo 1 > /sys/devices/platform/baseband_xmm_power/xmm_onoff
;;
esac
This entry was posted in Snippets and tagged , , , . Bookmark the permalink.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.