Notices


Reply
Thread Tools
Posts: 48 | Thanked: 7 times | Joined on Apr 2010
#221
Originally Posted by calvin_42 View Post
No if you want an almost-always active connection AutoDisconnect won't be very useful! 5 mins is a too short interval.
What if I make it 10min :P
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#222
Originally Posted by 316comp View Post
What if I make it 10min :P


Unfortunately no! Read this page to understand why :

http://talk.maemo.org/showthread.php?t=45053&page=19

What a pity!
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]
 
Posts: 28 | Thanked: 8 times | Joined on Feb 2010 @ Portugal
#223
Originally Posted by calvin_42 View Post
Ahah Well Busybox uses the ash shell, so it may be the problem. Easy to know :

Try to run :

Code:
 [[ -n 12 -a 12 -ne 42 ]] && echo 'OK'
Is the OK displayed ?
Nope.. think it has to do with how you group those arguments. With bash you have to explicitly say if it's an and/or condition stringing those up (with grouping for futher clarity preferred). Also, it's highly likely the operators don't necessarily equate to ash's.

On bash:

-a file
True if file exists.

-n string
True if the length of string is non-zero.

arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.

Anyway, I guess I could sidestep all of these and just change the headers on your scripts to use the shell you intended them for.. Busybox, right?
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#224
Originally Posted by kerneld View Post
Nope.. think it has to do with how you group those arguments. With bash you have to explicitly say if it's an and/or condition stringing those up (with grouping for futher clarity preferred). Also, it's highly likely the operators don't necessarily equate to ash's.

On bash:

-a file
True if file exists.

-n string
True if the length of string is non-zero.

arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.

Anyway, I guess I could sidestep all of these and just change the headers on your scripts to use the shell you intended them for.. Busybox, right?
Try #!/bin/ash yep!
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]
 
Posts: 28 | Thanked: 8 times | Joined on Feb 2010 @ Portugal
#225
Originally Posted by 316comp View Post
What if I make it 10min :P
Tell you what.. Try 10 minutes, make sure no other app is "hungrier" than that. Install autodisconnect and the app (forgot the name) that plots you a nice graph for battery usage/drain.

Fully charge your device. Configure everything up to your desired spec. Then, with the battery plotting app running, set autodisconnect to work.. Give it 30 minutes, 1 hour -- try not to use the phone at all during that time (just so the results are as fair as possible). Record the results (take a screenshot of the graph if you must -- Ctrl+Shift+P). Fully charge the device again (shouldn't take long) and repeat with autodisconnect off (uninstall it even, just for the sake of completeness) for the same time interval you did the other one. Record the results.

Compare both graph results and decide for yourself if you can see a worthwhile-enough gain in running autodisconnect while maintaining all the functionality you want/need.

One last advice: for testing purposes, since you won't be actually using the N900 (otherwise you won't be able to trust the battery graph, too many variables), set the disconnection threshold to as high as you can on autodisconnect, just to make sure autodisconnect does bring the connection down as soon as possible. If you see a worthwhile advantage running autodisconnect that way (what I'd call a "rude" mode), then you will see an improvement when you fiddle with the threshold so it only disconnects at the right time.

Make sure, though, that you don't have any apps constantly pinging the net (as some tend to do, for whatever reason -- really annoying).
 
Posts: 28 | Thanked: 8 times | Joined on Feb 2010 @ Portugal
#226
Originally Posted by calvin_42 View Post
Try #!/bin/ash yep!
Will do and let you know.. By the way, sad to see the old description go, mate.. It was so much more enlightening -- it was an actual description, just by reading it you'd know how the app worked.

Meh, but who reads these things anyway, eh?
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#227
Originally Posted by kerneld View Post
Will do and let you know.. By the way, sad to see the old description go, mate.. It was so much more enlightening -- it was an actual description, just by reading it you'd know how the app worked.

Meh, but who reads these things anyway, eh?
Yeah I try to think End-User
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]
 

The Following User Says Thank You to calvin_42 For This Useful Post:
Posts: 28 | Thanked: 8 times | Joined on Feb 2010 @ Portugal
#228
Originally Posted by calvin_42 View Post
Yeah I try to think End-User
As well you should, that's what being a developer is all about.

Ok, editing the shell solves it, thanks!

(EDIT: blah blah blah, nevermind )

Last edited by kerneld; 2010-05-05 at 19:29.
 

The Following User Says Thank You to kerneld For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#229
Originally Posted by calvin_42 View Post
OK good news DaSilva. The problem was caused by the Mameo AutoBuilder, which didn't put on the repository the armel version. So I've uploaded again the same version under 0.3.1-2 and it is now working!

Keep me posted if it now works for you!
Sadly it doesn't show up as an update in App Manager (and apt-get upgrade) either.
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#230
Originally Posted by DaSilva View Post
Sadly it doesn't show up as an update in App Manager (and apt-get upgrade) either.
You're right the Maemo Autobuilder has removed it again!!

See http://repository.maemo.org/extras-d...utodisconnect/ the armel version has been removed. Not very funny!
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:18.