maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Toggle Standby (LPM) Screen + Toggle WLAN (https://talk.maemo.org/showthread.php?t=88466)

thedead1440 2013-01-22 16:40

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
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...

Lucazz990 2013-01-22 16:48

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Quote:

Originally Posted by thedead1440 (Post 1316667)
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 :D

Schturman 2013-01-22 17:07

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
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

thedead1440 2013-01-22 17:12

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
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 :D

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

ajalkane 2013-01-22 17:30

Quote:

Originally Posted by thedead1440 (Post 1316681)
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.

thedead1440 2013-01-22 17:38

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Quote:

Originally Posted by ajalkane (Post 1316686)
This does not work. See ProfileMatic thread for workarounds.

Hmm funny thing is I had thanked the post you are referring to :D

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. :confused:

ajalkane 2013-01-22 17:41

Quote:

Originally Posted by thedead1440 (Post 1316690)
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. :o

Ah great. So perhaps it does work as long as mcetools is called afterwards.

bibek 2013-01-22 17:52

Quote:

Originally Posted by ajalkane (Post 1316694)
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 2013-01-22 17:55

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
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 :)

thedead1440 2013-01-22 17:56

Re: Toggle Standby (LPM) Screen + Toggle WLAN
 
Quote:

Originally Posted by Schturman (Post 1316702)
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 ;)


All times are GMT. The time now is 13:10.

vBulletin® Version 3.8.8