[Q] wake lock issues? (solved) - Nexus 5 Q&A, Help & Troubleshooting

Been having battery issues lately. Its seems really bad today, dropping a few percent in ten minutes.
Running sinless ROM currenty... But I was using others before.
I checked the battery stats and nothing odd stood out, so I am thinking a wake lock is causing issues. Never had this issue, so not sure on how to diagnose the issue. Any advice?
Update:
Using the app mentioned in the thread below... I discovered the Facebook app was making a lot of wakelocks.
I don't use the app much, I even have updates and notifications disabled for it... But still.
Not sure if the cause was restoring the app and its settings from a titanium backup or not. With it uninstalled I am doing good. So I will need to reinstall and start it from scratch, then I will see what happens.
If it is just the app being crappy, I will use chrome browser to check it on the phone, not like I use FB much...

Install wake lock detector from playstore.. Charge your mobile fully and leave it untouched for an hour or two...
Now open wake lock detector and see what's causing the drain!
Here's the app: https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector
- Sent from an IceCold Hammerhead!

vin4yak said:
Install wake lock detector from playstore.. Charge your mobile fully and leave it untouched for an hour or two...
Now open wake lock detector and see what's causing the drain!
Here's the app: https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector
- Sent from an IceCold Hammerhead!
Click to expand...
Click to collapse
Thanks... So far nothing odd, I even enabled advanced mode so I could see system services as well.
Charging showed a rapid increase in charge. 5% in just a couple minutes... With a 850mah charger I have sitting around at work.
Seems way too fast from my experience. So the battery stats may be screwy from all the ROM switching. May need to wipe those.
Can TWRP do that, or is there a simple way to go about it? I have done it in recovery on older devices... Never on the N5 and not in over a year.

Marine6680 said:
Thanks... So far nothing odd, I even enabled advanced mode so I could see system services as well.
Charging showed a rapid increase in charge. 5% in just a couple minutes... With a 850mah charger I have sitting around at work.
Seems way too fast from my experience. So the battery stats may be screwy from all the ROM switching. May need to wipe those.
Can TWRP do that, or is there a simple way to go about it? I have done it in recovery on older devices... Never on the N5 and not in over a year.
Click to expand...
Click to collapse
No need to wipe battery stats... They get reset after you've fully charged your device.. Clearing them doesn't do any good. AFAIK, CWM has even removed that option from it's settings!

vin4yak said:
No need to wipe battery stats... They get reset after you've fully charged your device.. Clearing them doesn't do any good. AFAIK, CWM has even removed that option from it's settings!
Click to expand...
Click to collapse
If that is the case... I may need to switch to factory stock for a bit and see what happens.

Related

Strange battery issue

Hello all. I was looking for some possible cause/solutions to a strange battery issue I am having on my skyrocket. I've been runing with no issues until yesterday. All of a sudden my battery drains CRAZY FAST. It will go from 100% to 30-40% in a matter of an hour. This is even with it locked and sitting on my desk,
I have auto sync turned off...
I have not installed anything in probably 3 days and the battery usage screen looks as normal as it ever has.
My question is, would it help if I booted to recovery and the reset the battery option? Should I make sure it's 100% charged before doing that?
You can wipe the battery stats, but it probably won't help with the discharge problems
What's draining it so bad in the battery monitor? Maybe a data connection problem? I've had draining issues on the ICS battery, maybe something similar is happening to you. Might check your APN settings/turn off data and see what happens
Sent from my SAMSUNG-SGH-I727 using xda premium
People say that Wipe Battery Stats does absolutely nothing on the Skyrocket.
There is a way to calibrate your battery using Root Explorer to delete the file with the battery stats (the file regenerates on reboot), but I can't seem to find the how-to thread on that right now (and don't have time to search). At any rate it does involve fully charging it with the phone on, then fully charging it with the phone off, and then deleting the file.
Maybe someone else can better explain what I'm getting at..
Also, you might want to try Juice Defender from the Market (or Play Store if you prefer to call it that). It's a great app that can help you monitor and conserve your battery usage.
Thanks for the suggestions...I forgot about that other battery reset method with the file. Also, I had forgotten to mention that I am already using juice defender. I uninstalled it this morning and reinstalled it just to see if that helped.
Thanks again for the responses!
same problem here
Fyi...it was Facebook. Nor sure what changed but I uninstalled it and everything was back to normal. I even had the sync and notifications off. Will reinstall tonight ans see what happens.
Sent from my SAMSUNG-SGH-I727 using XDA
jschuetz said:
Fyi...it was Facebook. Nor sure what changed but I uninstalled it and everything was back to normal. I even had the sync and notifications off. Will reinstall tonight ans see what happens.
Sent from my SAMSUNG-SGH-I727 using XDA
Click to expand...
Click to collapse
Facebook is the worst app, ever!

