bad battery drain. - Google Pixel 2 XL Questions & Answers

i am having crazy active (27%) and idle (5%) battery drain. using ex kernel manager i can see different wakelocks. i hsve been screwing around with them and haven't made any real progress. is the flash 2.05 still very battery efficient? id my problem isn't solved will ex kernel manager still work for this kernel to set wakelocks, governors, etc? do you recommend another kernel manager instead. i downloaded the wake locks detector app and every time i opened it it just said "failed to complete task at this time." it had SU rights. idk whst the problem was. im having a hard time finding whats all of a sudden doing this to my battery. i did flash some launcher mods. this started right after that. last night i reflashed the developers stock launcher and things looked great. now theyre back at being bad. would a factory reset in twrp allow me to save my data and maybe fix the issue? please help
What apps can I use without wake lock dector functioning. Could I have a virus stopping it from functioning?

Check your cpu consumption. Use exkernel manager or some other tool for the same.
Sent from my Pixel 2 XL using Tapatalk

Here's what I'm seeing. Google photos looks to be the culprit. I need that app. What should I do? Uninstall updates and reinstall them? I cleaned the cache for the app but they still stayed at the same levels shown here. Cpu is usually running at 300MHz. It's not shown in the screen shot, but most the of the other cpu consumption is at 1.9GHz. it's like 9% or something. What do I do with google photos?

Schroeder09 said:
Here's what I'm seeing. Google photos looks to be the culprit. I need that app. What should I do? Uninstall updates and reinstall them? I cleaned the cache for the app but they still stayed at the same levels shown here. Cpu is usually running at 300MHz. It's not shown in the screen shot, but most the of the other cpu consumption is at 1.9GHz. it's like 9% or something. What do I do with google photos?
Click to expand...
Click to collapse
Edit: i stopped a backup of some stuff on Google photos and the drain is still the same. It's not backup causing the issue. Something else with the app is doing this.

Have you tried clearing its data and cache so you get a fresh start, so to speak?
Sent from my Pixel 2 XL using XDA Labs

Did last night and it didn't seem to help.
So better battery stats seems to be telling me that google photos is the problem. I use the app so this sucks. Otherwise I would have just uninstalled it. Can I use adb shell commands to disable its wake lock? If I do that, I'm guessing it will not upload pics and videos to Google drive UNLESS my screen is ON, right?
TK has this (
) YouTube video showing what I am asking. Keep in mind I actually AM rooted. I don't see any options in batter battery stats to disable wakelocks. It just detects them.

I would again ask To check cpu consumption
Sent from my Pixel 2 XL using Tapatalk

Here is a pic of the cpu stats. Everything above it is very small or 0% cpu seems to be where it should

Schroeder09 said:
Here is a pic of the cpu stats. Everything above it is very small or 0% cpu seems to be where it should
Click to expand...
Click to collapse
Thanks, is it for small or bigcluster.
Sent from my ONEPLUS A3003 using Tapatalk

Guess what!? It appears that the photos app was just trying to upload stuff to my Google drive. Since my internet is so horrible it took literally days. Once the uploads completed my battery drain returned to normal!!

Now I'm seeing this. What is going on. Seems like after every update or the littlest thing, or even out of the blue, battery drain occurs. I just flashed EX kernel 1.01,did some various updates in the playstore, and flashed some launcher mods.
I was seeing like 8% active drain and .5-.7% idle drain on EX 1.0 and only sharkie launcher mods. Now SOT sucks and so does my battery.

I had the same problem till I turned off instant tethering. Helped my battery life significantly for some reason. Doesn't really make sense.
(Settings -> Google -> Instant Tethering)

shadowster said:
I had the same problem till I turned off instant tethering. Helped my battery life significantly for some reason. Doesn't really make sense.
(Settings -> Google -> Instant Tethering)
Click to expand...
Click to collapse
I didn't make any changes there before or after updating though. Here's what I have in my tethering settings.

I had this tethering acceleration on,but it was on when I was getting awesome battery life too.

And what about these kernel wake locks? Is there actually an app that blocks wake locks? Wake lock detector would never work for me for whatever reason. Better battery stats seems to identify wake locks but it doesnt give you any way to actually do anything about the wake locks.

By instant tethering, I didn't mean the tethering in the Network and Internet part. I attached a few images that might make it clearer. (Settings->Google->Instant Tethering). I think this helped cause I keep bluetooth on a lot.
If I recall correctly, powermanagerservice wakelock is the catch all for all the partial wakelocks, and power manager display is just however long the display has been on.

Wifi scanning and BT scanning were both back on(previously turned off) for me after the JAN update.

shadowster said:
By instant tethering, I didn't mean the tethering in the Network and Internet part. I attached a few images that might make it clearer. (Settings->Google->Instant Tethering). I think this helped cause I keep bluetooth on a lot.
If I recall correctly, powermanagerservice wakelock is the catch all for all the partial wakelocks, and power manager display is just however long the display has been on.
Click to expand...
Click to collapse
Thanks for the reply. I found what u we're talking about with those pictures. Instant tethering under google was not on. I want wifi scanning on but I don't want the BT scanning on, and it didn't turn back on after the January update for me.
Without wifi scanning will wifi work with only the toggle button in the notification drop down menu? I thought they both had to be on

My battery is **** since 8.1, glad I found these options thanks to you guys.
I lose 20% battery life for 1 hr of SOT, super bad. I'll let you know if it improves.

Schroeder09 said:
Thanks for the reply. I found what u we're talking about with those pictures. Instant tethering under google was not on. I want wifi scanning on but I don't want the BT scanning on, and it didn't turn back on after the January update for me.
Without wifi scanning will wifi work with only the toggle button in the notification drop down menu? I thought they both had to be on
Click to expand...
Click to collapse
It always has for me and I have disabled this on every phone i've had that has this option. Its more location services.

Related

[Q] Samsung Epic - Battery drain is horrible! How can I fix this.

