Battery drain help - Tasker Tips & Tricks

I previously gave up on Tasker because it was draining my pixel xl's battery. Even with a single simple profile running.
I've since come back for a second try. I've been monitoring the run log and I don't see anything unusual but I'm new to tasker so I could be missing something.
The weirdest part is that my battery stats show tasker as using 0% of the battery (even though I've been using it all day) but when any profile is on its draining about 15% an hour while idle.
My current profile is simply to open blackberry hub when the phone is unlocked (if it's been asleep longer that 2min). The profile works as expected btw.
I'll post the profile details below.
Any help would be greatly appreciated.
Here is the task that is triggered when the event display off occurs.

Related

Battery Life Suddenly Dropped

Hey guys,
About a week ago I started rapidly losing battery life.
I've done a bunch of research and installed task killers, OS monitors, Spare Parts, etc. I've uninstalled apps that had wake_lock and done a Reset to Factory Defaults,changed the brightness, as well as performed a recalibration for the battery (one cycle). I also turned the phone to Airplane mode since I moved offices and thought maybe that was a problem.
I am not sure why this is the problem, but I have notices through spare parts that my phone does not go to sleep. The time it gives for Time without Sleeping (under "other Usage->Last Unplugged) is typically about the same time as I have had it off the charger. The phone will not last a full day anymore (Actually I'm lucky if it's still on when I get home from work). The only program that I can think of is the new maps application.
Here are my questions:
1) Is there a good way to find out if there is a specific program that is not allowing sleep (w/o uninstalling everything and adding them back one by one)?
2) How do I fix this problem? Would a hard reset work?
3) Generaloes anyone have any ideas on how to fix this? Why wont my phone go to sleep?
4) Could this have anything to do with the new maps/navigation update that Google sent out OTA last week?
Right now it has not slept for over 5 hours, but I been pressing the power button (not turning it off) when I put it down.
I ca provide a list of programs if that helps, probably some statistics too
Thanks!
In Spare Parts under Battery usage, there is a "Partial wake usage" option. Did you check that to see what is keeping it awake?
Since Last Unplugged:
Android System: 6m 16s (blue bar)
Dialer: 1m 40s (blue bar)
Facebook: 56s
Google: 44s
Media 28s
Google Voice: 20s
Calendar: 20s
Messaging 4s
None of that seems to make sense when you look at:
Other Usage: Time Spent Without Sleeping: 6h 36m 1s..
Maybe I am mis-reading it?
Thanks!

Battery is draining due to WiFi partial wake lock on Android system process

Hi all,
After noticing my battery was draining quickly, and then after reading this thread , I installed Android System Info to see what was draining my battery so fast. I notice that whenever I would turn on WiFi, the phone will never go to sleep , regardless of what I set the WiFi sleep policy to. After turning off WiFi, the battery still drains heavily.
The WiFi will shut off after 15mins (if you set it to "When screen turns off" or "never when plugged in"). However it seems to keep the CPU on causing it to drain down the battery.
It would seem that whenever WiFi is enabled, the Android system process creates a partial wakelock that does not go away even if you turn off WiFi, and even when the WiFi shuts off as per the WiFi sleep policy. The only way to resolve this is by powering off or rebooting the phone.
You can verify this in Android System Info by going into Battery-History-Other Usage-Partial Wake usage to see how much time the "Android System" process holding a partial wake.
I even did a factory reset on the device; and it is still happening so it doesn't appear to be any app that caused the issue. As I said, it works fine as long as I don't enable WiFi.
I already know of two users having this issue, but I'm wondering if folks having battery problems are going through this as well. Is anyone else having similar issues after using WiFi? I'm hoping someone will be able to identify what exactly is putting the wakelock on and we'll be able to find a fix for it. Other than not using WiFi at all or rebooting the phone after using Wifi.
Does someone know if there is a utility to drill down and see which process would be causing the wakelock? "Android System" doesn't give me any more details.
Any help would be greatly appreciated.
btw I'm not using any battery savers or task killers.
Update...i have the wifi sleep policy set to "never". Also have the network time sync disabled. I am no longer getting alot of battery drain from the Android System partial wakelock.
However, this means WiFi is on all the time....which burns up the battery as well.
Do you think this is a Samsung bug or Android that won't properly let the device sleep when the WiFi sleep policy is set to anything but Never?
Hoping someone at XDA can figure this one out.
I wonder the same thing...I lose about 20% during the night when the phone is not used for about 7 hrs. Not sure if that's normal or not
fldude99 said:
I wonder the same thing...I lose about 20% during the night when the phone is not used for about 7 hrs. Not sure if that's normal or not
Click to expand...
Click to collapse
Set the WiFi sleep policy to "Never" and reboot the phone. Shut WiFi off if possible overnight. You should notice a big improvement with battery life.
Devs - is there any way to see what is wakelocking the Android System process?
The WiFi sleep policy seems to be broke on the Captivate so hoping someone that really knows these things can help out to identify what is going on.
I've had wifi sleep policy to "never" since I got it. Turning off wifi when going to sleep will slow down battery drain when the phone is not in use all night?
fldude99 said:
I've had wifi sleep policy to "never" since I got it. Turning off wifi when going to sleep will slow down battery drain when the phone is not in use all night?
Click to expand...
Click to collapse
It should. Also setting the network to gsm only will use less battery. We need to find a way to see what process is holding that lock. Any dev experts out there please chime in.
fldude99 said:
I wonder the same thing...I lose about 20% during the night when the phone is not used for about 7 hrs. Not sure if that's normal or not
Click to expand...
Click to collapse
That is anything but normal unless you live where your cell signal is very weak. I see about 1% lose every 60- 90 minutes when idle. 10-12% when browsing or reading xda. Dont do heavy gaming do not sure what you should see there. Weak cell signal will kill battery life as can other factors.
I do have a weak cell signal at my house. I'll have to ck it in idle mode in my office, where I have a good signal to see if that makes a difference
On the other hand I just recently installed beautiful widgets and use it's live wallpaper. Also lookout..I'm thinking that could be a battery hog
I'm experiancing the exact issue in the op.
Android System is holding a partial wake lock of about 30-40%
My battery drains 40% overnight.
Are there any fixes for this?
The problem for me was definitely the stock email app continuously polling my Exchange server, killing the battery and my data plan. I resolved it by removing the Exchange server from the stock mail app, and by using Nitrodesk's excellent Touchdown app for mail instead. Touchdown isn't free but it's very good. And now my battery performance is back where to it was prior to the Gingerbread update.
Thanks, Google, for carefully testing this update before releasing it on the unsuspecting public (NOT). You caused a lot of grief for a lot of people.
FAIL!
DarrylGittins said:
The problem for me was definitely the stock email app continuously polling my Exchange server, killing the battery and my data plan. I resolved it by removing the Exchange server from the stock mail app, and by using Nitrodesk's excellent Touchdown app for mail instead. Touchdown isn't free but it's very good. And now my battery performance is back where to it was prior to the Gingerbread update.
Thanks, Google, for carefully testing this update before releasing it on the unsuspecting public (NOT). You caused a lot of grief for a lot of people.
FAIL!
Click to expand...
Click to collapse
I may be wrong, but isn't the default email app from Samsung?
Though, you are correct. I setup my work exchange on it as well and it is definitely a killer. Lately I haven't really been giving a **** and just charge my phone every night. However, I might look into this Touchdown app now.
DarrylGittins said:
The problem for me was definitely the stock email app continuously polling my Exchange server, killing the battery and my data plan. I resolved it by removing the Exchange server from the stock mail app, and by using Nitrodesk's excellent Touchdown app for mail instead. Touchdown isn't free but it's very good. And now my battery performance is back where to it was prior to the Gingerbread update.
Thanks, Google, for carefully testing this update before releasing it on the unsuspecting public (NOT). You caused a lot of grief for a lot of people.
FAIL!
Click to expand...
Click to collapse
for the stock email app you can configure the sync schedule so it doesn't continuously poll your exchange server overnight. i have my sync schedule set to push when i normally wake up and an hour after i get off of work. during off peak hours its set to manually update.
waldo98 said:
for the stock email app you can configure the sync schedule so it doesn't continuously poll your exchange server overnight. i have my sync schedule set to push when i normally wake up and an hour after i get off of work. during off peak hours its set to manually update.
Click to expand...
Click to collapse
how did you set this up??

