View Single Post
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#14
Originally Posted by ajalkane View Post
You can do it yourself easily. It's easy to do from command-line:

Put background connections off from command-line:

Code:
gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode true
Put background connections on:

Code:
gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode false
It's easy to make those into scripts, and creating a desktop entry for them. It's a trivial exercise to even create one script that toggles between the values. The current value can be obtained with this:

Code:
gconftool -g /system/osso/connectivity/network_type/restricted
_mode
These are your moushka tools, happy hacking!
do i have to emit a signal after toggling it on and off? I have my daemon changing the value via gconf and apps don't really seem to react properly on the change of this configuration value

my code is here https://bitbucket.org/jeffrey04/rest...dater_class.py

EDIT: I am thinking on removing the heartbeat thingy (qsystemalignedtimer?) and subscribe to the event where connection is changed, but don't really know how to do it

EDIT: btw, it is actually sort of possible to automatically turn on/off 'allow background connections' using ajalkane's profilematic app

Last edited by Jeffrey04; 2012-05-16 at 09:46.