Please help....
I have read many threads about this, but I don't understand any of them. My battery life is horrible, I am only using it for the occasional phone call, texting and checking my email. It's very frustrating because when I need to use it, the battery is dead (or almost dead and I can't use the camera).
I don't understand all the lingo on here about what version "this" and "that" everyone is using. Downloading certain apps to fix this.....
I'm not very techy and just use my phone for basic things.
PLEASE HELP!!!!
Suggestions:
Turn off bluetooth until you need it, then turn off when done.
Turn off GPS until you need it, then turn off when done.
Turn screen brightness to automatic or lowest setting (your preference).
Turn off 4G receiver if you are out of range or just don't have 4G coverage in your area.
Turn off synchronization if you don't care for email, Facebook, Twitter, etc updates. (Not really necessary if your update interval isn't set for short intervals.)
Utilize Wifi as much as possible, if that is an option available to you. BUT turn it off when you know you will be out of range for a good bit of time.
Toggle Airplane mode after each phone reboot. (Stupid bug)
Utilize the TouchWiz program manager (long press on home screen and under Samsung widgets).
Kill the OmaDrmConfigService process via Settings > Applications > Running Services. (This appears again with each phone reboot, unless you find a process killer application in the market.)
If you use Wifi a good bit, it's a good idea to set your Wifi sleep policy to "Never". You can access this via Settings > Wireless & Networks > Wifi Settings: Press menu and select Advanced > Wifi Sleep Policy. Setting to never will not revert back to 3G when you turn off your phone's display as long as wifi is still turned on and within that connected wifi signal range.
If you still get **** battery life, then you can download Spare Parts or BatteryHistory from the market. BatteryHistory is a ripped out piece from Spare Parts, which is really all you need to diagnose your issue.
OR if you don't want to install anything you can key in via the dialer: *#4636*1111# to get to the same menu that both programs above display. (The menu is labeled Battery History.)
From another battery thread that pertains to the two aforementioned programs:
musclehead84 said:
What you do is when you notice that it's doubled on the top drop down box that says "other usage" click on that and change it to "partial wake usage" and anything listed under there is keeping your phone awake. See what is continually running.
Click to expand...
Click to collapse
I hope the above helps you out.
Cheers.
Dont ask me to explain this just try it. Use astro and delete the android folder at the root of your sd card and reboot
Sent from my SPH-D700 using Tapatalk
Did deleting the android folder work or anyone else? I'm trying to see how that can help but if it does good find.
I have no ideawhy but after flashing a few times testing themes on dk28 my battery tanks and my gallery gets slow. The album thumb folder inside there is what fixes the gallery so I usually delete it but I got lazy and deleted my whole folder since it regenerates on boot and my battery came back. Ben deleting it since lol but I flash a lot
Sent from my SPH-D700 using Tapatalk
dreamsforgotten said:
I have no ideawhy but after flashing a few times testing themes on dk28 my battery tanks and my gallery gets slow. The album thumb folder inside there is what fixes the gallery so I usually delete it but I got lazy and deleted my whole folder since it regenerates on boot and my battery came back. Ben deleting it since lol but I flash a lot
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Not certain how it helped your battery issue, but good to have that knowledge. I sifted through my folder and only saw cache files for what looked like thumbnails.
nikon120 said:
Not certain how it helped your battery issue, but good to have that knowledge. I sifted through my folder and only saw cache files for what looked like thumbnails.
Click to expand...
Click to collapse
That's all that's in there that's why I said dont ask me why. I would have posted when I found it but I knew I would get flamed so either it works for you or it dont. It doesn't make since but it works for me
Sent from my SPH-D700 using Tapatalk
http://androidforums.com/epic-4g-tips-tricks/245915-epic-4g-battery-life-extension-another-thread.html
Try this:
-Toggle airplane mode every time you reboot. You probably have a "time without signal" of over 50% if you look in settings. Toggling airplane mode resets the radio and so it doesn't keep looking for signal unnecessarily which kills battery
-Gps on doesn't drain battery, only when its being used by an app
-Turn off background data and auto sync. If you don't have facebook/twitter widgets or care about email push notifications then save some power and switch it off.
-Check for apps that aren't letting the phone sleep. Download "spare parts" and it should show you.
-I'm guessing you have the updated Facebook app with chat. I would suggest going offline in chat because it doesn't let the phone sleep and will drain your battery really fast.
Sent from my SPH-D700 using XDA App
wtf is up with the horrible battery life of this phone? i got it and it is EXTREMELY worse than my Hero ever was. I have had this phone less than a week and I already want to return because of the battery life.
i dont use 4g at all, wifi is only enabled when i need to, gps is enabled but i figured i always had it enabled on the hero and was just fine, my screen brightness is always set at automatic brightness, i dont use bluetooth...
i am stumped.
please help before i destroy this thing
Jonesin 4 The Rush said:
wtf is up with the horrible battery life of this phone? i got it and it is EXTREMELY worse than my Hero ever was. I have had this phone less than a week and I already want to return because of the battery life.
i dont use 4g at all, wifi is only enabled when i need to, gps is enabled but i figured i always had it enabled on the hero and was just fine, my screen brightness is always set at automatic brightness, i dont use bluetooth...
i am stumped.
please help before i destroy this thing
Click to expand...
Click to collapse
Lol gps kills it on this phone the roms greatly improve it
Sent from my SPH-D700 using Tapatalk
dreamsforgotten said:
Lol gps kills it on this phone the roms greatly improve it
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
thx for the advice.
i will try it without gps
also any good advice on any particular rom? i have only had this phone for 6 days and am trying to pinpoint a great rom to use.
My Epic looks pregnant but the battery lasts forever with the extended one

[SOLVED] Wi-Fi won't turn off in sleep [post-JB update]: how to diagnose?

