Reply
Thread Tools
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#51
That's because your background connections are On leading to apps trying to access your Internet connection... Hmm this means there should be an additional line to switch off background connections too... Will check on it...
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Posts: 335 | Thanked: 285 times | Joined on Sep 2012 @ Trento, Italy
#52
Originally Posted by thedead1440 View Post
That's because your background connections are On leading to apps trying to access your Internet connection... Hmm this means there should be an additional line to switch off background connections too... Will check on it...
Yes Wazapp is actually open.. however thanks for this useful app
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#53
To close background connection:
Code:
gconftool -s -t b /system/osso/connectivity/network_type/restricted_mode true
To open background connection:
Code:
gconftool -s -t b /system/osso/connectivity/network_type/restricted_mode false
 

The Following 2 Users Say Thank You to Schturman For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#54
Ok found the background connections gconf key:

Background connections are enabled when /system/osso/connectivity/network_type/restricted_mode is set to false and disabled when its set to true...


Therefore, you can add the following to the sh script located in /home/user/.local/share/data/toggle-wlan/toggle-wlan.sh

For the Wlan Off part add:
Code:
gconftool -s --type=bool /system/osso/connectivity/network_type/restricted_mode true
For the Wlan On part add:
Code:
gconftool -s --type=bool /system/osso/connectivity/network_type/restricted_mode false

Edit: Haha Schturman beat me to it above

Edit 2: Updated OP with v1.0.1 that does the above...

Last edited by thedead1440; 2013-01-22 at 17:33.
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#55
Originally Posted by thedead1440 View Post
Background connections are enabled when /system/osso/connectivity/network_type/restricted_mode is set to false and disabled when its set to true...
This does not work. See ProfileMatic thread for workarounds.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#56
Originally Posted by ajalkane View Post
This does not work. See ProfileMatic thread for workarounds.
Hmm funny thing is I had thanked the post you are referring to

However, in Profilematic thread there is also this post which shows the user having no issue when combining the gconf key solely with mcetool as is done here for toggle-wlan.
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#57
Originally Posted by thedead1440 View Post
However, in Profilematic thread there is also this post which shows the user having no issue when combining the gconf key solely with mcetool as is done here for toggle-wlan.
Ah great. So perhaps it does work as long as mcetools is called afterwards.
 
bibek's Avatar
Posts: 368 | Thanked: 826 times | Joined on May 2012 @ India
#58
Originally Posted by ajalkane View Post
Ah great. So perhaps it does work as long as mcetools is called afterwards.
Needs one reset of connection to work, until another switch off/on. Bug introduced since PR 1.3
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#59
I will report later if it have any problem... I started to use it in combination with mcetool. First mcetool will close internet connection and after this gconftool will close background connection... Same for restore: mcetool -> gconftool.
Ofcourse I use it in profilematic
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#60
Originally Posted by Schturman View Post
I will report later if it have any problem... I started to use it in combination with mcetool. First mcetool will close internet connection and after this gconftool will close background connection... Same for restore: mcetool -> gconftool.
Ofcourse I use it in profilematic
Could you also please check on the reverse? First gconf value change then mcetool
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:36.