![]() |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Anyway to check if the script is running and working?
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
From the command line ps | grep auto will show if any autodisconnect is running. |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Maybe in the end we're just using a different definition for the term "idle". Quote:
What are your 2k per minute used for ? Emails ? Weather update ? Then again we are not using the different definition of the term 'idle'. Anyway that's interesting because we have both different needs and it has to be taken in account to make a generic app for that. Thanks again for your feedback! |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Thanks for the feedback. I didn't asked to you directly because I knew what your answers would be (I have read all your interesting previous posts). Do you think you could you try to identificate the origin of the 42 bytes ? I'm curious and it would help me to understand the process. I just ran a few tests with my home wifi connexion but unfortunately I didn't log any received or sent packets on my device. That's why I assumed my script worked. Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
@mclarson: I've copied your code but while executing I get the following error: line 60: syntax error: "then" unexpected (expecting "{")
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
I think the script should be given a simple GUI, packaged and then see what feedback it gets. I've been wanting something like this since I got my n900 back in November. For me 3g eats up way too much battery life and if I forget to turn it off I find myself without a phone when I most need it.
Many thanks to azstunt for getting the bulk of the work done and to calvin_42 for the extra touches. So far it works ok for me but I'm still trying to find optimal settings. |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
I can see this benefitting alot of people :) |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
today i was able to test icq idling over 3g. seems i have to play around with the bytes-count taken into accout for determining unused connection.
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
You could always keep your script as it is, I mean, in theory that's the way it should work. But considering that you are making an app for end-users, I believe it would be wise to know why it may not work for everybody and how to fix it. Having said that, it may be just for me, so I won't draw any conclusions until many people have tested if they receive or send packets when not using the connection. PS: My n900 not only receives 1 packet of 42 bytes every 20 seconds or so, it also sends 1 packet of 60 bytes at the same interval. I had not payed attention to TX since I was not using it in my script. |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Code:
apt-get install tcpdump |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Code:
$ tcpdump -i wmaster0 -vv Code:
$ tcpdump -i wlan0 |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Hi there! The application is almost finished. Need to build the .deb package now.
I made a small script in if.d : Code:
#!/bin/sh When I connect to the Wifi, $IFACE="wlan0", but when i connect to the 3G, $IFACE is empty instead of containing "gprs0". Any idea why ? Thanks. UPDATE : it appears to be a known issue : https://bugs.maemo.org/show_bug.cgi?id=7733. Please vote! |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Is there a way to establish the gprs0 connection from the command line/with a simple script?
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
installed this script around a week ago seemed to work fine till phone was re-booted . now doesnt work wifi never disconnects when idle.
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Hope it will be on Extra-Devel soon. |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
lly disconnect and reconnect wifi to make it work again |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
The application AutoDisconnect is now available in the extra-devel repository.
The thread for this app is here. Don't hesitate to post feedback there! |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Note to all people with questions about the script I posted: Please use the autodisconnect calvin_42 uploaded to extras-devel. And don't forget to disable extras-devel afterwards blah blah!
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Code:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"Internet Pelephone" uint32:0 gconftool-2 -R /system/osso/connectivity/IAP |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
All times are GMT. The time now is 11:35. |
vBulletin® Version 3.8.8