View Single Post
Moderator | Posts: 5,320 | Thanked: 4,464 times | Joined on Oct 2009
#100
Originally Posted by ajalkane View Post
Right. I think I misunderstood your original posting. I thought it was, because of the scanning setting, asking you for internet connection. But it was asking because you had no connection at all (no GSM nor WLAN).

But like you said, it's good to get different experiences on this so that good solutions for different use cases are found (with or without ProfileMatic).

So to help with that, I'll write here what I understand to be the commands to disable and enable WiFi scanning.

Disable WiFi scanning:
Code:
gconftool -s /system/osso/connectivity/network_type/search_interval -t int 0
Restore WiFi scanning (every 5 minutes):
Code:
gconftool -s /system/osso/connectivity/network_type/search_interval -t int 300
You should be able to enter these commands directly to ProfileMatic's custom action's to bind them to conditions you wish. Or, of course, run them directly from terminal.
So basically we use this to disable WiFi scanning if needing background connections (email etc) & we're already connected via 3G or WiFi.*
[And re-enabling if we're not connected to the net of course]
And soon (once implemented in Profilematic) we'll also be able to enable/disable this scanning based on condition/state of BT streaming?

Personally that sounds way better to me than having to mess with a toggle button that we must manually interact with.**
This is awesome news!!! Time for another donation soon I think...

*actually IIRC WiFi scanning should cease when connected via WiFi right? So scanning only needs to be disabled when connected via 3G or GPRS
**not that what you've done there goes unappreciated, everyone has their preferred usage pattern, & going by this post using both approaches has its advantages!

Last edited by jalyst; 2012-09-18 at 16:26.