Noob here. Galaxy S major battery problem. Help please???

I bought my galaxy S two months ago. Its a great phone but the biggest problem for me is battery. When i go to sleep (7-8 hours) and my phone is idle, my battery drains like 10-20 % every night, even when i switched off fb updates, no wifi, no gps, dont have a live wallpaper, and my brightness level is the lowest. I dont knwo what rooting is or rom is. i m a fresh noob, and i need some advice to get increase my battery life. Please help me!!! what should i do?
please help anyone?
http://forum.xda-developers.com/showthread.php?t=884816
Put it on charge when you go to sleep like the rest of us
got-petrol said:
Put it on charge when you go to sleep like the rest of us
Click to expand...
Click to collapse
but doesnt overcharging the battery damage the battery even more?
How I solved my battery drain problem!
Have you tried turning off 3G?
I also had this issue battery drain was huge. It started appearing suddenly one day. Its a very slow process to figure out the culprit. I did a step by step analysis.
1. Found out that battery drain was happening only when 3G was on. Verified this by switching off data network (long press power button to deactivate).
2. Also verified abnormal data usage in my carrier page when I was not using my phone [like - 3G was on and I was watching a movie at a theater].
3. I also saw abnormal battery drain soon after I started Google Maps after a fresh reboot.
4. So I identified the culprit - Google Maps - but was not sure how to solve battery drain [Google Maps restarts, if you kill it].
5. I installed a variety of apps to identify the battery hog. Finally I went for Task Identifier.
6. Task Identifier finally showed me what programs started while my screen was off, etc. And I started noting them. Finally I figured out that Google Maps::BackgroundFriendService was running frequently.
7. A quick search on Google helped me understand that this is about Google Latitude. It searches for your friend's location every now and then - leading to battery drain!!!
8. I opened up Latitude and signed out from it [I guess the sign out option is in Menu -> Privacy].
9. Do not re-open Google Latitude after this - you will get signed in again leading to battery drain.
10. After 2-3 months of search and prodding, I finally figured out the cause of battery drain and fixed it - now I get 2 - 3 days of charge in my battery under normal usage!!
I'm happy now!!
Hi,
If you're using Froyo and can access file in your phone,
In task manager , on the tab "Summary", click on the "start monitoring" button. Let it monitor the phone over the night. The next morning, there should be 2 files created in your sdcard, one is CPUxxxxx and the other one is battxxxxxx.
The Batxxx tells you when the percentage of the battery at certain time of time. the CPUxxxx will tell you wht applications are running during that period.
When i used it first time, i notice that facebook and lattitude always running - when I stop these 2 tasks; i get a normal drain again.
while you guys are at it.
here's my "problem".
when I surf for an hour over 2g I losing about 10% batterylife and android reports that my display uses around 90% to 95% of the battery.
display is set to lowest brightness + screen filter.
is that normal? (im guessing it is not).
used dozens of different roms (stock, darky, jims, etc...), same behaviour everywhere.
i already did all the battery stat wiping and whatnot.
is it a faulty battery or display or something?
for the OP, maybe a combination of the above with this could help :
http://forum.xda-developers.com/showpost.php?p=10092321&postcount=11053
helped me .
edit : to pfannenwender, maybe your unit is faulty?
poundesville said:
Hi,
If you're using Froyo and can access file in your phone,
In task manager , on the tab "Summary", click on the "start monitoring" button. Let it monitor the phone over the night. The next morning, there should be 2 files created in your sdcard, one is CPUxxxxx and the other one is battxxxxxx.
The Batxxx tells you when the percentage of the battery at certain time of time. the CPUxxxx will tell you wht applications are running during that period.
When i used it first time, i notice that facebook and lattitude always running - when I stop these 2 tasks; i get a normal drain again.
Click to expand...
Click to collapse
I have froyo but i dont have any start monitoring button
I also have froyo 2.2.1 and don't have start monitoring function
pfannenwender said:
while you guys are at it.
here's my "problem".
when I surf for an hour over 2g I losing about 10% batterylife and android reports that my display uses around 90% to 95% of the battery.
display is set to lowest brightness + screen filter.
is that normal? (im guessing it is not).
used dozens of different roms (stock, darky, jims, etc...), same behaviour everywhere.
i already did all the battery stat wiping and whatnot.
is it a faulty battery or display or something?
Click to expand...
Click to collapse
Sounds normal to me. 10% loss while surfing and 95% display is nothing extraordinary.
Sent from my GT-I9000
i have the same problem too after upgrading to Froyo 2.2.....what i do was turning the data connection off yand you will get 2 days with moderate usage....but oneday i had overcharged my phone (about 8 hours i think) and after that my phone can stay about a day and half with moderate use......btw i already did the 8 hours charge during my first charge long time ago.!...hope this helping