SOLVED: See this follow-up post; it's one of those 7 things!
Hi! After updating to LK3 (the stock 4.1.1 JB update), my Wi-Fi stays on even after I put the phone to sleep (contrary to the setting "Keep Wi-Fi on during sleep: never (increases data usage)." See attached pics.
I have disabled thus far:
1) Google Now
2) Location Services "Use wireless networks" and "Location and Google search"
3) Location reporting: now set to "Location manually selected on the map"
4) Latitude location sharing
5) Location history
6) Automatic check-ins
7) Check-in notifications
Basically, everything I could find related to location. But, alas, that battery screenshot is after I changed all of those! Wi-Fi isn't on constantly, but it stays on way longer than just when I have the screen on.
What are my options here? How should I diagnose this sucker? I ran BetterBatteryStats, but they said it looked fine with my log (some apps, through the ambiguous "Alarms" partial wakelock, were the largest cause, but only accounted for 3.6% of the time).
I'm pretty sure this is a post-update problem, as before, whenever I unlocked my phone, I got the little notification, "Connected to #SSIDName#" and the Wi-Fi icon would obviously, then, be off for the first few seconds (and when I opened my browser too quickly, I'd get a "Page cannot be displayed" error).
Thanks in advance, I'll take any ideas/thoughts/help/sympathy/antipathy you can offer,
Same problem here. Before the update, it was doubletwist air sync forcing wifi on at all times. That's disabled now, so I have not clue. Hopefully somebody figures it out. Mine isn't even intermittent, it's always on, and I have the same setting as you.
So, I left my phone alone for the night and these programs used Wi-Fi while the screen was off:
Do you have any of the same apps? I'm going to uninstall Google+, Facebook, and GroupMe today and run this again tomorrow. But, looking at pure download amount, it's something on the OS....
If you're interested in doing the same, the app is My Data Manager ( https://play.google.com/store/apps/...e&utm_medium=organic&utm_term=my+data+manager).
Basically, install the app, but do not open it. When you're ready for bed (or any extended period of not using it), open it, and then minimize it (runs in the background). Hit your sleep button immediately (we don't want to capture anything of the phone when the screen is on). Then, when you wake up/need to use it, wake it up, immediately disable Wi-Fi (again, no artifacts from when the phone was awake), take a look at My Data Apps (2nd page), Wi-Fi.
I'll let you know how my second attempt goes.
The only one I have is Facebook, but yeah it definitely looks like the os.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Well! Maybe I should have given it a little while longer, as it seems to be quite a bit better!
It still stays on longer than the screen, but now at least it shuts off once in a while, haha. It was either uninstalling Facebook, gMail, or GroupMe OR disabling one of those earlier settings...it's still not totally fixed, though. I found the Network Counter app which seems to be a little more specific, so we'll see how it goes tonight,
~Ibrahim~
Hmm this is what mine looks like from today. Wifi didn't go off until I did it manually.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Have you disabled the location stuff? Those are what really helped me. I'm off to run the overnight test, with the new app!
i am having the same issues. my wifi since the jelly bean update has been always on.... the wifi bar in battery settings is solid and has never been off.... so frustrating.
Try "Green Power" app.
I use it to disable both wifi and data 20secs after screen off.
There is a Whitelist and a minimum threshold trigger too.
It works PERFECT in ICS.
At bedtime, I get .5% hr battery drain or better.
themadproducer said:
Try "Green Power" app.
I use it to disable both wifi and data 20secs after screen off.
There is a Whitelist and a minimum threshold trigger too.
It works PERFECT in ICS.
At bedtime, I get no less than .5% hr battery drain.
Click to expand...
Click to collapse
Awesome, thanks for the info! Exactly, I don't mind Google Now using the Wi-Fi, but then that opens the door for everything to use the Wi-Fi which will kill the battery when I get back to work.
Network Manager didn't work for some reason, so I tried Data Detective, but the stupid app consumed 90% of the Wi-Fi last night!
The only thing I've heard against battery savers is that they force apps to not use the data, and then they keep asking (creating overhead). I wouldn't have believed it out right except it came from the developer of BetterBatteryStats. But your battery loss isn't bad at all (overnight I average 0.4%/hour with the screen off).
ikjadoon said:
(overnight I average 0.4%/hour with the screen off).
Click to expand...
Click to collapse
I slightly edited my statement. I get .5% hr or better.
Curious...if you average .4%...
- what rom?
- and what is your lowest cpu freq?
- and is that with data and wifi off?
themadproducer said:
I slightly edited my statement. I get .5% hr or better.
Curious...if you average .4%...
- what rom?
- and what is your lowest cpu freq?
- and is that with data and wifi off?
Click to expand...
Click to collapse
Haha, right, I thought that's what you meant!
I'm on stock AT&T. Everything is stock; CPU Spy tells me 384Mhz. WiFi on, data off.
Why don't you guys disable it in settings? Open Wi-Fi in settings. Click menu button. Click advanced. Turn off Wi-Fi during sleep. Ta-da!
Sent from my SAMSUNG-SGH-I747 using xda premium
Ends said:
Why don't you guys disable it in settings? Open Wi-Fi in settings. Click menu button. Click advanced. Turn off Wi-Fi during sleep. Ta-da!
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Yeah, that's an alternative...but if I have a setting that's supposed to turn it off when it goes to sleep, I'd like it to do that.
stbtigerr said:
Yeah, that's an alternative...but if I have a setting that's supposed to turn it off when it goes to sleep, I'd like it to do that.
Click to expand...
Click to collapse
That's right, well said....hence the opening post!
I have the same issue, wi-fi is always on unless I turn it off.
I'm happy. It's one of those location settings in the first post that caused the locks! Let me know if it works for you guys,

[Q] Short battery life but nothing specific seems to be a big drainer

