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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

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