Re: [maemo-developers] Auto-connect feature

2007-01-29 Thread Amit Kucheria
On Mon, 2007-01-29 at 11:30 +, ext Simon Pickering wrote:
> Hi all,
> 
> I was mightily confused that I'd wake my N800 up from its keypad/screen
> locked state and find that it was connected. I understand that this is a
> feature, and in fact it is quite a useful feature, however there are some
> caveats:
> 
> This feature is switched on by default - for those who don't know about it
> (or need it, etc.), it's confusing and drains the battery.
> 
> It would appear that the device will auto-connect with an interval set in
> the connection settings dialog. I assume it disconnects using the settings
> in the same dialog, which by default set the wlan timeout to infinite - this
> would seem to indicate that it will just stay connected all the time (again
> not ideal for the battery of those who don't need the feature). This seems
> to be the case as it's always connected when I switch on...

Under Connection Manager -> Tools -> Connectivity Setting there are two
settings:

Connect automatically: WLAN connections
Search interval: Never

This will ensure that whenever you click on a URL, if a configured AP is
available it will connect automatically. But when you disconnect the
network connection, it will not automatically keep searching for the
network (Search interval).

Also, setting the WLAN timeout to 5 minutes will ensure that WLAN is
shutdown when idle. As you have found out though, Google Talk presence
will keep network alive all the time.

Regards,
Amit
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Auto-connect feature

2007-01-29 Thread Michael Thompson

On 29/01/07, Simon Pickering <[EMAIL PROTECTED]> wrote:





> >
> > Unfortunately, with default setup, you get an empty battery N800 if
> > you stay at home :



The battery only runs quickly if you leave gmail open in your browser, as I
suspect the java (AJAX) is polling the gmail servers quite frequenctly and
thus increasing the power consumption. As long as I stop gmail the battery
life is good.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] Auto-connect feature

2007-01-29 Thread Simon Pickering
 

> >> The idea is that N800 is connected all the time to known WLAN access 
> >> points so that your VoIP calls actually do come in. If we go with any 
> >> of your proposals this will not work, right?
> > 
> > Unfortunately, with default setup, you get an empty battery N800 if 
> > you stay at home :
> > 
> > I've been hit by this bug saturday night : I put my brand new N800 on 
> > locked mode, before going to sleeping and it connected to my AP in the 
> > night (because of the auto-connect feature + jabber/google talk) and 
> > when I woke up on sunday morning, there was no energy anymore in it :(
> > 
> > I tried to set "auto disconnect after 5 or 10 minutes of inactivity" 
> > to try to workaround it but the presence applet prevent inactivity 
> > detection.
> > 
> > So, if you want to go to sleep, don't forget to put your N800 in 
> > offline mode before locking it (or disable auto-connect).
> 
> That would jave been nice to have aut-connect disabled if 
> manually disconnected fro wi-fi. Or at least a quick way to 
> turn off autoconnect without having to dig to control 
> panel/connection settings.

I was wrong in what I said previously, with auto-connect disabled, the quite
nice feature of the browser connecting without opening the connection dialog
doesn't work (which is a shame). 

The 'problem' with google talk may be supposed to be a feature! Having a
list of apps that are allowed to auto-connect and/or a hard timeout on the
auto-connection would avoid this problem for those who don't want a flat
battery in the morning.

Even better (and to still allow for VoIP should you want to use it), would
be to allow the user to manually configure the timeouts for different apps
(e.g. weather/rss could have 30s every 20min then disconnect, VoIP could be
always on, email could have 1min every 5min, etc.). If using an allow-list,
the timeouts would have to be hard (e.g. something not on the list may be
using the connection, so you shouldn't stay connected just because of that),
and you'd need semaphores/some other synchronisation mechanism to stop
allowed apps from being cut off in the middle of their slot. It would also
require some thought about whether to reset the wait interval for the less
frequent slots if they can use the connection instigated by apps that need
to be online more frequently.

Hope that makes some sense!

This is obviously extra infrastructure work, depends whether anyone thinks
it might be (more) useful I suppose.

Cheers,


Si

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Auto-connect feature

2007-01-29 Thread william maddler
Frederic Crozat wrote:
> Le lundi 29 janvier 2007 à 14:28 +0200, [EMAIL PROTECTED] a
> écrit :
>> Hi,
>>
>> The idea is that N800 is connected all the time to known WLAN access
>> points so that your VoIP calls actually do come in. If we go with any of
>> your proposals this will not work, right?
> 
> Unfortunately, with default setup, you get an empty battery N800 if you
> stay at home : 
> 
> I've been hit by this bug saturday night : I put my brand new N800 on
> locked mode, before going to sleeping and it connected to my AP in the
> night (because of the auto-connect feature + jabber/google talk) and
> when I woke up on sunday morning, there was no energy anymore in it :(
> 
> I tried to set "auto disconnect after 5 or 10 minutes of inactivity" to
> try to workaround it but the presence applet prevent inactivity
> detection.
> 
> So, if you want to go to sleep, don't forget to put your N800 in offline
> mode before locking it (or disable auto-connect).
> 

That would jave been nice to have aut-connect disabled if manually
disconnected fro wi-fi. Or at least a quick way to turn off autoconnect
without having to dig to control panel/connection settings.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] Auto-connect feature

2007-01-29 Thread Frederic Crozat
Le lundi 29 janvier 2007 à 14:28 +0200, [EMAIL PROTECTED] a
écrit :
> Hi,
> 
> The idea is that N800 is connected all the time to known WLAN access
> points so that your VoIP calls actually do come in. If we go with any of
> your proposals this will not work, right?

Unfortunately, with default setup, you get an empty battery N800 if you
stay at home : 

I've been hit by this bug saturday night : I put my brand new N800 on
locked mode, before going to sleeping and it connected to my AP in the
night (because of the auto-connect feature + jabber/google talk) and
when I woke up on sunday morning, there was no energy anymore in it :(

I tried to set "auto disconnect after 5 or 10 minutes of inactivity" to
try to workaround it but the presence applet prevent inactivity
detection.

So, if you want to go to sleep, don't forget to put your N800 in offline
mode before locking it (or disable auto-connect).

-- 
Frederic Crozat <[EMAIL PROTECTED]>

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] Auto-connect feature

2007-01-29 Thread Simon Pickering

> The idea is that N800 is connected all the time to known WLAN 
> access points so that your VoIP calls actually do come in. If 
> we go with any of your proposals this will not work, right?

Oh right, I see what you mean now. 

> You can turn it off from the connectivity settings in the 
> "Connect automatically" dropdown. Then applications can still 
> initiate connection when they feel like it.

I see. So when the keypad's locked (i.e. it's in my pocket), can an app
connect by itself without my doing anything? I suppose it can as when I open
the browser it auto-connects to my wifi router. But in this case, how's it
any different to the auto-connect thing we're talking about?

It would still be useful to have different timeouts for apps like this,
which just want to (auto-)connect, check for mail/weather/rss/etc., and apps
that I'm actively using and want to stay connected (e.g. when I'm using
ssh). I agree that this would not be necessary if I'm always connected
(waiting for VoIP, etc.), but some people won't want this, but will want to
save battery life.

