New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Milini
Old
#1  
Junior Member - OP
Thanks Meter 2
Posts: 17
Join Date: Oct 2010
Lightbulb Tasker - Configure your DHD to safe energy

Hi,

some people asked what to do until their DHD arrives. They proposed some games...

I have a better suggestion.

Many people suffer short battery and there are many discussions and tipps like turn your GPS off, disable 3G connection if you don't need it. That's all perfectly right. Do you now that you can perfectly automate this by using an app called tasker. You can configure very very much.

I don't have an android phone at the moment (waiting for my DHD), but I have a vision what to configure when it have arrived. I would like to write and test the scripts beforehand but I can't. See my configuration proposals below. Maybe somebody with an android phone is happy to script it and shorten waiting time. Or somebody with a DHD can do it and report the effect.


Quote:
Description - Version 1.0

Number 1a:

IF the screen is locked/black screen (I'm not using the phone)
switch to 2g
ELSE (screen is unlocked)
switch to 3g
ENDIF

Alternative Number 1b (Even more powerful):

IF the screen is locked/black screen and I'm not using the phone
switch to 2g and switch off data connection.
every 30 minutes switch on the data connection for 5 minutes for synching (facebook and so on)
ELSE (the screen is unlocked)
switch to 3g + data connection
ENDIF

**Description number 1: It's quiet energy consuming for your the phone to hold the 3g connection, even more in areas with bad connection or during driving/moving. On the other hand you don't need that fast connection if you don't surf or use apps. So if your phone is locked only 2g is used. This is enough in order to sync facebook & co. This first condition is also known as juicedefender mode

Number 2:

IF navigation/maps software is started
switch GPS on
ELSE
Leave GPS off
ENDIF

**Description number 2: GPS is energy consuming as well. So turn it off and let it turn on if the apps x, y, z are launched.

Number 3:

IF I'm in a predefined GPS oder cellular zone (at home)
Turn on WLAN
ELSE
turn off WLAN
ENDIF

(This means if I'm leaving home, WLAN turns off.)

**Description number 3: WLAN is energy consuming as well. So turn it off and let it turn on if you are in an are where you know you have WLAN, e.g. at home, at work, at you daily coffee shop.

Number 4:

IF phone is switches in the car holder
switch GPS on
start the car panel
start mp3 player (Winamp beta)
(some people may ad "turn on bluetooth" here)
ELSEIF the phone is switched off the car holder
turn off GPS
stop car panel
stop MP3
ENDIF

(This means if I'm leaving my car, GPS is turned off)

**Description number 4: Just to make live comfortable.
 
arielext
Old
#2  
arielext's Avatar
Senior Member
Thanks Meter 11
Posts: 177
Join Date: Oct 2009
Location: Helmond

 
DONATE TO ME
prob not the correct spot to ask, but how battery consuming is tasker? I've tried locale on some of my older android phones and they drained more battery with locale then without due to polling time and position, is tasker any different?
HTC One / Windows Phone 8X by HTC / Samsung Galaxy S 2
 
gogol
Old
#3  
gogol's Avatar
Senior Member
Thanks Meter 129
Posts: 3,327
Join Date: May 2005
Can Tasker switch 3G to 2G and vice versa? Last time I checked, it cannot do that.

Came from the developer:
http://groups.google.com/group/taske...da45a4fac8a651

@arielext: Tasker does not drain a lot of battery. I own and use Tasker, my HTC Desire battery life is still the same compare to before using Tasker.
Galaxy Nexus (Official yakju build): Android 4.1.2 "yakju" stock ROM, stock recovery, rooted ... fastboot unlocked
 
appelflap
Old
#4  
appelflap's Avatar
Recognized Developer
Thanks Meter 692
Posts: 3,887
Join Date: Feb 2008
Location: Utrecht
Quote:
Originally Posted by arielext View Post
prob not the correct spot to ask, but how battery consuming is tasker? I've tried locale on some of my older android phones and they drained more battery with locale then without due to polling time and position, is tasker any different?
From the examples I see above it seems that Tasker doesn't act on locations but on hard coded rules.

Nevertheless, I wonder if the monitoring of all the conditions I see in the scripts will actually save the battery. Are there any comparissons made?
 
nxtwrld
Old
(Last edited by nxtwrld; 10th November 2010 at 08:06 AM.) Reason: more info
#5  
nxtwrld's Avatar
Senior Member
Thanks Meter 6
Posts: 123
Join Date: Sep 2008
Location: Prague
I am having a problem with the GPS on in Tasker. I try to turn it on when the Car Panel starts (no dock to dected so far), but it seems to ignore tasker command. The task runs ok, as I placed a notification sound for testing, but the GPS just stays off. Anyone experiencing the same problem?

(it did work on Milestone with Locale)
HTC Flyer & Sensation < iPhone 4 < Desire HD < Motorola Milestone < Touch Diamond < iPhone 3G < iPhone