Battery drains on Maclaws CM11

I'm opening this thread to clean up the Dev thread, since the most probable cause of battery drains are software/configuration related.
Here's my own experience with this matter.
Most of the drains I've seen are related to Location settings and Google Now. It seems Google's Location Reporting and Location History keep pinging WiFi for the location at a fairly high rate, so keeping the phone Awake and/or the WiFi running all the time. An usual indication of this is that in BetterBatteryStats you get:
1) Screen On % very low
2) WiFi On 100% of the time
3) WiFi Running 100% of the time.
4) Awake with moderate-to-high %.
To test it, here's what should be done:
1) Get BetterBatteryStats (BBS), enable Root, install it as system app (in advanced settings). Reboot.
2) Disable WiFi and GPS completely, preferably leaving Data Network also off. You may go all the way and just turn on airplane mode.
3) Leave the phone idle for at least 1h and check that there is no battery drain.
If you get any considerable drain (more than 5%/h), check Kernel Wakelocks and Partial wakelocks, or try again with 2G networks only. You may have a baseband problem. Consider this step as your "control group" as it ensures nothing in the hardware or in the ROM is wrong.
If there is no drain, enable WiFi and GPS again, but make sure all this settings are UNCHECKED:
1) Settings->WiFi-> Advanced: "Network notification", "Keep wifi on during sleep" set to "Never", "Scanning always available".
2) Settings->Location->Google Location Reporting: "Location Reporting" set to off and "Location History" set to off. Or just disable Location completely.
3) Check Settings->Security -> Device Administrators -> Disable at least Android Device Manager. If you can, disable everything else in this screen, such as Airdroid, Cerberus, etc
4) App drawer -> Google Settings -> Search -> Set Google Now to Off. You can also configure Android Device Manager here.
Leave the phone idle again for 1h and check BBS. In theory you shouldn't need to recharge completely, just enable the watchdog in BBS. Always check the wakelocks too.
You should get this on BBS:
1) Screen On % very low
2) WiFi On 100% of the time
3) WiFi Running with low % (anything less than 50% is ok, depending on Sync settings and background apps)
4) Awake with low %.
5) Deep Sleep with almost 100%
Go back enabling stuff as needed, one by one, leave the phone idle and check BBS. Rinse and repeat until you find the culprit.
One thing, make sure you do this after letting the phone sync some of the stuff. Don't do this immediately after a setting up a Google account.
Some people also reported that doing a factory reset solves the drains. It's always recommended anyway.
Any other hints are also appreciated.
For people with trouble making BBS work, Try getting the latest version, enable Root in Settings->Advanced and them System App, also in Settings-> Advanced.
Also:
1) When the phone is charging it WILL BE AWAKE WITH BOTH CORES, ALL THE TIME. Depending on the governor used, both cores may even stay at full speed (aka 1GHz). This is BY DESIGN and stock ROMs does that too. So any measurement while the phone is charging is useless.
2) Most "calibration" procedures are myths and don't have any effect. Erasing batterystats.bin also does nothing to increse battery life or remove drains (but may solve some charging issues, still unclear).
Very interesting.. Good thread and good options to test our battery drain ! thanks for the post.
I'll try this when I get home from school, thanks.
Weird thing happened last night, I thought the battery drain was gone when I recalibrated, but my phone discharged over night, weird thing is my settings show the phone didn't go to sleep once during the entire night, even though it was on airplane mode and I had already used it for like 3 or 4 hours with no apparent brain
There is a lot of battery drain only when WiFi in on. Even if the phone is idle.
I'm on:
Maclaw CM 11.0 [20131210]
I8190XXAMJ2
I'll do the exact tests and post my results.
Do you get notifications with wifi set to never during sleep?
RodHQ said:
I'll try this when I get home from school, thanks.
Weird thing happened last night, I thought the battery drain was gone when I recalibrated, but my phone discharged over night, weird thing is my settings show the phone didn't go to sleep once during the entire night, even though it was on airplane mode and I had already used it for like 3 or 4 hours with no apparent brain
Click to expand...
Click to collapse
Use the 1st step I wrote above with BBS. Check Kernel Wakelocks and Partial Wakelocks. You will be able to pinpoint exaclty what is keeping your phone awake.
I was about to start a thread on the same topic but my problem is with Carbon Rom 4.4.2 . The phone never goes into deep sleep and is awake 100% of the time. I'm attaching what I see as the culprit in B.B.S. I already disabled sync and yet the wakeclocks are sync related I hope anyone can help me with this.
i just changed to peagusq everything is fine
BBS How-to
ArtCar said:
I was about to start a thread on the same topic but my problem is with Carbon Rom 4.4.2 . The phone never goes into deep sleep and is awake 100% of the time. I'm attaching what I see as the culprit in B.B.S. I already disabled sync and yet the wakeclocks are sync related I hope anyone can help me with this.
Click to expand...
Click to collapse
Maybe BBS How-to will help you
http://forum.xda-developers.com/showpost.php?p=15869904&postcount=3
If not than post screens and collected dumps on BBS thread
gimme link to maclaw 4.4.2 for s advance
Sent from my GT-I9070 using xda app-developers app
Link
Here you are
http://maclaw.pl/downloads/
same here
eswarvf said:
i just changed to peagusq everything is fine
Click to expand...
Click to collapse
+1
ArtCar said:
I was about to start a thread on the same topic but my problem is with Carbon Rom 4.4.2 . The phone never goes into deep sleep and is awake 100% of the time. I'm attaching what I see as the culprit in B.B.S. I already disabled sync and yet the wakeclocks are sync related I hope anyone can help me with this.
Click to expand...
Click to collapse
Notice that the Count is 0 on both GoogleServices related wakelocks. To me this seems that Chrome and something else (maybe G+?) are trying to sync (perhaps the first one?) but are not getting enough network time/bandwidth to do so. I suggest you connect to an wifi, turn on the sync, and leave the phone awake for a while (try not to use the network very much). See if that solves. If not, backup and factory reset are your friends.
rcoacci said:
Notice that the Count is 0 on both GoogleServices related wakelocks. To me this seems that Chrome and something else (maybe G+?) are trying to sync (perhaps the first one?) but are not getting enough network time/bandwidth to do so. I suggest you connect to an wifi, turn on the sync, and leave the phone awake for a while (try not to use the network very much). See if that solves. If not, backup and factory reset are your friends.
Click to expand...
Click to collapse
I fixed my problem by switching back to dalvik and now my phone only looses about 5% battery overnight.

