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
About these ads
This entry was posted in Snippets and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s