maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Solved] How do I spot which application is causing my N900 to connect to the internet? (https://talk.maemo.org/showthread.php?t=60983)

clasificado 2010-08-24 12:36

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
@eitama some of us also want to reach your phone from the PC anytime.

in that case, we need the phone to be connected and reachable all the time.

But for me is not clear what is the behaviour of that option

handaxe 2010-08-24 12:37

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
I was thinking more of "netstat -pac". Netstat needs to be running when the connection is made. Halt the capture "ctl-c" right afterwards and scan up through the output or pipe it to a file.

ste-phan 2010-08-24 12:46

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by eitama (Post 796792)

Is this a tcp connection? does it remain Established for long? or just a sec?

Eitama, here is the thread about the lotus connection.

http://talk.maemo.org/showthread.php?t=49759

UDP or TCP I don't remember but I would like to get rid of it.

Somebody smarter with time at hand might be so kind to port a Little Snitch Like firewall that intercepts ET phone home :rolleyes:

eitama 2010-08-24 12:55

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by gabby131 (Post 796812)
i hope this helps.

you said you set the connection to "any connection" option

there should be a search interval below, that allows your device to connect and browse available connections every 5, 10, 20mins or Never.

may switch that search interval option to "Never" so it wont browse for available connections.

Oh Gabby! Why have you been so silent so forth???
I think you are right!
Thank Nicolai and Gabby!

I think this solved my problem, I am not sure this is the behavior I would expect from the phone. Maybe i'll open a bug.

Cheers :)

DeargDoom 2010-08-24 12:57

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by eitama (Post 796666)
Hey guys,

I have my network connectibity set to Auto Connect to Any COnnection, I like it this way, and using auto disconnect to close those connections when not needed.
The problem is, every 5 minutes or so, my phone connects to 3g internet if there is no wifi. Some app is causing it to connect.

My understanding of Maemo is that no app silently causes a new connection to be made. Apps use existing connections.

In order for such connections to exist there is an option to "Auto Connect" to "Any Connection". This is done at an interval specified by the user, 5 minutes for example.

In such a configuration, even with no apps running, your phone would connect to a 3g internet connection if there is no wifi.

Your phone seems to be functioning properly. Maybe you should configure it to Always Ask or WLAN.

zlatko 2010-08-24 12:58

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by eitama (Post 796807)
You think? why would the phone maintain a connection if it's not needed! it's just a battery drain!
To me it sounds like :
- If phone needs internet, autoconnect will connect via wifi or gprs/3g
- If the internet is idle, autodisconnect will drop the connection.
- Sounds perfect to me. If you think autoconnect just brings up a connection cause there is none at the moment then this is probably my problem.

Till now I also thought that this is expected behavior and was using the same Autoconnect/Autodisconnect combo as you. But after reading nicolai's answer I just checked with the User Guide and it looks to me now that phone is not connecting to Internet only when needed, but it scans for available network and connects to it every time the interval you have set in Autoconnect had passed.
Because modest e-mail on my device is set to check new mail every 1 hour and autoconnect is set to 1 hour I always though it is the e-mail that requires connection.
Now I changed Autoconnect to "Never" and will have to wait to see if N900 establishes connection when some application requests it.
I am interested how other users have set up their devices and what are the results.

Sorry for the long offtopic - may be shall start another topic?

eitama 2010-08-24 13:20

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by zlatko (Post 796833)
Till now I also thought that this is expected behavior and was using the same Autoconnect/Autodisconnect combo as you. But after reading nicolai's answer I just checked with the User Guide and it looks to me now that phone is not connecting to Internet only when needed, but it scans for available network and connects to it every time the interval you have set in Autoconnect had passed.
Because modest e-mail on my device is set to check new mail every 1 hour and autoconnect is set to 1 hour I always though it is the e-mail that requires connection.
Now I changed Autoconnect to "Never" and will have to wait to see if N900 establishes connection when some application requests it.
I am interested how other users have set up their devices and what are the results.

Sorry for the long offtopic - may be shall start another topic?

I don't think it's offtopic, it's exactly the topic!
And I don't mind the phone scanning every 5 minutes for wifi networks, but only connecting if it's needed.
Connecting ANYWAY is stupid.
And the same as applications can cause the connections window to appear, i want them to be able to cause the phone to connect to what ever is available with Any Connection chosen.

At least now I know why it's happening (:
I changed it to never, and problem solved.

zlatko 2010-08-24 13:35

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
@eitama
I come from 6+ years using Symbian and expectations of connecting behavior are same as yours. I really prefer being always connected, but it is the battery drain that makes this impossible. So with battery not able to sustain 2-3 days of normal usage for such a device "connect on request/disconnect when idle" pattern is far more sensible fro me.

eitama 2010-08-24 13:41

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by zlatko (Post 796873)
@eitama
I come from 6+ years using Symbian and expectations of connecting behavior are same as yours. I really prefer being always connected, but it is the battery drain that makes this impossible. So with battery not able to sustain 2-3 days of normal usage for such a device "connect on request/disconnect when idle" pattern is far more sensible fro me.

Maybe the Never option in the interval dropdown will act just like that, I can't check right now as I tried installing nitdroid, and now my phone won't boot (; need to reflash.

zlatko 2010-08-24 13:48

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
@eitama
I have set it to "Autoconnect"&"Never". After several hours I will be able to tell if there are connections initiated by apps.


All times are GMT. The time now is 11:46.

vBulletin® Version 3.8.8