Using Tasker to save that battery - T-Mobile Samsung Galaxy S II SGH-T989

Just thought I would post some of my tasker setup to make my battery last a very long time!
First you need Tasker
You also need Secure Settings
And lastly you need Synker
if you want to make my settings super easy to install just download the two attached files and place them on the Sdcard in the Tasker folder.
userbackup.xml
userbackup.xml.txt
then start Tasker, click on the menu button and select Data then restore. This will place all my prebuilt settings in for you.
The first profile I have is Mobile. I have this profile made for when I am in my car but its settings are for anytime power is plugged in.
The things it does is: Turn on GPS, Turn off auto brightness, turn display brightness to max, turn auto sync on, turn media volume to full, turn display time out to one hour.
When unplugged from power it does the following: Turn off GPS, display turns off after 30 seconds, Auto brightness on, Auto sync off, wifi off.
The next setting turns on GPS automatically once maps or navigation is started then turns it off once you exit those apps.
The next one is the big battery saver! When the display is off it Turns off mobile data and wifi.
When the display turns on it will wait five seconds and then turn on mobile data.
lastly I have it setup to turn on mobile data every 2 hours and sync gmail then turn mobile data back off.
I have had tasker for a long time but never really dug into it until I got the SG2. I think this will make your battery last much much longer.
If anyone has better suggestions please add your input.
18.4009

i have the same setup but use juice defender to do the same thing as tasker and synker. it can actually more, like sync more or less at certain times of the day. but i've been thinking about switching to tasker, might be more battery efficient.
i'm using secure settings to turn gps on\off too, based on what applications get run. i noticed the little tray icon only turns on when an app is actively using the gps tho. does that mean gps only uses battery when actually in use? but it seems like i get more battery with it turned off completely.
for mobile, i'm going to attach gps to my car's nfc sticker instead of when plugged in. might be a little faster for charging at home.
i guess you could use secure settings and tasker to only turn nfc on at the lockscreen. although i'm not convinced nfc uses much battery.
lets see... i'm also using tasker to immediately turn off the display if upside down (in my pocket).
it turns data off if i'm reading an ebook or watching a video.
i use it for 1 click switching between 2g and 4g.
i use it to switch cpu max between 192000, 918000, and 1728000. you can get crazy battery life by running 192000 all day, but everything will run slow. usually i keep it at 918000 and play games at 172800.
there are lots of other things, but that's the battery stuff.
18.4009 said:
Just thought I would post some of my tasker setup to make my battery last a very long time!
First you need Tasker
You also need Secure Settings
And lastly you need Synker
if you want to make my settings super easy to install just download the two attached files and place them on the Sdcard in the Tasker folder.
userbackup.xml
userbackup.xml.txt
then start Tasker, click on the menu button and select Data then restore. This will place all my prebuilt settings in for you.
The first profile I have is Mobile. I have this profile made for when I am in my car but its settings are for anytime power is plugged in.
The things it does is: Turn on GPS, Turn off auto brightness, turn display brightness to max, turn auto sync on, turn media volume to full, turn display time out to one hour.
When unplugged from power it does the following: Turn off GPS, display turns off after 30 seconds, Auto brightness on, Auto sync off, wifi off.
The next setting turns on GPS automatically once maps or navigation is started then turns it off once you exit those apps.
The next one is the big battery saver! When the display is off it Turns off mobile data and wifi.
When the display turns on it will wait five seconds and then turn on mobile data.
lastly I have it setup to turn on mobile data every 2 hours and sync gmail then turn mobile data back off.
I have had tasker for a long time but never really dug into it until I got the SG2. I think this will make your battery last much much longer.
If anyone has better suggestions please add your input.
18.4009
Click to expand...
Click to collapse

Hey ,I just wanna say thanks I was getting 8 hours on a Verizon extended battery but now using your settings and tasker plus extra apps I'm getting 14 to 15 ,I just wanted to add that it in order to use secure setting you have to root your phone but it worth it.
Sent from my SGH-T989 using XDA

I just check my battery stat and it up to 21 hours,I cant believe it thanks again
Sent from my SGH-T989 using XDA

Do you still have these backup files? The links are dead when I try them. I would like to try out your settings.

Reupload please
Sent from my SGH-T989 using Tapatalk 2

