The battery life on my 3D is far worse than my 4G, which had the extended battery (obviously). But until an extended battery is available for the 3D, I will have to deal. In order to make the battery last longer, I'd like to automatically disable background data (or auto sync) when the signal is less than 2 bars for a few minutes. Can any of you help me with this?
I've created a profile that will disable auto sync when signal is "2" or less. But I'd like to enhance it by saying it has to remain less than "2" for 3-5 minutes, so it isn't constantly enabling/disabling auto sync when I go through tunnels, etc.
Thanks in advance!
Dave
Power saver feature that is built in does that.
Oops, reading comp fail. I thought you said battery. Sorry.
-----
3vo. That is all that needs be said.
user7618 said:
Power saver feature that is built in does that.
Oops, reading comp fail. I thought you said battery. Sorry.
-----
3vo. That is all that needs be said.
Click to expand...
Click to collapse
Yeah, it does it when the battery reaches 15%. I want it to do this at any battery level, but only when the signal is weak.
Dave
I've made some progress with this. It's not perfect, but I think it will work.
First, create a task called "weak signal"
Check state, signal level is 0-1
Set variable %WEAKSIGNAL to 1
Wait 3 minutes
If %WEAKSIGNAL = 1
Disable auto sync (I wish this could be background data, but I don't see an option)
Then create a second task called "normal signal"
Check state, signal level is 3-8 (left a gap to prevent flapping)
Set variable %WEAKSIGNAL to 0
wait 15 seconds
If %WEAKSIGNAL = 0
Enable auto sync
I'll test this for a few days and see if it improves things. Coincidentally, I've been in areas with weak signals each day since I got the 3D. As a result, I'm lucky if the battery lasts 8 hours. I know disabling always-on data will fix this, but I don't like that the weather and everything stops syncing. Hopefully this will be a happy medium.
Dave
The tasker script seems to be working perfectly! It has definitely improved my battery life in weak signal areas, and I haven't noticed any ill effects.
Dave
dodgeboy said:
I've made some progress with this. It's not perfect, but I think it will work.
First, create a task called "weak signal"
Check state, signal level is 0-1
Set variable %WEAKSIGNAL to 1
Wait 3 minutes
If %WEAKSIGNAL = 1
Disable auto sync (I wish this could be background data, but I don't see an option)
Then create a second task called "normal signal"
Check state, signal level is 3-8 (left a gap to prevent flapping)
Set variable %WEAKSIGNAL to 0
wait 15 seconds
If %WEAKSIGNAL = 0
Enable auto sync
I'll test this for a few days and see if it improves things. Coincidentally, I've been in areas with weak signals each day since I got the 3D. As a result, I'm lucky if the battery lasts 8 hours. I know disabling always-on data will fix this, but I don't like that the weather and everything stops syncing. Hopefully this will be a happy medium.
Dave
Click to expand...
Click to collapse
Only problme I see with this is that it will kick in if you have a weak signal but still are connected to a wifi hotspot.
Could someone explain how to do this ? how to add this task? So i could save the battery when signal is low . Thanks
I am also having pretty horrific battery life, only 6 hours where my 4G use to last 36... So I thought I'd take this idea and make my own little modifications to it.
First I thought I would explain to those not familiar with Tasker. It is an app that allows you to setup your phone to automatically do "tasks" based on contexts. These contexts can be things like whether your connected to wifi, what time of the day it is, how good your signal strength is, anything your phone can "sense." And tasks are basically anything your phone can do, like turn on and off settings or launch applications.
Market Link: https://market.android.com/details?id=net.dinglisch.android.taskerm
Dev Website: http://tasker.dinglisch.net/
Now for my take on dodgeboy's 'profile'.
Code:
Context 1: Signal Strength, from 0 to 2
Context 2: Wifi Connected, Invert (Not connected to wifi)
Enter Task 1: Wait 1 min
Enter Task 2: Auto-Sync Off
Enter Task 3: Notify,[Title] Low Signal, [Text] Auto Sync Off, Permanent (I wanted a notification that auto sync was off)
Exit Task 1: Wait 15 sec
Exit Task 2: Auto-Sync On
Exit Task 3: Notify Cancel (Clears that Permanent notification)
Here is a link to my exported profile. Just put it on your phone's sd card. Once tasker is open, hit menu, profile data, import one profile.
http://db.tt/gb9w8O4
Let me know what you think. Haven't tested it beyond testing it at my desk by "death gripping" the phone.
ok, so there is some issue with my profile. Occasionally it will not perform the exit tasks, so the notification stays up and the auto-sync remains off. Not sure why it sometimes works and sometimes doesn't..? Maybe I'll try a 2 profile setup like the OP using a variable. Will post back if I get around to making a new profile(s), or if I figure out what is wrong with my current profile.
Thmstec said:
ok, so there is some issue with my profile. Occasionally it will not perform the exit tasks, so the notification stays up and the auto-sync remains off. Not sure why it sometimes works and sometimes doesn't..? Maybe I'll try a 2 profile setup like the OP using a variable. Will post back if I get around to making a new profile(s), or if I figure out what is wrong with my current profile.
Click to expand...
Click to collapse
Are you waiting for it to go through the wait period? The way I wrote it, it needs to stay in one state for a period of time before it changes whether or not the auto sync is enabled. If you want it to happen immediately, just write it without the variable and wait sections.
The reason I want it to wait is because when you enable auto sync, it seems to perform at least a partial sync immediately. I don't want this script to make the battery worse, because it is constantly syncing as it comes in an out of signal range.
Thanks for all the comments, very helpful !!! It is noticeable the battery saving
Hi everybody,
My device is rooted with pure stock 4.2.2 and mediatek 6572 processor.
Problems: (ONLY OVER WIFI and SCREEN OFF)
1. all my notifications are either delayed or undelivered, when screen is off.(not SMSes but those over WiFi)
2. GTalk messages always take 5 minutes(Heartbeat Interval duration) when screen off
3. Play Store apps are never updated/ downloaded when screen is off, start right after screen is on
4. IM apps like Xabber never get IMs until screen turned on
Exceptions:
1. NO PROBLEMS WHILE SCREEN ON
2. Gmail ALWAYS gets email exactly after 30 seconds or more(possibly rules out connection timing out)
3. Above problems disappear using MOBILE DATA
4. NEVER HAPPENS during charging
5. With LOCATION REPORTING enabled, Talk messages reach within 30-40 seconds, with screen off.( battery consumption doubles also)
ALREADY TRIED:-
1. In sleep policy set to Always On
2. Used PNF and set heartbeat interval at 5 minutes, to no avail
3. PORT 5228 not blocked on router
4. WiFi optimizations turned off
5. No battery saving mode or 3rd party app enabled
6. Background Data Restrictions disabled
7. Same thing in SAFE MODE
8. Did FACTORY RESET
9. Tried logging in from another Google account
Any help is greatly appreciated!!
same problem here, have you found the solution?
I have done your own attempts..but nothing.
i have two android phones with CM11, 1 has no delay and one yes
Sounds like the device is going into a very deep sleep when the screen is off. Most likely a software setting or a kernel setting that some use boost battery life. Also make sure not to have greenify installed.
I finally decided that I was missing out by not having Tasker automate my life for me, so bought it as well as the full version of Secure Settings.
I've managed a couple of simple Profiles, but I'm having trouble with other stuff I want to do - most likely because I just don't understand.
A. Aim: When Maps is launched, turn on "WiFi" and "Location Mode High Accuracy"
Profile: Near Work
State: Cell Near (work)
Tasks: (1) WiFi On (2) Secure Settings, Location Mode/High Accuracy
This almost works - opening Maps carries out the expected tasks, and when I exit maps WiFi turns off (desired behaviour). However, Location does not switch off again, it stays on switched on, and I don't understand why.
I'd like Location to switch off again when I exit Maps.
B. Aim: Switch on WiFi and Location Mode/Battery Saving and Location Reporting and Location History once an hour, for one minute, and allow (force?) Google to poll my location for a short period so that if I ever lose my phone and it is switched off, there will be a trail of sorts (without having to leave all these services switched on all the time,which canes my battery).
Profile: Manage Location Services
State: Time - I don't know how I can make the profile active for one minute, every hour
Tasks: (1) WiFi On
Then I get lost - I can't see how to enable Location Reporting which is in Location Services in my phone settings. Also I don't know if doing that would immediately prompt the phone to contact Google and report its location (I assume it would).
C: Aim: Between 10pm-9am, if at home, then silence phone and switch off notification light
State: Cell near (home)
This is as far as I've got. I don't understand how to use time as a defining factor. Nor do I know how to switch off the notification light.
If anyone could help then I'd be very grateful!
Also, after reading a lot of Tasker walkthroughs/userguides (and not understanding a lot of them) I am none the wiser as to how to set up an 'exit task'?
There are a lot of issues regarding Secure Settings, I don't recommend it. The only way to turn on/off gps (and the way I'd do it personally) is use root shell to navigate through the settings or better yet set Status Bar-Open and using a Shell-"input tap x y" Use Root: Yes to tap on the GPS quick setting widget.
To add an exit task simply long press on the action part of your profile (on the main screen) and the options will appear. You can also add additional State, Time or Action matchings to your one profile, by long-pressing on the left part!
<<< Please say thanks if I was of help.
Sent from my SCH-I605 using xda app-developers app
I'VE FOUND A WORKAROUND of this no-push-notif during deep sleep problem.
Earlier, I tried holding partial wakelock so the device never sleep, this of course works alright, but drains battery very rapidly (5% / 30mins).
This is NOT ACCEPTABLE.
So, I tried something else :
automatically waking up the device regularly every 30mins, with the help of Tasker (which doesn't turn on the screen at all).
The result is :
7 hours after screen off and a good night sleep, in the morning I sent myself a BBMsg and it arrived perfectly in about 5 secs.
Battery consumption is totally acceptable : only 4% drop during 7 hours (dual sim ON, data ON).
That's days ago, and still works perfectly until now, I'm happy with it, so I'd like to share the AWESOMENESS.
I'm not sure about push notif from Google servers via GCM, I don't use any app which takes advantage of GCM, I only use BBM which uses its own servers.
In this case, you should first try adjusting heartbeat interval using PushNotificationFixer (which can't help me since it only resends heartbeat to Google server).
Tasker setup :
1. create new profile : Time
* uncheck both start & end time (so it starts and ends from midnight to midnight)
* check Repeat : every 6 minutes (during deep sleep, this 6 mins expands 5x to 30 mins)
2. add new task :
what you do in this task doesn't really matter, the point is to do something in a regular interval (I only use Alert Morse, so I know that the profile is still running)
GODSPEED !!!!
PS. :
if you're not familiar with Tasker, after installation you have to :
1. allow it as admin (system Settings > Device Administrators)
2. turn on its service (system Settings > Accessibility)
3. put it on auto-start list
I have a question about using Llama on Marshmallow. I wrote a basic script that enables airplane mode every 10 minutes and queues another task called disable airplane mode that has a delayed start of 9 minutes. So basically every 10 minutes my device turns off airplane mode for a minute then turns it back on. I left the script running over night, with my phone plugged in and it worked perfect. When I run the script without the phone plugged in, it only works for about 60 to 90 minutes. Sometimes it says conditions no longer true so repeating event canceled and sometimes I see nothing indicating why the repeating event stopped. My initial thought is that when plugged in, Marshmallow does not use Doze. Could Doze be causing a problem and preventing the task from running? I have whitelisted Llama along with 30 or 40 other apps and I am continuing testing. If you have any thoughts, I would greatly appreciate it!
Llama on Marshmallow
Not sure if anyone else is still trying to use llama on Marshmallow, but I found a work around. Polling wouldn't work at all for me so I started using WiFi connections and deleting out the entering / exiting location conditions. Wifi is everywhere now a days. This seems to work well unless you were trying to turn your WiFi off and on based on location. I'd tried e-robot for the same thing and it worked sometimes but not others. Couldn't figure what was going wrong there. Llama is still way easier to set up and more reliable than the alternatives I've tried.