Hi guys,
Though I have been reading these threads for quite some time now, I just joined so that I can post the issue that I am facing.
I am rooted and using Liquidsmooth v2.4
I am facing a battery issue. Battery life is short. I never survived more than 2 hours of screen time on my device which I know from these forums that is not normal.
The stuff I have tried but didn't help:
Wiped and factory reset on several occasions, both using the settings function and CWM
Flashed various roms (Cyanogen Mod, Carbon, Liquidsmooth, Stock rom)
Unroot to stock and root again
Changed to various more battery friendly CPU governors
Changed battery with a friend who is using the international version (which is using the same battery according to the Samsung website)
I am not in the states now and the local Samsung service centre refused to service it because they don't have the appropriate parts and also due to the difference in software. (I unrooted it and restored to stock before sending in.) They just looked at the model number and refused service; didn't do anything more.
I have attached some screenshots. There are no obvious wakelock issues and no app in particular is draining the battery. 50% power used on screen appears to be normal. The rest of the apps also look like they are behaving themselves, at least power consumption wise. I am not a very heavy user and don't run any games/apps that are huge in resource requirements. Email/facebook/browsing are my main activities.
The current settings on my phone:
Auto brightness
Wifi/bluetooth/GPS all off
Autosync is off by default but will use it sparingly if I need to.
Almost all of my apps have their notifications off and all apps are set to sync manually.
I only have one calender widget on my home screen, no others elsewhere.
CPU Governor is "ondemand", iO scheduler is "row". Min/max freqency: 384/1512 MHz
Juicedefender is enabled with "aggressive" (I know its effectiveness is controversial but on my device, disabling it eats more battery)
Any help is appreciated. "Thanks" will be awarded to all who post!
Thank you!
Hairy07 said:
Hi guys,
Though I have been reading these threads for quite some time now, I just joined so that I can post the issue that I am facing.
I am rooted and using Liquidsmooth v2.4
I am facing a battery issue. Battery life is short. I never survived more than 2 hours of screen time on my device which I know from these forums that is not normal.
The stuff I have tried but didn't help:
Wiped and factory reset on several occasions, both using the settings function and CWM
Flashed various roms (Cyanogen Mod, Carbon, Liquidsmooth, Stock rom)
Unroot to stock and root again
Changed to various more battery friendly CPU governors
Changed battery with a friend who is using the international version (which is using the same battery according to the Samsung website)
I am not in the states now and the local Samsung service centre refused to service it because they don't have the appropriate parts and also due to the difference in software. (I unrooted it and restored to stock before sending in.) They just looked at the model number and refused service; didn't do anything more.
I have attached some screenshots. There are no obvious wakelock issues and no app in particular is draining the battery. 50% power used on screen appears to be normal. The rest of the apps also look like they are behaving themselves, at least power consumption wise. I am not a very heavy user and don't run any games/apps that are huge in resource requirements. Email/facebook/browsing are my main activities.
The current settings on my phone:
Auto brightness
Wifi/bluetooth/GPS all off
Autosync is off by default but will use it sparingly if I need to.
Almost all of my apps have their notifications off and all apps are set to sync manually.
I only have one calender widget on my home screen, no others elsewhere.
CPU Governor is "ondemand", iO scheduler is "row". Min/max freqency: 384/1512 MHz
Juicedefender is enabled with "aggressive" (I know its effectiveness is controversial but on my device, disabling it eats more battery)
Any help is appreciated. "Thanks" will be awarded to all who post!
Thank you!
Click to expand...
Click to collapse
I see horrendous wakelocking. Install BetterBatteryStats. Charge it up for a bit, reboot the phone, then let it idle for a couple hours. Then post screenshots of everything.
It might be the worst I've ever seen. Good news is it's probably not a hardware issue.
It also looks like half the time you had a poor signal. Data transfer on a poor signal can wat at your battery too.
Always use wifi when available.
Sent from my SGH-T999 using xda premium
thanks folks. I've installed better battery stats and will update shots accordingly at the end of the day or end of the battery cycle(probably won't last a day)
Really appreciate the help.
Here are the shots for today.
I rethinked about the poor reception comment and wondered if any of my radios are malfunctioning or if my radios can work in the frequency bands here in Singapore. I called my local service provider to ask about the frequency bands and.it appears that my device's radios can recieve the GSM bands here although they suspect 3G may be an issue. Nothing concrete but I do hope to find out if that could be a possible reason for my battery drain.
I managed to squeeze past 2 hrs of screen time today by using as much wifi as I possibly can. This improvement in battery life probably means that data reception can really be an issue. It's not unlikely that both my home and workplace suffers from.bad reception but i do have a Q. If poor reception is an.issue, will the battery consumption by cell radio sky rocket?
For some reason the previous battery stats screenshots was only for about 5 hrs. i have refreshed and have uploaded the refreshed screenshots
Hairy07 said:
Here are the shots for today.
I rethinked about the poor reception comment and wondered if any of my radios are malfunctioning or if my radios can work in the frequency bands here in Singapore. I called my local service provider to ask about the frequency bands and.it appears that my device's radios can recieve the GSM bands here although they suspect 3G may be an issue. Nothing concrete but I do hope to find out if that could be a possible reason for my battery drain.
I managed to squeeze past 2 hrs of screen time today by using as much wifi as I possibly can. This improvement in battery life probably means that data reception can really be an issue. It's not unlikely that both my home and workplace suffers from.bad reception but i do have a Q. If poor reception is an.issue, will the battery consumption by cell radio sky rocket?
Click to expand...
Click to collapse
This is not BetterBatteryStats. We already know your battery life blows. I want to know why, and BBS will tell me. I can't do a thing for you until you show me that. I think there is a free version on the forums, but it's cheap in the Play Store, and worth it. Get Greenify, too. You're going to need it. Greenify will prevent notifications from showing up for greenified apps. If you don't need notifications from Facebook (honestly, who does?), Greenify it. Maps, too. And disable Juice Defender for now, so I can see what is really happening.
Poor cell reception, if not on wifi, causes drain, yes. It seems to only get really bad when the phone can't hold a data connection.
Try turning off GPS. Also under Settings > Backup and Reset, turn off the Back Up My Data option.
Additionally, check the stickies in this forum. Woody has a fantastic Battery Thread that you should read if you haven't already.
Sent from my SGH-T999 using xda premium
Type betterbatterystats xda on Google. It'll link you to the official thread where you can install the free apk file.
Sent from my SGH-T999 using xda app-developers app
Thanks everyone! I sheepishly searched better battery stats on Google play and.simply installed the first that popped up without looking closely. My bad. I've purchased the app and will post up screenshots soon. I didn't manage to grab the shots today as my batt went flat before I could. Should have kept a better eye.
Will certainly post up screen shots tomorrow.
PS: My GPS has been offed by default. Will disabling Google backup services help?
Hairy07 said:
Thanks everyone! I sheepishly searched better battery stats on Google play and.simply installed the first that popped up without looking closely. My bad. I've purchased the app and will post up screenshots soon. I didn't manage to grab the shots today as my batt went flat before I could. Should have kept a better eye.
Will certainly post up screen shots tomorrow.
PS: My GPS has been offed by default. Will disabling Google backup services help?
Click to expand...
Click to collapse
It cant hurt your battery life! Theres a number of things you can do for settings. Read woodys thread stickied here as its pretty much all there. One of the big batt drainers can be auto brightness btw.
Sent from my SGH-T999 using xda premium
Once you get a good cycle run with BBS, the screen shots we want to see are Since Unplugged/Process and Since Unplugged/Partial Wakelocks. Those two will help tell what is eating your battery and also what is causing all those wakelocks in your original screen shots.
If you are using Juice Defender, that will contribute to the wakelocks (but doesn't keep your device from entering Deep Sleep, so no worries there). I use it, but I have mine set up custom plus have done some basic build.prop edits regarding the RILs and wifi_supplicant_intervals.
My suspicion is that there is a rogue app that is transmitting data somewhere and that is not letting you sleep. If it is transmitting in a poor reception area then that puts ever more strain of things. You are not the first and wont be the last but Doc, Aero and I can help you figure it out.
Images for today. I've included a few more shots for the items that appear lower in the lists.
I've installed greenify but did not add any apps while collecting these data. Juicedefender is also disabled. My screen time was less than 2 hrs.
I did some of the stuff listed in Woody's informative thread. Deleting the tombstone files, lost&found files etc.
Thanks for everyone's help. Hope to solve this issue soon.
Get Greenify from the play store.
Greenify:
Maps
Facebook
Google Now
Take more pictures with BetterBatteryStats tomorrow.
Looks like Maps is misbehaving. Terrible coding is terrible.
Yup. Looks like you are broadcasting your location all over the place. Do you use Maps? If not close it and Greenify it.
Are you getting notifications from Facebook or have a "Check-in" thing going on?
Google Now>Settings> turn off what you don't use.
Settings>Location> Off.
Edit: Tombstones and Lost.dir files are just memory management and have nothing to do with battery.
Shots for today. Things are a little better but looking at my screen usage, maybe there's still a lot of room for improvement.
I've greenified just about all apps that may run in the background. Facebook, Maps, Google+, Gmail, Chrome, Google Search (I converted it into user app), dropbox, etc. Whatsapp, Viber and Wechat are spared as I needed them to be able to notify incoming messages. Juicedefender is on, with advanced settings - set to sync only once an hour. Maps have been set not to update my location although I didn't go to the extent of denying location access ( I use maps fairly often).
All these are rather aggressive steps and I do see improvement. What else can be done? Other than my messengers, all my notifications are essentially off.
Once again, thank you everyone for your time and effort.
Please stop using Juice Defender. I want to see what your battery life looks like without it now. And it's also responsible for the majority of your wakelocks. And if you could get us some ~4 hour idle BBS stats (during sleepy time), that would be fantastic.
Aerowinder said:
Please stop using Juice Defender. I want to see what your battery life looks like without it now. And it's also responsible for the majority of your wakelocks. And if you could get us some ~4 hour idle BBS stats (during sleepy time), that would be fantastic.
Click to expand...
Click to collapse
Noted. I'll charge my phone up and take some shots in the morning. Juicedefender will be disabled and hopefully more information will be revealed. Do today's shots show any improvement?
Hairy07 said:
Noted. I'll charge my phone up and take some shots in the morning. Juicedefender will be disabled and hopefully more information will be revealed. Do today's shots show any improvement?
Click to expand...
Click to collapse
I think you are heading in the right direction (8% deep sleep improvement). For this next test, please disable Juice Defender (don't turn it off through the app, but disable it in the app manager to make sure it can't run). Also, I'm hoping to get a test where the screen isn't on for more than a couple seconds, so I can get an accurate reading on the usage per hour.
I suspect the rest of your issues (bam_dmux_wakelock), are due to a bad cell connection for a good chunk of the time. Connecting to a wifi network will solve that. If you don't have a wifi network, you can turn on airplane mode, or set up some Tasker profiles to help with that.
Out of curiosity, how bright do you have your screen set? Obviously its a big drainer, but it seems like every time your screen is on the batt level plummets.
Sent from my SGH-T999L using xda premium

Terrible battery life probably caused by wakelocks

My battery will completely drain after <10 hours while the screen is off!
However I was able to find out thatquickgooglesearchbar is always the top app.
Those screenshots are a bit old but it's still the same thing, I did manage to root it today, and I was testing Greenify which did nothing even with the Xposed modules, service disabler apps just did not show that specific service for some reason. I was able to remove the widget with Xposed GEL settings but it was still running even though the widget wasn't there.
So can someone please help me out here, maybe the search bar isn't the problem but I just want some battery life.
h ttp://imgur.com/a/gdXKW
(I still can't post links sorry If this is against your forum rules but this is urgent)
Eidoss said:
My battery will completely drain after <10 hours while the screen is off!
However I was able to find out thatquickgooglesearchbar is always the top app.
Those screenshots are a bit old but it's still the same thing, I did manage to root it today, and I was testing Greenify which did nothing even with the Xposed modules, service disabler apps just did not show that specific service for some reason. I was able to remove the widget with Xposed GEL settings but it was still running even though the widget wasn't there.
So can someone please help me out here, maybe the search bar isn't the problem but I just want some battery life.
h ttp://imgur.com/a/gdXKW
(I still can't post links sorry If this is against your forum rules but this is urgent)
Click to expand...
Click to collapse
search and install betterbatterystats (read the whole first post) and it will tell you if its wakelocks etc.
Service disabler apps will need a setting to show system apps (or something similar) ticked or switched to etc.
greenify system apps in greenify also needs to be selected. You may also need to cut wake up paths to get it to stay greenified.
You could alternatively delete the apk of hibernate it (byfar the easiest option of all this).
Darke5tShad0w said:
search and install betterbatterystats (read the whole first post) and it will tell you if its wakelocks etc.
Service disabler apps will need a setting to show system apps (or something similar) ticked or switched to etc.
greenify system apps in greenify also needs to be selected. You may also need to cut wake up paths to get it to stay greenified.
You could alternatively delete the apk of hibernate it (byfar the easiest option of all this).
Click to expand...
Click to collapse
I don't need betterbatterystats, I have battery Battery Historian, check the screenshots, It's clearly the search bar, on my other phone It isn't shown as a top app.
Also I went in the system folder /apps and there was no googlesearchbar, or in any other system apk remover tool, perhaps it was removed by another app, but it's still for some reason running.
Eidoss said:
I don't need betterbatterystats, I have battery Battery Historian, check the screenshots, It's clearly the search bar, on my other phone It isn't shown as a top app.
Also I went in the system folder /apps and there was no googlesearchbar, or in any other system apk remover tool, perhaps it was removed by another app, but it's still for some reason running.
Click to expand...
Click to collapse
Your 3rd image shows googlequicksearchbox had 370ms (milliseconds) of wakelocks over a 9hr period. I really doubt that is your issue.
If it is your top app, then it is probably because of Google Now launcher listening for OK Google spoken keyword.
I seriously doubt that is your battery drain problem as almost 90% of people probably have OK Google turned on and are using Google Now launcher and only a very few have serious battery drain.
BTW wakelocks aren't the issue usually. In the past it has been "partial wakelocks" which means an app locked the device from sleeping, but never released the lock, so the device never goes to full sleep. If you see some app with partial wakelocks or if you see some app with hours of regular wakelocks then that might be an issue. Minutes or microseconds of wakelocks are inconsequential.
I suggest you flash factory image and install your battery tester only. Turn off wifi, bluetooth, nfc, cell radio. Test the drain overnight. That is a baseline for the minimum drain your device can have. Then enable what wireless stuff you normally have turned on. See what that drain is. Then start installing apps and see what that drain is.
If you have reasonable/expected battery drain with stock and everything turned off, then it is just a process of elimination to see what is causing your battery drain.
If you can't get reasonable/expected battery drain with stock and everything turned off, then you probably have a bad battery.
For the record, my overnight battery drain with everything turned off is 0-1% With wifi turned on about 1-2%. With wifi+cell about 2-3%.
IMO the biggest drains for standby are wifi and/or cell signal related. Either bad signals or apps sending data in background or apps that are polling all the time.
sfhub said:
Your 3rd image shows googlequicksearchbox had 370ms (milliseconds) of wakelocks over a 9hr period. I really doubt that is your issue.
If it is your top app, then it is probably because of Google Now launcher listening for OK Google spoken keyword.
I seriously doubt that is your battery drain problem as almost 90% of people probably have OK Google turned on and are using Google Now launcher and only a very few have serious battery drain.
BTW wakelocks aren't the issue usually. In the past it has been "partial wakelocks" which means an app locked the device from sleeping, but never released the lock, so the device never goes to full sleep. If you see some app with partial wakelocks or if you see some app with hours of regular wakelocks then that might be an issue. Minutes or microseconds of wakelocks are inconsequential.
I suggest you flash factory image and install your battery tester only. Turn off wifi, bluetooth, nfc, cell radio. Test the drain overnight. That is a baseline for the minimum drain your device can have. Then enable what wireless stuff you normally have turned on. See what that drain is. Then start installing apps and see what that drain is.
If you have reasonable/expected battery drain with stock and everything turned off, then it is just a process of elimination to see what is causing your battery drain.
If you can't get reasonable/expected battery drain with stock and everything turned off, then you probably have a bad battery.
For the record, my overnight battery drain with everything turned off is 0-1% With wifi turned on about 1-2%. With wifi+cell about 2-3%.
IMO the biggest drains for standby are wifi and/or cell signal related. Either bad signals or apps sending data in background or apps that are polling all the time.
Click to expand...
Click to collapse
Factory reset didn't do anything a few days ago, the results were exactly the same that was when my phone wasn't rooted, so I guess I should return the phone, and get a new one?
Eidoss said:
Factory reset didn't do anything a few days ago, the results were exactly the same that was when my phone wasn't rooted, so I guess I should return the phone, and get a new one?
Click to expand...
Click to collapse
What is your battery drain per hour with nothing installed and all wireless turned off and everything stock?
I'd only return it if that is significantly more than 0-.2% or 1% every 5 hours.
Otherwise it is something you have installed or something to do with the signal and how it interacts with your phone.
Once you start installing stuff or turning on wireless (wifi/bt/cell) then it is no longer purely about the battery and there are more factors that need to be isolated independently.
You really need to establish a baseline to see what the minimum battery drain is. Then you can determine if the battery is the problem or something else.
If you just install everything and turn everything on, there are too many moving parts.
sfhub said:
What is your battery drain per hour with nothing installed and all wireless turned off and everything stock?
I'd only return it if that is significantly more than 0-.2% or 1% every 5 hours.
Otherwise it is something you have installed or something to do with the signal and how it interacts with your phone.
Once you start installing stuff or turning on wireless (wifi/bt/cell) then it is no longer purely about the battery and there are more factors that need to be isolated independently.
You really need to establish a baseline to see what the minimum battery drain is. Then you can determine if the battery is the problem or something else.
If you just install everything and turn everything on, there are too many moving parts.
Click to expand...
Click to collapse
Okay, I now have android N, and my battery life seems to be better, I will leave mobile data off. I will see tomorrow if my battery life has changed.
Do you think I should use Adaptive brightness for more battery life?
Eidoss said:
Okay, I now have android N, and my battery life seems to be better, I will leave mobile data off. I will see tomorrow if my battery life has changed.
Do you think I should use Adaptive brightness for more battery life?
Click to expand...
Click to collapse
Which battery life was the one you think you have a problem with, standby or in use? IMO for in use battery time this phone is about average. Your title of "wakelock" made it seem like you were concerned about standby battery time as it doesn't matter if there is a wakelock if the device is already turned on and in active use.
When turned on, the screen is probably the number one thing eating power, so adaptive brightness could help, but if you are in a bright area, it might be worse than if you fixed the brightness below max.
Even if you have adaptive brightness turned on, the slider scale still is useful as you give the adaptive brigthness mechanism some idea what level of brightness you feel comfortable when the mechanism detects dark, med, bright situations.
One of the worse things for eating power is for the cell radio to be turned on but have no signal, like inside office building or just a bad signal area in general. The reason is the cell radio is power efficient once it establishes signal, but when it is searching for (or loses) signal it uses a lot of power.
If you are doing a lot of disk activity like taking video or hdr pictures, it would probably help to have your userdata unencrypted as this device does software (kernel) encryption and doesn't use the fast/more power efficient co-processor.
sfhub said:
Which battery life was the one you think you have a problem with, standby or in use? IMO for in use battery time this phone is about average. Your title of "wakelock" made it seem like you were concerned about standby battery time as it doesn't matter if there is a wakelock if the device is already turned on and in active use.
When turned on, the screen is probably the number one thing eating power, so adaptive brightness could help, but if you are in a bright area, it might be worse than if you fixed the brightness below max.
Even if you have adaptive brightness turned on, the slider scale still is useful as you give the adaptive brigthness mechanism some idea what level of brightness you feel comfortable when the mechanism detects dark, med, bright situations.
One of the worse things for eating power is for the cell radio to be turned on but have no signal, like inside office building or just a bad signal area in general. The reason is the cell radio is power efficient once it establishes signal, but when it is searching for (or loses) signal it uses a lot of power.
If you are doing a lot of disk activity like taking video or hdr pictures, it would probably help to have your userdata unencrypted as this device does software (kernel) encryption and doesn't use the fast/more power efficient co-processor.
Click to expand...
Click to collapse
Standby is the problem, on screen times are good enough.
Anyway, I don't even know what to do at this point. Android N didn't help enough (cell data is off), I guess I can flash Android 6.0 again and then try to fix it using apps...
What do you suggest I should do, I'm out of ideas at this point.
Eidoss said:
Standby is the problem, on screen times are good enough.
Anyway, I don't even know what to do at this point. Android N didn't help enough (cell data is off), I guess I can flash Android 6.0 again and then try to fix it using apps...
What do you suggest I should do, I'm out of ideas at this point.
Click to expand...
Click to collapse
What is the power drain over a couple of hours with *no apps installed* completely stock, and wifi/cell turned off? What is the change when wifi is turned on?
Eidoss said:
What do you suggest I should do, I'm out of ideas at this point.
Click to expand...
Click to collapse
Have you set "WiFi on during sleep" to "Never"? in the Advanced WiFi settings?
In the original release, there was a bug where WiFi would stay on even if you had set it to "Never" draining battery in standby.
Somewhere between MDA89E and MHC19Q they fixed it and WiFi will go to deep sleep after being in standby for a while, but they introduced another (or exposed existing) bug where WiFi will not resume after coming out of sleep, unless you cycle WiFi off/on. So you're standby battery should be better with this setting, but it'll be a little more annoying when turning on your device.

High battery drain with doze overnight

I'm no stranger to Android and troubleshooting problems, but right now I'm honestly at a loss as to what is causing my battery drain. I'm losing a little over 1% per hour while the device is in doze overnight, adding up to around 10-12% over 8 hours. Previously the max I would lose was close to 5%. I can't pinpoint exactly when something went rogue, but I want to say it was after the January update. I don't think I've added any new apps. I've obviously tried to clear data/cache in Google Play Services among some other apps too.
I've tried to use the battery historian, GSam, BBS, you name it. GSam is showing my device as constantly waking up overnight while in deep doze, but I can't attribute that to any wakelocks. BBS is basically clean as far as partial wakelocks go, and battery historian shows that 7% of the battery drain is unaccounted for. The one thing I have seen a few nights now is the Significant Motion that's in Google Play Services. I've also seen that under Phone and under Android System. I'm wondering if it's some kind of sensor, but I can't figure out what is causing it to stay on. I keep my phone on my nightstand overnight.
My next steps are going to be turning off always on display (AOD), turning on airplane mode overnight, and then doing a factory reset. I'll report back for anyone that comes across here, but I wanted to see if anyone has had similar issues.
I'm attaching a few screenshots, maybe someone can pick up something I'm missing.
https://imgur.com/a/rGxXQ
bosox284 said:
I'm no stranger to Android and troubleshooting problems, but right now I'm honestly at a loss as to what is causing my battery drain. I'm losing a little over 1% per hour while the device is in doze overnight, adding up to around 10-12% over 8 hours. Previously the max I would lose was close to 5%. I can't pinpoint exactly when something went rogue, but I want to say it was after the January update. I don't think I've added any new apps. I've obviously tried to clear data/cache in Google Play Services among some other apps too.
I've tried to use the battery historian, GSam, BBS, you name it. GSam is showing my device as constantly waking up overnight while in deep doze, but I can't attribute that to any wakelocks. BBS is basically clean as far as partial wakelocks go, and battery historian shows that 7% of the battery drain is unaccounted for. The one thing I have seen a few nights now is the Significant Motion that's in Google Play Services. I've also seen that under Phone and under Android System. I'm wondering if it's some kind of sensor, but I can't figure out what is causing it to stay on. I keep my phone on my nightstand overnight.
My next steps are going to be turning off always on display (AOD), turning on airplane mode overnight, and then doing a factory reset. I'll report back for anyone that comes across here, but I wanted to see if anyone has had similar issues.
I'm attaching a few screenshots, maybe someone can pick up something I'm missing.
https://imgur.com/a/rGxXQ
Click to expand...
Click to collapse
Are you rooted by chance? I've seen this mentioned in a couple other threads. Seems the culprit has something to do with GPS's, tethering in developer options, wifi and bluetooth scanning or a rouge app. Most all the cases I've seen have been since the 8.1 update.
Solutions I've seen...turn off everything in the pic.
Clear cache/data on play services(kinda risky)
Clean flash the January update with fastboot.
Turn off bluetooth and wifi scanning.
Check your router setup(some wifi setups like to keep waking the device. I get this in hotels at times)
Try turning wifi off at night.
How many apps are using location services?(I had a weather app that was keeping my device awake)
This can definitely be a bugger to identify. Sure hope you find it ?
Badger50 said:
Are you rooted by chance? I've seen this mentioned in a couple other threads. Seems the culprit has something to do with GPS's, tethering in developer options, wifi and bluetooth scanning or a rouge app. Most all the cases I've seen have been since the 8.1 update.
Solutions I've seen...turn off everything in the pic.
Clear cache/data on play services(kinda risky)
Clean flash the January update with fastboot.
Turn off bluetooth and wifi scanning.
Check your router setup(some wifi setups like to keep waking the device. I get this in hotels at times)
Try turning wifi off at night.
How many apps are using location services?(I had a weather app that was keeping my device awake)
This can definitely be a bugger to identify. Sure hope you find it
Click to expand...
Click to collapse
I am rooted. I've got WiFi/bluetooth scanning off, but I did just notice that Tethering hardware acceleration was on. I'm turning that off. I'll see how that goes tonight, if it's still draining then I'll try turning WiFi off and see what happens.
I've got GasBuddy, Google, Play Services, Maps, and WTForecast using location. None of those usually show up in any battery stats aside from Play Services.
bosox284 said:
I am rooted. I've got WiFi/bluetooth scanning off, but I did just notice that Tethering hardware acceleration was on. I'm turning that off. I'll see how that goes tonight, if it's still draining then I'll try turning WiFi off and see what happens.
I've got GasBuddy, Google, Play Services, Maps, and WTForecast using location. None of those usually show up in any battery stats aside from Play Services.
Click to expand...
Click to collapse
Wtf weather was the one giving me trouble at one time. I just turned a few things off on that one. Are you using the "enable doze for GSM" magisk module like in the pic. That really seems to keep google play services in check :good:
bosox284 said:
I am rooted. I've got WiFi/bluetooth scanning off, but I did just notice that Tethering hardware acceleration was on. I'm turning that off. I'll see how that goes tonight, if it's still draining then I'll try turning WiFi off and see what happens.
I've got GasBuddy, Google, Play Services, Maps, and WTForecast using location. None of those usually show up in any battery stats aside from Play Services.
Click to expand...
Click to collapse
I wouldn't worry about turning off AOD saving you a bunch, I turned mine off and didn't notice any diff at all in overnight batt drain, so set it to DIM, and still haven't noticed any additional batt drain from when it was off.
If you really want to be a miser without totally losing AOD,
"always on" OFF,
"Lift to check phone" ON,
(Settings>Display>Ambient display>)
set it to DIM (Settings>Display>Screen Saver>Current Screen Saver gear>Night mode checked)
which is how mine is set up
Badger50 said:
Wtf weather was the one giving me trouble at one time. I just turned a few things off on that one. Are you using the "enable doze for GSM" magisk module like in the pic. That really seems to keep google play services in check :good:
Click to expand...
Click to collapse
Where is that fix touch module?
Sent from my Google Pixel 2 XL using XDA Labs
Prattham said:
Where is that fix touch module?
Click to expand...
Click to collapse
Look in downloads in magisk manager.
Badger50 said:
Wtf weather was the one giving me trouble at one time. I just turned a few things off on that one. Are you using the "enable doze for GSM" magisk module like in the pic. That really seems to keep google play services in check :good:
Click to expand...
Click to collapse
I've been trying to avoid using that module just because I don't want to delay anything from GCM, but I'm going to look into it if I can't identify another culprit.
bosox284 said:
I've been trying to avoid using that module just because I don't want to delay anything from GCM, but I'm going to look into it if I can't identify another culprit.
Click to expand...
Click to collapse
Delay what? ?
Badger50 said:
Delay what? <span class="emoji-outer emoji-sizer"><span class="emoji-inner" style="background: url(chrome-extension://immhpnclomdloikkpcefncmfgjbkojmh/emoji-data/sheet_apple_32.png);background-position:73.97179788484137% 79.9647473560517%;background-size:5418.75% 5418.75%" data-codepoints="1f914"></span></span>
Click to expand...
Click to collapse
GCM = Google Cloud Messaging, it's integrated into apps for push notifications. My (perhaps incorrect) assumption is that by dozing Play Services, you could delay push notifications for other apps.
bosox284 said:
GCM = Google Cloud Messaging, it's integrated into apps for push notifications. My (perhaps incorrect) assumption is that by dozing Play Services, you could delay push notifications for other apps.
Click to expand...
Click to collapse
Haven't noticed any delay what so ever with any push notifications from any apps. Google or otherwise :good:
I lost 11% overnight (8 hours), I have Amplify, Enable Doze for Google Play Services Magisk module and ForceDoze, and still getting that drain.
Could it be these apps conflicting with one another?
I noticed this as well and it seems to have started after the January update. Although mine isn't quite as bad. Pre-January update I was losing about 2-3% in like 8 hours. I'm now losing that much in like 4-5 hours. There were 2 days in a row where I actually lost like 15-18% over like 7 hours.
rickysidhu_ said:
I lost 11% overnight (8 hours), I have Amplify, Enable Doze for Google Play Services Magisk module and ForceDoze, and still getting that drain.
Could it be these apps conflicting with one another?
Click to expand...
Click to collapse
Get rid of amplify and forcedoze. Then see what happens. You've got too many things trying to do the same thing!
The Jan update has been ****. I would get almost 7 hrs SOT with 20% left. Now all I get is ****ty 4 hrs and phone at 10%. Usage wise it's the same since day 1 nothing new as such. No rogue app on BBS. This is messed up.
Badger50 said:
Get rid of amplify and forcedoze. Then see what happens. You've got too many things trying to do the same thing!
Click to expand...
Click to collapse
Yeah I had a feeling that could be it. I'll give it a shot by removing them, thanks for the suggestion! :highfive:
Badger50 said:
Look in downloads in magisk manager.
Click to expand...
Click to collapse
It isn't there that's why i asked
Sent from my Google Pixel 2 XL using XDA Labs
bosox284 said:
I am rooted. I've got WiFi/bluetooth scanning off, but I did just notice that Tethering hardware acceleration was on. I'm turning that off. I'll see how that goes tonight, if it's still draining then I'll try turning WiFi off and see what happens.
I've got GasBuddy, Google, Play Services, Maps, and WTForecast using location. None of those usually show up in any battery stats aside from Play Services.
Click to expand...
Click to collapse
Try to run "su" and then "top" from terminal,
See what is your top process,
In one occassion, my magisk hide stucked up and using 30%++ of CPU all the time, even when idle, and that drain the battery in no time,
Am on 8.1 Jan, Kiriskura Kernel,
Tweak applied is Brevent, Amplify and my own EnableDoze for GMS.
Never lost more than 5% in 9 hours of sleep. Average is 2-3% with wifi on. Less than 2% when network is totally off
Prattham said:
It isn't there that's why i asked
Click to expand...
Click to collapse
You can try the one attached.
I cant find it in download section as well
Prattham said:
It isn't there that's why i asked
Click to expand...
Click to collapse
My bad. I forgot that it was a special build by another user. Install it from magisk manager. If it doesn't install, then flash it in twrp.
https://github.com/AndroPlus-org/ma...b/master/magisk-module-fix-touch-pixel2xl.zip

Categories

Resources