Android OS draining battery upto 72 %

Hi ,
yesterday night i dint plug my phone to charging because my battery was above 70 % so i thought its more than enough for next day but i woke up in noon and saw that my phone was on 11% so took a screenshot thought that posting it here might help me
thnx in advance
Try disabling Google now I heard that its a major battery drain to our crespo
Sent from my Crespo using xda premium
You need to describe your device configuration. Phonetype, Firmware, ....
Time for a clean install.
Sent from my Nexus S
nexususer said:
Hi ,
yesterday night i dint plug my phone to charging because my battery was above 70 % so i thought its more than enough for next day but i woke up in noon and saw that my phone was on 11% so took a screenshot thought that posting it here might help me
thnx in advance
Click to expand...
Click to collapse
Try Installing soju factory image from google. I did a clean install wiping dalvic chache as well and my battery is awsome since then and I never disable google now. See in the attached screenshot how flat battery consumption curve when I am not using it.
alien_x said:
Try Installing soju factory image from google. I did a clean install wiping dalvic chache as well and my battery is awsome since then and I never disable anything.
Click to expand...
Click to collapse
I did the samething after getting terrible battery life due to an AudioOut_2 wakelock that never let my phone idle, and the same thing still happens. I'm wondering if a hardware malfunction could cause screwy behavior like this.
Just do "proper clean install", it should help.
Agree with clean install. ROM and kernel choice have a lot to do with battery drain also.
Was this a one time thing or the norm for your phone? If a one time thing wouldn't worry too much but would still shop for ROMs and do a clean install.
I have started using Juice Defender and LUX and my battery life has increased exponentially its features should help any ROM kernel combo.
Sent from my Nexus S 4G
i had a problem with android os sucking the life out of my battery, all was ok for about a week after i installed jb but then my battery life sucked. rather than do a clean instal i turned off auto sync for a couple of days then switched it back on again, since then my battery life has been good and android os has hardly used up any battery. might be worth while trying this first
Yeah. Full wipe is a last resort. At least if you figure out what actually caused it, you can prevent it from happening. I remember my Nexus S had this weird bug where if I put the phone in air plan mode and didn't disable auto sync, the phone would never properly sleep. Never had that issue on any other phone.
Its sometimes ROM related....codename ROM I get high android is but not with androxide
Sent from my Nexus S using Tapatalk 2
alien_x said:
Try Installing soju factory image from google. I did a clean install wiping dalvic chache as well and my battery is awsome since then and I never disable google now. See in the attached screenshot how flat battery consumption curve when I am not using it.
Click to expand...
Click to collapse
You have network disabled... Off course it does not drain!
I cannot tell much about your device setup since not all the details were given, But even my Sprint Nexus S 4G had horrible battery issues. The stock gingerbread was a joke, then the stock ICS did improve to do a couple more hours. Now running an rooted JB and it seems to do 1day and 3 hours at this time.
alien_x said:
Try Installing soju factory image from google. I did a clean install wiping dalvic chache as well and my battery is awsome since then and I never disable google now. See in the attached screenshot how flat battery consumption curve when I am not using it.
Click to expand...
Click to collapse
i am using international nexus s superamoled version and my model number is i9010T so i cannot install soju i have to install sojua and i m on jelly bean right now
One Power Guard can help the system into a deep sleep,Reduce battery drain
downloaded from http://forum.xda-developers.com/showthread.php?t=1889740
One Power Guard, an AMAZING product, saves energy for your Android device under the all circumstances. It greatly enhances device performance, improves battery, and powers up standby time and battery life by optimizing system kernel and cpu, avoid phone overheating, shutting down useless programs, preventing from energy-consuming apps, initiating deep-sleep mode, adjusting Wifi parameters, optimizing charging parameters and pacing up setting change , etc.
Google Now
Turning off Google now is what fixed the battery drain for me. Tried other things but only this worked.

[Q] What is this thing that is eating my battery? com.android.systemui

Rooted -- Calkulin's Stock "Battery Saver" ROM -- Xposed Framework -- a few mods from XBlast Tools running.
First off, a Root Explorer search for com.android.systemui returned nothing.
What is com.android.systemui? I don't think I saw this in my usage until a couple of days ago.
Why does 31 seconds of CPU and 1 second of keep awake = almost TRIPLE the battery use of 12 minutes of screen-on time?????
moseso said:
Rooted -- Calkulin's Stock "Battery Saver" ROM -- Xposed Framework -- a few mods from XBlast Tools running.
First off, a Root Explorer search for com.android.systemui returned nothing.
What is com.android.systemui? I don't think I saw this in my usage until a couple of days ago.
Why does 31 seconds of CPU and 1 second of keep awake = almost TRIPLE the battery use of 12 minutes of screen-on time?????
Click to expand...
Click to collapse
It's the actual System User Interface. So most likely a combination of the rom and xposed are causing this. Also, dirty flashes of ROMs can cause this.
If you installed a new xposed module and noticed a battery drain the uninstall that module. Otherwise remove other xposed modules. You could always try a frew full wipe in recovery as well.
I have had this issue with mostly with dirty flashing which is my queue to do a clean flash. It's also possible if you restored any apps with data, like from Titanium Backup, could potentially cause this as well.
moseso said:
Rooted -- Calkulin's Stock "Battery Saver" ROM
Click to expand...
Click to collapse
you got caught up in a lie, with buzzwords that are pushing for you to use the rom. theres no such thing as a battery saving rom. all those scripts/mods being used in the rom are just buzzwords. battery life is all dependent on how you personally use your device, how you set up your device, and your data/phone signal quality. a rom will not save you battery.
Thanks for the help, Tom. A visit to recovery to wipe caches and fix permissions and a reboot caused this -->
simms -- I do understand that. I am not really disappointed in my battery life -- and it doesn't seem to have changed much in the week that I've had the phone. But the reporting of it had, and that sort of alarmed me...
moseso said:
Thanks for the help, Tom. A visit to recovery to wipe caches and fix permissions and a reboot caused this -->
simms -- I do understand that. I am not really disappointed in my battery life -- and it doesn't seem to have changed much in the week that I've had the phone. But the reporting of it had, and that sort of alarmed me...
Click to expand...
Click to collapse
wow, your android system is high, even though only 10% battery was used. a reboot might fix that though. you might have to go through your settings and setup again, disable stuff like google location reporting/history(it wont disable your location).
simms22 said:
wow, your android system is high, even though only 10% battery was used. a reboot might fix that though. you might have to go through your settings and setup again, disable stuff like google location reporting/history(it wont disable your location).
Click to expand...
Click to collapse
I'm beginning to think the issue I'm having is in the reporting -- not actually a battery use problem. I've only had the phone a week, so my data base is small, but I haven't really seen bad battery life nor any real change in it. Even with some use and a bunch of time fiddling with the mods and stuff, I've yet to go to bed with less than 50% left. Mostly, more...
Here's the latest pics. com.android.systemui is back on top in the overview with 36% The detail page shows 39% and a whole 2 seconds of CPU. That just CAN'T be right...
moseso said:
I'm beginning to think the issue I'm having is in the reporting -- not actually a battery use problem. I've only had the phone a week, so my data base is small, but I haven't really seen bad battery life nor any real change in it. Even with some use and a bunch of time fiddling with the mods and stuff, I've yet to go to bed with less than 50% left. Mostly, more...
Here's the latest pics. com.android.systemui is back on top in the overview with 36% The detail page shows 39% and a whole 2 seconds of CPU. That just CAN'T be right...
Click to expand...
Click to collapse
Can u show the battery graph? And also why is your bluetooth on every time.
varuntis1993 said:
Can u show the battery graph? And also why is your bluetooth on every time.
Click to expand...
Click to collapse
Which battery graph? You mean the current usage graph I showed in the OP, from Battery Monitor Widget?
Re Bluetooth: I just leave it on, so when I step in the car it just connects to the car. No muss, no fuss, no bother.
I suppose I could try turning it off and see how much battery I save. I know with my previous phone (EVO4G) the point at which I started leaving the bluetooth on all the time didn't change my battery life to any noticeable extent.
Here's battery monitor widget current use. The EVO idled at 70 - 95 ma. This one does seem to draw a lot more at idle. I don't know what's "normal."
moseso said:
Which battery graph? You mean the current usage graph I showed in the OP, from Battery Monitor Widget?
Re Bluetooth: I just leave it on, so when I step in the car it just connects to the car. No muss, no fuss, no bother.
I suppose I could try turning it off and see how much battery I save. I know with my previous phone (EVO4G) the point at which I started leaving the bluetooth on all the time didn't change my battery life to any noticeable extent.
Here's battery monitor widget current use. The EVO idled at 70 - 95 ma. This one does seem to draw a lot more at idle. I don't know what's "normal."
Click to expand...
Click to collapse
Stock battery app like this
varuntis1993 said:
Stock battery app like this
Click to expand...
Click to collapse
Not very interesting. It keeps resetting, every time I plug in to USB to transfer the screenshots to my mac for posting here. I'm not leaving it plugged in very long -- I just move the pics and unplug it. I unplugged it this morning at 7:30 AM. It's now almost seven hours later and I'm at 93%. That ain't bad. It's a gradual descent -- no big drops like the one in your post.
moseso said:
Not very interesting. It keeps resetting, every time I plug in to USB to transfer the screenshots to my mac for posting here. I'm not leaving it plugged in very long -- I just move the pics and unplug it. I unplugged it this morning at 7:30 AM. It's now almost seven hours later and I'm at 93%. That ain't bad. It's a gradual descent -- no big drops like the one in your post.
Click to expand...
Click to collapse
Mine stats those are from my nexus 7 2013, Sot of around 4 and still 55% battery left.
I just showed u for sample. A simple restart should fix as simms told
I m on stock rom with x blast tool never happened with me....u can try to use ur phone in safe mode and see...I know its a system app but u can give a try with bluetooth off. Or flash a diff rom and see
If your phone is vibrating a lot and you have extra UI elements installed this seems normal.
When you only use a small percentage of the full battery smaller drains appear large.
Bit off topic, but have you thought of using WiFi to move your files over? No messing with the wire and you could even automate the task.
Sent from my Nexus 5 using Tapatalk
bblzd said:
Bit off topic, but have you thought of using WiFi to move your files over? No messing with the wire and you could even automate the task.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for the push. Found a nifty WiFi file transfer app this morning. Boy, is that slick!

Getting below average battery life on brand new phone

As mentioned on the title, do you guys know what I should do? I'm on the latest stable update. I just got the phone couple of days ago.
I was thinking to do a factory reset and download each app manually instead of going through backup stuff? Idk if this will help.
Sent from my OnePlus6 using XDA Labs
DeadFox-xda said:
I was thinking to do a factory reset and download each app manually instead of going through backup stuff? Idk if this will help.
Sent from my OnePlus6 using XDA Labs
Click to expand...
Click to collapse
I would turn on adaptive battery to begin with and get BBS to find out which app is draining the battery before you go through a factory reset. How is your standby time overnight? It should be around 0.5 - 0.8% / hour.
bobby janow said:
I would turn on adaptive battery to begin with and get BBS to find out which app is draining the battery before you go through a factory reset. How is your standby time overnight? It should be around 0.5 - 0.8% / hour.
Click to expand...
Click to collapse
I get a lot worse than that but I'll do what you say then I'll update you later on
Sent from my OnePlus6 using XDA Labs
Please update us as I'm having the same issue where the drain from a factory reset with fresh start is still 3%/hr, with ambient display off.
Dr-akbar said:
Please update us as I'm having the same issue where the drain from a factory reset with fresh start is still 3%/hr, with ambient display off.
Click to expand...
Click to collapse
That should not be. Get better battery stats and figure out what is waking your device with screen off. Disable it or get the eff rid of it. It's probably one app so find it. I had some stupid app draining 1% per hour idle. Bye bye. You'll get it and then squash it.
bobby janow said:
That should not be. Get better battery stats and figure out what is waking your device with screen off. Disable it or get the eff rid of it. It's probably one app so find it. I had some stupid app draining 1% per hour idle. Bye bye. You'll get it and then squash it.
Click to expand...
Click to collapse
I'll try that but if I remember correctly, I did at some point download it and nothing was shown to be draining the battery or waking the device except for high usage by Google services as it always seems and couldn't narrow it down at that time.
I'll give it another shot and see.
Dr-akbar said:
I'll try that but if I remember correctly, I did at some point download it and nothing was shown to be draining the battery or waking the device except for high usage by Google services as it always seems and couldn't narrow it down at that time.
I'll give it another shot and see.
Click to expand...
Click to collapse
I look at alarms and partial wakelocks mostly. You'll find something errant other than the system services which everyone has. Shoot for 0.7% / hour max. I mean sometimes something goes awry and I have to reboot to clear it out. Do a reboot before unplugging at full charge then go 7 hours or so and see what you get unplugged. Screen on time is nonsense so don't pay attention to that. The battery isn't stellar but it is sufficient.
With pixel phones I've learn to live without root, customROMS, short battery life and lag here and there.
To love Android I have to accept or sacrifice those little things.
I'm enjoying the camera, regular updates and the size of my pixel 3.
If you are looking for best battery life, pixel is not an option.

Possible Fix For Rapid Idle Battery Drain

Been having really bad drain issues on standby so decided to experiment. I've possible cured my phone from the drain issue. It involves an 18 watt charger and the usb cable (obviously). First plug your phone and charge until it says full in battery app. Second switch off phone leaving it on charger, wait another 5 mins just to make sure the phone reads the battery as full.
Third, now press vol up and vol down plus power button together keeping hold of them until the phone reboots at least 4 times, wait for to shortest reboots and let go, power up and wait for battery to say full and then wipe the device health services app completely including the ambient light data.
Reboot again if you want to while your still plugged into charger and wait minimum 12 hours like a new battery should be charged
Hopefully you cured the idle drain, if not,try install the device health services beta app on apk mirror and wipe the app again, hopefully that should be fixed, if not then your issue is completely different to mine.
Also make sure that you don't have any sound connected apps that are jamming the on the sound in background. If you did it right you should notice a clean slate in the battery app with the amount of days the phone was built or preset.
Mine said last full charge 55 days ago.
Cannot be done without charger and cable.
Or you can just reset device health services without doing the button press, i just wanted to start a fresh.
Just an update, my phone is 38 hours in with 45% battery.Just idle with minimum use, a few phone calls and updating of apps, half hour screen on all activity. Now i would say this is miraculous considering the phone was draining 1% every few mins. Even a factory reset and ota didnt fix it. PLease be aware that im not providing a miraculous cure for everyones battery drain, and not responsible if it doesnt work for you, i think a few ppl will gain from it aswell as few ppl wont gain from it. LET me know your experience after trying.
From what i can gather device health services wasnt working as it should and was killing my battery.
This looks like witchcraft. What is rationale behind your spells?
BTW, if you reboot the phone 12 times, you might get 3x the battery life. Even better, then charge it for 48 hours to get 6x battery life. I think we're on to something, but I am not sure what it is..?
Sent from my Pixel 3 XL using Tapatalk
MArtyChubbs said:
This looks like witchcraft. What is rationale behind your spells?
BTW, if you reboot the phone 12 times, you might get 3x the battery life. Even better, then charge it for 48 hours to get 6x battery life. I think we're on to something, but I am not sure what it is..?
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
your funny, look it up. Theres a bug in device health services, causes the phone not to sleep properly, the other part of holding the buttons returns the phone back to factory preset calibration, hence hardware. You will see when holding the power buttons normally it takes 10 seconds to reboot, still holding the buttons it will cycle faster on the next reboot, i suggested 4 times to make sure its done. If try it without the charger and cable, it does nothing, wont even reboot.
The 12/24 hours i mentioned is to charge like you would a brandnew phone.
No one has to do it if they dont want to, im just sharing.
If i was conning ppl xda dev would of removed it or flagged it.
Im not pushing for extra batterylife, normal operation is what i was looking at.
Ive updated the device health services from apk mirror, now battery drain is back. That just proves my theory of the app bugged up. Have to reset the stats again and hope it fixes it, again.
boe323 said:
your funny, look it up. Theres a bug in device health services, causes the phone not to sleep properly, the other part of holding the buttons returns the phone back to factory preset calibration, hence hardware. You will see when holding the power buttons normally it takes 10 seconds to reboot, still holding the buttons it will cycle faster on the next reboot, i suggested 4 times to make sure its done. If try it without the charger and cable, it does nothing, wont even reboot.
The 12/24 hours i mentioned is to charge like you would a brandnew phone.
No one has to do it if they dont want to, im just sharing.
If i was conning ppl xda dev would of removed it or flagged it.
Im not pushing for extra batterylife, normal operation is what i was looking at.
Click to expand...
Click to collapse
"your funny" made my day. Thanks brother!
And I appreciate your explanation. Good read[emoji6]
Sent from my Pixel 3 XL using Tapatalk
ive had no look in using the playstore device health services, battery is back to draining 2% every few minutes, the latest version on apk mirror or the beta are the only ones that work properly, battery stats wont even populate on the main battery usage tab. just says unavailable. So, if anyone as got the issue where the stats dont show on main battery usage , download the beta or the latest device health service app, install it and reset the battery stats. Hopefully the stats will show and drain as gone. Ive had best results in the beta.
This the latest version, not reset stats yet, just wanted to show what stats weren't showing untill I update the app.
This what you get when battery stats are cleared
This is an example.
what does your battery app say for screen on and idle time on full battery?
This is the dumbest thread a long time. What the actual f**** you're talking about? Uninstall that crappy Cloud app that runs for 12hrs and draining you battery. Look at your own provided screens.
Deleted
MrPepperino said:
This is the dumbest thread a long time. What the actual f**** you're talking about? Uninstall that crappy Cloud app that runs for 12hrs and draining you battery. Look at your own provided screens.
Click to expand...
Click to collapse
The cloud app as got nothing to do with what i'm doing, it doesn't drain my battery. The screen shots are examples. I could as easily say your post is the dumbest post i've seen in a long time, as you don't even know what i'm on about. 1% of my battery in 12 hours is not draining the battery. Easiest thing for you to do is just ignore this thread.
This is my idle state usage after clearing stats and unsticking device health services
boe323 said:
This is my idle state usage after clearing stats and unsticking device health services
Click to expand...
Click to collapse
Post your real stats nub, that screens tells us nothing
b1337 said:
Post your real stats nub, that screens tells us nothing
Click to expand...
Click to collapse
Its idle state, not use the phone state. The infos there for idle(not using the phone) state. There was only one app in app usage tab, carrier settings used 3%,if you turn on wifi the carrier settings doesn't use battery at all, total usage was screen, idle, carrier settings and playservices.
You can tell when device health services is stuck, the phone is always warm, never cold. Hoping android 10 as fixed it, but i doubt it.
Do you still have this issue? According to AccuBattery my phone drains about 5% per hour.
JayYip said:
Do you still have this issue? According to AccuBattery my phone drains about 5% per hour.
Click to expand...
Click to collapse
Not now, seems to have solved it. If you wish to try it, after you done the steps on android 10, open app usage tab and look on the graph to see if phones gone back to factory state, it will read something like 20 or 30 days ago last charge. Keep an eye on the population of the battery app and check if phones cold in standby.
boe323 said:
This what you get when battery stats are cleared
This is an example.
Click to expand...
Click to collapse
Is this supposed to show before or after the 12 hours charge? Done all the steps. 4 reboots with the buttons pressed, then installed this beta on the link below and clear the data of the app, but the battery data looks normal to me.
Link:
https://www.apkmirror.com/apk/googl...1-9-0-247950067-release-android-apk-download/
EDIT:
Forget about it. Just show 43 days at the graphic. Will charge it for 8 hours for now and use the phone like always. Will post the results.

Categories

Resources