Code-hunt
First post and it's a necro asking for something. I swear I used to have an account here in high school.
Anyway, I think those files are gone. Every time I come back to Tasker I try to start from the group up and a day later I'm fiending for backup.xmls/txt just whatever you use for your battery, please, just a quick string of code.

Re upload
Backup files

Related

Possible to leave screen brightness on when charging?

When in the car, I would like my screen to stay on when charging.
I found a way to do this by going to Settings -> Applications -> Development -> Stay Awake
However the screen may stay on, but it still dims after X minutes (depending on the Time-out settings) so i cant see a thing on my phone during daytime.
I can ofcourse set the time-out to 30 minutes, but i dont want my screen to stay on full brightness for 30 mins when its NOT charging!
Anyone got an idea?
Thanks!
Setting profiles mate. You can set different profiles for when it is charging, including keeping the screen on, and when you unplug it, it goes back to normal. I've been using it for quite a while and it works spot on
Cheers
Ian
-------------------------------------
Sent via the XDA Tapatalk App
Sorry I'm a bit of a Droid newb. On my old 6,5 winmo there was a slider for brightness on battery and brightness on charge.
Is this profile setting stashed within the settings somewhere or is it an app?
Thanks for your help
Another way of doing this is to activate car dock mode when you're in the car. There are some apps that allow you to manually activate various dock modes, and I think when in car dock mode the screen stays on all the time at full brightness.
The app I used is called 'dock simulator' or something like that on the market, and it's free.
Sweet thanks. Any idea how to lose the logo?
Open settings, applications, development, and tick always on when charging, nice and easy
cgrec92 said:
Open settings, applications, development, and tick always on when charging, nice and easy
Click to expand...
Click to collapse
Yea but as already said in post 1 the screen dims.
found a problem with the dock app where it puts calls out on the loudspeaker, and you get the icon.... damn!
you can always download power manager from the market and set to never dim/timeout
Yes but then it eats the battery
[email protected] said:
Yes but then it eats the battery
Click to expand...
Click to collapse
Ok seriously what's wrong with you you've started a thread cos ur screen dims, get use to it! Of course if you keep your screen on your battery will die quick you can't have everything
I agree this is annoying, when you have the phone plugged into the charger it would be great if the screen didn't dim, happens sometimes when I'm reading ebooks on my phone, don't want to change the dim settings as I want the screen timeout to kick in when not plugged into the charger.
Is there any app that wont let the cpu go to sleep when the screen is turned off and wifi is running with file transfer? cuz no matter which program i try. Transfer speed always slows down to 40% once monitor off. I think the cpu is downclocked.
=cgrec92;6887568]Ok seriously what's wrong with you you've started a thread cos ur screen dims, get use to it! Of course if you keep your screen on your battery will die quick you can't have everything
Click to expand...
Click to collapse
Sorry I thought this was a forum to help people over come issues. looks like you may be in the right place.
1. I never started the thread
2. the initial thread was started by some who has the same problem as me. This means I am not the only one with the problem and maybe it's worth solving
3. The thread was started because on power, in the car the screen dims and I want it bright as I can't see it in the sun. I want an app or a setting so when the device detects its on power it does not dim the screen.
quote from post 1
"I can of course set the time-out to 30 minutes, but i don't want my screen to stay on full brightness for 30 mins when its NOT charging!"
I know this is possible because dock simulator does this but has unwanted side effects ( phone on loudspeaker ) I know I could just fix the brightness on every visit to the car but this is a pain in the ass and I will forget to disable it and flatten my battery.
I could do this on win mo 6.5 and android is a much more flexible operating system.
Sorry if this post covered old ground but I found your last post rather provoking and I would prefer if you directed similar posts, elsewhere.
Thanks to everyone else who has guided in the right direction so far..
I have the same problem and when I asked before I got the same (none) answers.
It is one of the very few flaws I have with Android.
On WiMo I could leave the browser with the traffic site active and VISIBLE in my car charger and I could hit refresh now with android I have to touch the screen to activate the backlight and then refresh the site if I want an update.
I too just want the backlight to stay on ONLY when the phone is on external power, it can't be that hard and it shouldn't involve installing elaborate programs that consume more of the little precious memory I have left (until FroYo ...)
try an app called 'Caffine' from the marketplace its free and does the job perfectly
Thanks I'll give it a try.

App to display a black screen/pseudo lock?

Since we need to have the screen turned on to keep wifi/gps etc. running, and there are a few apps that would ideally run in the background with the screen off; to save battery power (and burn in?) it would be nice to have the AMOLED screen display just a black image.
Is there any app out there that just displays a black screen and maybe ignores all but a specific input?
At the moment I just zoom into a black image in the browser, but I can't put the phone in my pocket like that.
(I tried searching for this, but it was beyond my google-fu.)
You dont have to keep the screen on to run either my gps is always on and it neva disconnects also ive spent many nights going to sleep leaving my wifi connected and its neva disconnected either
Yup. If you haven't set WiFi to switch off after 15mins, it should carry on running.
By doing what you proposed, you'll decrease battery life drastically as you'd effectively be disabling the chips sleep mode by keeping it running 100%. With that, only the screen switches off and everything else including Android keeps running. Any application holding a partial awake lock can achieve this.
Lock delay; an app to control the default screen-lock options allows this.
For instance, if you set the initial screen timeout to 2 minutes but standby/lock to 10 minutes in the settings, the screen will switch off after 2mins idling, but the rest of the phone will still be running incl. WiFi/GPS. You can enable a lock/pattern or no lock at all where you press any key including menu/trackpad and it'll come back on in the same place you left it, without any lock. If the phone idles for 10mins, it'll activate the screen lock and place the phone in the standard sleep mode. The max delay you can set the latter to is 24 hours.
I wouldn't advise avoiding the sleep mode unless required in specific circumstances. Battery loss will be drastic; I found out unintentionally when activating this option at the beginning.
-----------------------------------
- Sent via my HTC Desire -
Thanks th3, that should do what I want. I don't intend to leave it unattended, it's just for when don't need the screen on while an app is doing something.

[Q] Auto night powerdown

I have an HD2 with WP7 - XBmod, and it uses a lot off battery power during the night special if I enable Wifi, 3G, Data, bluetooth, GPS...
I know that if I disable all this before I go to sleep all is bether, but life have to be easy!
Is there a sitting or a program that can auto disable all power consuming hardware in a specified time periode. Fx from 23:00 to 07:00?
it might be better to ask in the WP7 HD2 section... but in general, gps isn't on unless an app summons it to be on (even if you leave the use location setting on), and wifi turns off if the phone is not charging and goes to stand by. so that really just leaves 3G and blue tooth that runs whilst your phone is in standby mode.
though there is no setting in particular to do what you want.

[WIFI POLICY] Idea for the best Wifi battery save

Now, there are 3 different modes for the Wifi suspension control:
- Never: This option never turn off the wifi connection. So, is better when you are connected to a wifi, but is worse when you are not, because the phone is always searching for connection.
- When it´s not charging: This option turns off the wifi when you turn off the screen, if the phone is not charging, so, is basically like the next option if the phone is not charging, and the first option if the phone is charging.
- Always: This option turn off the wifi always when you turn off the screen. So, is better when you are not connected to a wifi, because the phone isn´t draining battery searching for wifi. But it is worse when you are in a known wifi zone, because the phone is using the data instead the wifi when the screen is off, which drains more battery and waste data of your mobile monthly data.
Neglecting the option of turning wifi on/off manually thorugh the widget, and not using 3rd party apps like juicedefender, I thing the most intelligent and battery saver option depends on your life. So there isn´t a good option for all the people and for all days. For example, I thing the best option for me in the working days is 'Always', because I doesn´t have wifi in my working place, and I spend 10 hours a day on it, so, when I am working, the phone is in my pocket without searching for wifi, but, in the weekend, the best option for me is 'Never', because I spend a lot of time on my house. Finally, for a person who stays the most time of his day in a wifi zone, the best option is 'Never'.
Ok, now I ask, it could be an option that could be the best for all the people? I think the answer is YES:
I think if could be possible to have a mix of 'Never' and 'Always'. I explain, imagine the wifi is suspended at this moment, so you are on mobile data, and you are in your house, for example, and turn on the screen to view the weather. When you turn on the screen, the wifi awakes and connect to your home´s wifi connecion and you view the weather. Now you turn off the screen, BUT, THIS IS THE DIFFERENCE whith the 'Always' option, the wifi DOESN´T turns off, because it is connected at this moment. So, all the time you are at home, since the first screen´s turn on, the phone is connected to the wifi, saving mobile data, and battery, because the wifi drains less battery. Now, you leave your home, and, when the phone lost the wifi signal, turns the wifi off, so, when you are in a not known wifi zone (like the street), the wifi suspends itself for saving battery of wifi searching. The wifi only will search for a known wifi when the screen is on (like now with the 'Always' option) and, if it isn´t connected to a wifi when you turn off the screen, the wifi goes to suspension mode. Now you enter to your home again, with the phone in your pocket, with the screen off, so the phone won´t connect to your home wifi until you turn on the screen, and at this moment, your phone will always be connected to your home wifi until you leave your home again.
I think that is a good idea, and I guess why google doesn´t include something like this in android, it could be the best option for all people in all the situations.
What do you thing about the idea?
I like the idea and I would love to see it implemented! Whenever wifi signal drops out, don't search for it until screen is on.. Would be brilliant!
Sent from my Galaxy Nexus using xda premium
I am pretty sure we can configure a Tasker profile for something like that!
Pat123 said:
I am pretty sure we can configure a Tasker profile for something like that!
Click to expand...
Click to collapse
Probably, but the ideal case would be the option integrated into de system
up
Sounds like a good idea
but for now i use Y5 app
I like the idea, I think its very logical. I fall into the "always around WiFi" group of people though and the "Wifi sleep>Never" options suits me well, If I ever am not in my usual places, I have a wifi toggle on my notif bar for that. One thing I do miss though is the app "WiFi Status", its not compatable with either ICS or the SGN, not sure what the problem is, so I cant use it.

