View Single Post
Posts: 204 | Thanked: 443 times | Joined on Jul 2012 @ Germany - Potsdam
#971
Hi,

I like that Profilematic very much an use it to put my phone at work to flight mode, because of very weak gsm signal level, what drains the battery.

Using the standard flight mode switch from profilematic always switched the wlan off at the same time. So I cannot use the WLAN condition to trigger it, because the WLAN connection is lost if the rule hits and the rule kills its own contition and ist deactivated next. But today I found a way to switch off the gsm modem only, using custom action and a dbus command, documented at:

http://wiki.maemo.org/User:Jebba/DBUS

Instead of the standard flight mode I am now using the custom action for activation:

dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false

to switch off the gsm-modem and obtain the wifi connection

on deactivation:

dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:true

to switch the gsm-modem on again, if the wifi connection at work ist lost.

This work around helps me to use the wifi-ssid at work as condition to switch the gsm-modem of, as long as I am at work.

Hope it will help someone else.
 

The Following 9 Users Say Thank You to meemorph For This Useful Post: