maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   How to define how long a non persistent WLAN shall stay connected? (N9) (https://talk.maemo.org/showthread.php?t=81328)

DarkSkies 2012-01-04 01:54

How to define how long a non persistent WLAN shall stay connected? (N9)
 
Hey there,

using N9 we have two options:
  • to set the phone to stay always connected to a WLAN/3G internet
  • to disallow "background connections" so when an application wants to connect to a wireless network (the phone normally being disconnected from it), a temporary wifi connection is initialized and then the phone stay connected for a while until the connection is dropped (since persistent connection is not allowed)

My problem in the 2nd scenario: the phone stays connected to a non persistent WLAN for a too short period of time. This becomes especially annoying when checking mail or browsing web. After a while the WLAN connection is dropped and has to be re-initialized again. This takes time.

My question: How to set for how long the phone should stay connected to a WLAN if the setting Settings/Internet connection/Allow background connections is off?

Thanks! This will surely make my life easier.

jukkar 2012-01-04 17:37

Re: How to define how long a non persistent WLAN shall stay connected? (N9)
 
You could try to tweak the default idle timeout value if it helps you.
Try following in terminal window

gconftool-2 -s /system/osso/connectivity/network_type/default_idle_timeout -t int 300

The value 300 means 5 minutes. Default value is 60. Note that the value is used also in powersave mode so you might not want to increase the timeout too long. Note also that there is no system UI for tweaking the value.

DarkSkies 2012-01-04 19:00

Re: How to define how long a non persistent WLAN shall stay connected? (N9)
 
Excellent, thanks! I set 120 and my WLAN connection timed out after some 2-3 min so that's exactly what I wanted.

Jalyst, if you are reading this, I bet this is worth adding to N9/x0: share how-to's/workarounds/mods/apps/other :)

www.rzr.online.fr 2012-01-07 14:22

Re: How to define how long a non persistent WLAN shall stay connected? (N9)
 
cool it would be neat to add this feature to n9tweak :

http://talk.maemo.org/showthread.php...hlight=n9tweak

regards

AlMehdi 2012-01-11 13:56

Re: How to define how long a non persistent WLAN shall stay connected? (N9)
 
Was going to add this to n9tweak.. but can't find that setting. Are you supposed to add this rather than change an already existing one? Or is it the "idle_timeout" you mean?

DarkSkies 2012-01-11 15:14

Re: How to define how long a non persistent WLAN shall stay connected? (N9)
 
BTW, this works for WLAN overall, but not WLAN in Fenix mail if only the connection is started by the application itself. This means that if you start manually your WLAN before executing Fenix, it will not time out by default etc, but if you don't start WLAN connection and let Fenix do it, it will behave in the same way as before - very short timeouts. Quite peculiar.


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

vBulletin® Version 3.8.8