[Q] Still chasing battery drain: Is it possible FingerPrint Unlock is part of it?

So having come from Verizon's Note 4 and averaging up to 24hrs on battery running pretty much the same setup as I do now on my T-Mobile Note 4 minus the "Root" & "Custom Rom" abilities. Otherwise, same apps, accounts, usage pattern, ect...
I am on an ongoing battle still after several complete wipes, different Roms including just running STOCK ANK4 and trying to figure out what is going on. Phone defect? Battery defect?
Anyhow, Ever since changing over to both the T-Mobile Note 4 & their service, my experience has been a rather miserable 14 to 18hrs MAX battery life and going from 4hrs screen on time to around 2 1/2 w/ T-Mobile.
Which now leads me yet to wonder something else. I believe I started using the "FingerPrint" security feature since switching to T-Mobile to unlock the device. Has anyone experienced a similar "Battery longevity" issue using said feature before I continue troubleshooting and chasing my own tail on this? Of course I will eventually test this theory anyhow, but figured I would throw it out there.
Also, Open to any suggestions.
Just some things I have already done along with the above mentioned:
- Utilized the App "Greenify" & donation full version to greenify many apps including "Google Play Services".
- Set up Profiles which I toggle via "PhoneWeaver" to turn off data when on Wi-Fi which consists of 90% of my day as I'm Wi-Fi connected both at home and work.
- Of course always turn off that option within Wi-Fi settings to untick "Always Scan".
- Went into "Google" app settings and turned off about everything I can find in there and it's now rather complex settings.
- Turned off most syncing of my 2 "Google" accounts to only one having anything other than Email Sync active such as the Calendar, Contacts, and Apps Sync. - Again, my 1 Google Account I only have set to sync Email and nothing else.
Sure I forgot some things I've tried but again, I am open to any/all suggestions. I admit, I bought my T-Mobile via Swappa. All seemed well as per their checklist of the obvious things to check regarding the phone's operation. Kind of stuck here now and wondering if my device is simply defective and/or the battery.
Also of note: Android System is always by far the largest contributor to my battery drain and exceeds even Screen-On time by around 10%. But then again, don't really know if that means anything or not since even before switching carriers and the transition from "JellyBean" to "KitKat" on my previous S4, Android System became a forever battery hog for me.
Just never had a top end device such as this in past years barely get me through a complete day: Work & Home time. I don't consider myself a heavy user. Barely even "Moderate" many days as I mainly text during my lunch break, otherwise phone is pretty much idle. And say 2 phone calls of aprox 20 min.s each during commute time. Yea, something just isn't right. :crying:
I have noticed 3 things that were hurting battery bad.
1.) Use the Google play services with the 030 extension. I get way better battery life on it 5% to 10% increase in battery life. Link below:
http://www.apkmirror.com/apk/google...ices-7-0-99-1809214-030-android-apk-download/
2.) If you are not using maps or other location services turn your location off. Literally a 20%+ increase in battery from this alone.
3.) Toggle your NFC. Something in Android 4.4.4 sometimes causes your NFC to wake lock. If you turn it on then turn it off one time it normally fixes is.
I attached my battery stats below.
It with about 2 hours of screen on time.
Sent from my SM-N910T using XDA Free mobile app
ShrekOpher said:
I have noticed 3 things that were hurting battery bad.
1.) Use the Google play services with the 030 extension. I get way better battery life on it 5% to 10% increase in battery life. Link below:
http://www.apkmirror.com/apk/google...ices-7-0-99-1809214-030-android-apk-download/
2.) If you are not using maps or other location services turn your location off. Literally a 20%+ increase in battery from this alone.
3.) Toggle your NFC. Something in Android 4.4.4 sometimes causes your NFC to wake lock. If you turn it on then turn it off one time it normally fixes is.
I attached my battery stats below.
It with about 2 hours of screen on time.
Sent from my SM-N910T using XDA Free mobile app
Click to expand...
Click to collapse
Thanks for the reply and suggestions! I just checked and I am currently running Google Play Services V 7.0.97 (1791429-030).
A couple things I have done meanwhile since my OP which have had "some" noticeable positive effects on my battery duration, yet still no where near what you have posted are:
Within "Google Settings" app:
- Account History ( I have "turned off or rather paused" ALL the Activity/Info/History settings here - All 5)
Regarding my 2nd, basically "Junk mail" Gmail Account:
- Now have ALL "Sync" turned off within, including the syncing of email, which I now simply check manually to update.
Greenify:
- Revisited, and added a bunch more apps and pretty much "Greenified" ALL Samsung related entries/services/ect...
So far I have increased to achieving up to about 3 1/2 hrs Screen time (Gained 1 hr) & a few more hours of real time battery longevity as I can now achieve close to 20hrs before needing charge.
Still feel I have some troubleshooting to go. Oh, I actually have the NFC Service "Greenified" to. So far haven't really noticed a problem with "Deep Sleep" either according to CPU SPY pro.
Yep, Have always had the Location Service to OFF, not even using the so called "Battery saving" selection with it. Such a pity to have to cripple such things but it's a trade off I guess in achieving a full day's battery vs.s using the features with this phone for some reason more-so than past devices it seems. At least in my case. :silly:

Categories

Resources