Night Mode for Always on Display

Can anyone tell me if there is a built-in "night mode" on the 2XL? Coming from an S7 Edge there was an option in the settings that at a preset time the always on display would switch to a very minimal display that was only across one edge of the screen, it made for a nice alarm clock without being too bright overnight, then at a preset time it would revert to its normal settings of a large clock, displaying notifications, calendar etc.
I know I could use something like Alarm Clock Plus, but am trying to avoid having to install an app if there is built in functionality to do the same thing.
Thanks.
no
Short and sweet. Thanks. There are definitely a couple things Google could learn from Samsung on just small things like that though.
yep. but in the dark the ambient display is not bright so dont be afraid of burning your eyes.
The closest thing I have to what you are asking is using Tasker to turn off AOD when DND is enabled.
I have a profile to enable DND overnight, which in turn disables AOD.
rickysidhu_ said:
The closest thing I have to what you are asking is using Tasker to turn off AOD when DND is enabled.
I have a profile to enable DND overnight, which in turn disables AOD.
Click to expand...
Click to collapse
That's not a bad idea, I paid for Tasker long ago (run it on my Nexus 7 in the car) so it would just be a case of setting it up on the Pixel.
There is a clock screensaver for when phone is plugged. I don't use always on display but want to be able to see clock without touching phone. You can adjust tue brightness of it via nightmode switch. Under display - screensaver h clock ...
naiku said:
That's not a bad idea, I paid for Tasker long ago (run it on my Nexus 7 in the car) so it would just be a case of setting it up on the Pixel.
Click to expand...
Click to collapse
In case you were wanting to actually implement this, I double checked how I did it, and it's with the paid plugin "AutoTools".
I turn the AOD on when I'm connected to BT in my car since it's on a mount and also off at 10pm. If the task runs when your screen is off you do need to turn your screen on for it to take effect. So I check if my screen is off. If it is I have it turn on and off briefly.
trigger always on using tasker auto tools
New Task
Plugin -> Autotools -> Secure Settings
Configure
Custom Setting
Setting Type = "Secure"
Name = "doze_always_on"
Input Type = "Int"
Value = "0" OFF/ "1" ON
I've done some testing and I can't tell if it even works...not sure if a reboot is required or what each time...maybe someone else can add to this.
The below article might be fine for a stock Rom, but doesn't seem to work on Nitrogen with a kernel/magisk.
You need to have ambient brightness turned on though, otherwise, the default values are used and these overrides don't work.
https://www.xda-developers.com/customize-google-pixel-2-always-on-display-brightness/
If you hit the battery saver before you go to bed that will deactivate always on.
Turn battery saver off in the morning and always on will be back on.
Should solve your problem!
Or just flip the screen over. That deactivates it as well.
Lausterboy said:
If you hit the battery saver before you go to bed that will deactivate always on.
Turn battery saver off in the morning and always on will be back on.
Should solve your problem!
Click to expand...
Click to collapse
Sent from my Pixel 2 XL using Tapatalk
I just lay a business card over the sensors, since my thin case has no lip!

Categories

Resources