Cheers,


Simon



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] Auto-connect feature

2007-01-29 Thread Jakub.Pavelek
Hi,

The idea is that N800 is connected all the time to known WLAN access
points so that your VoIP calls actually do come in. If we go with any of
your proposals this will not work, right?

You can turn it off from the connectivity settings in the "Connect
automatically" dropdown. Then applications can still initiate connection
when they feel like it.

Br,

--jakub

>Hi all,
>
>I was mightily confused that I'd wake my N800 up from its 
>keypad/screen locked state and find that it was connected. I 
>understand that this is a feature, and in fact it is quite a 
>useful feature, however there are some
>caveats:
>
>This feature is switched on by default - for those who don't 
>know about it (or need it, etc.), it's confusing and drains 
>the battery.
>
>It would appear that the device will auto-connect with an 
>interval set in the connection settings dialog. I assume it 
>disconnects using the settings in the same dialog, which by 
>default set the wlan timeout to infinite - this would seem to 
>indicate that it will just stay connected all the time (again 
>not ideal for the battery of those who don't need the 
>feature). This seems to be the case as it's always connected 
>when I switch on...
>
>I may be wrong about the timeout settings, please let me know 
>if this is the case.
>
>IMO, ideally it should do the following:
>
>* Only allow certain applications to initiate an auto-connect, 
>and if one of these is not running don't bother auto-connecting at all.
>
>* Perform the auto-connect as per the current frequency settings.
>
>* Have a different timeout to the normal (user-initiated) 
>connection settings - this might be a hard limit (so after 
>1min it will disconnect even if there is traffic), or an idle 
>limit (connect, then disconnect when idle for more than 30s, etc.)
>
>Just a few thoughts,
>
>Cheers,
>
>
>Simon

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Auto-connect feature

2007-01-29 Thread Simon Pickering
Hi all,

I was mightily confused that I'd wake my N800 up from its keypad/screen
locked state and find that it was connected. I understand that this is a
feature, and in fact it is quite a useful feature, however there are some
caveats:

This feature is switched on by default - for those who don't know about it
(or need it, etc.), it's confusing and drains the battery.

It would appear that the device will auto-connect with an interval set in
the connection settings dialog. I assume it disconnects using the settings
in the same dialog, which by default set the wlan timeout to infinite - this
would seem to indicate that it will just stay connected all the time (again
not ideal for the battery of those who don't need the feature). This seems
to be the case as it's always connected when I switch on...

I may be wrong about the timeout settings, please let me know if this is the
case.

IMO, ideally it should do the following:

* Only allow certain applications to initiate an auto-connect, and if one of
these is not running don't bother auto-connecting at all.

* Perform the auto-connect as per the current frequency settings.

* Have a different timeout to the normal (user-initiated) connection
settings - this might be a hard limit (so after 1min it will disconnect even
if there is traffic), or an idle limit (connect, then disconnect when idle
for more than 30s, etc.)

Just a few thoughts,

Cheers,


Simon

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers