maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] Auto2G: A battery saver script for the N900 (https://talk.maemo.org/showthread.php?t=47601)

JohnLF 2010-03-17 16:26

Re: [Announce] Auto2G: A battery saver script for the N900
 
@MohammadAG
Did consider that originally but wasn't sure if the scripts would ever end and so would nest forever eventually running out of memory. Big lack of Linux knowledge on my part there, hence the cron method.

@nidO, thanks, that's much neater!

Aydan 2010-03-17 17:35

Re: [Announce] Auto2G: A battery saver script for the N900
 
If you could make that into a demon with dbus messaging it would be perfect. :)
It might even be more energy efficient because you wouldn't need polling. You could just listen for the "wifi (dis)connect event" from dbus.

JohnLF 2010-03-17 17:41

Re: [Announce] Auto2G: A battery saver script for the N900
 
I didn't do that because of the hotspot issue. You could automatically connect to a hotspot with a valid IP address, but it wouldn't necessarily be active unless you clicked agree or put your card details in to buy time or logged in with an account.
It would be very annoying if you didn't want to use WiFi in a hotspot area and the phone kept changing your 3G connection to a 2G !

There could be any amount of time between connecting to a hotspot and getting a working connection, hence the polling.

gregc2009 2010-03-17 17:58

Re: [Announce] Auto2G: A battery saver script for the N900
 
Excellent idea JohnLF! This should help me a ton.

What CPU meter are you using that is shown in the status area?

joshv06 2010-03-17 18:09

Re: [Announce] Auto2G: A battery saver script for the N900
 
Would it be possible to switch to 3g when the phone is charging?

dsawhney 2010-03-17 18:14

Re: [Announce] Auto2G: A battery saver script for the N900
 
Quote:

Originally Posted by gregc2009 (Post 570806)

What CPU meter are you using that is shown in the status area?

cpumem applet - http://maemo.org/packages/view/cpumem-applet/

kiralema 2010-03-17 20:14

Re: [Announce] Auto2G: A battery saver script for the N900
 
Very nice idea indeed.
However, just a little warning for those who started using their N900 on WindMobile in Canada. As I had a chance to confirm, N900 relies on the 3G based data connection for voice as well. Switching to 2G turns off the cellular connection on Wind automatically. :(

gregc2009 2010-03-17 20:38

Re: [Announce] Auto2G: A battery saver script for the N900
 
Works like a champ. The only thing I'd add to your first post is the need to do a chown and chmod to auto2g.sh after you get it where you need it.

Aydan 2010-03-17 22:09

Re: [Announce] Auto2G: A battery saver script for the N900
 
Quote:

Originally Posted by JohnLF (Post 570784)
I didn't do that because of the hotspot issue. You could automatically connect to a hotspot with a valid IP address, but it wouldn't necessarily be active unless you clicked agree or put your card details in to buy time or logged in with an account.
It would be very annoying if you didn't want to use WiFi in a hotspot area and the phone kept changing your 3G connection to a 2G !

There could be any amount of time between connecting to a hotspot and getting a working connection, hence the polling.

In that case you could start polling only if wifi is connected but not usable due to it being blocked.
Even if you want it to keep polling I think it would be nicer as a properly packaged demon, so the noobs can use it too.

JohnLF 2010-03-17 22:53

Re: [Announce] Auto2G: A battery saver script for the N900
 
Good idea, I'll look into it but out of my level of knowledge here. Any takers on moving this forward to a packaged daemon?

I did think about a GUI for it, that allowed you to select
  • change back to 3G or Dual mode
  • change the messages shown (no need for localisation issues)
  • switching 3G / 2G when charger connected / disconnected
etc. etc.

I may have to have a crash course in Python / Qt :D


All times are GMT. The time now is 09:12.

vBulletin® Version 3.8.8