Phone Not Sleeping Properly - Nexus S General

And spare parts doesn't work. Any other way to check what's keeping it awake?
Sent from my Nexus S 4G using XDA Premium App

try installing aLogCat and see if there's anything fishy on the logs (namely programs trying to background update more than they should... Java exceptions can often be a source of resource leakage if not handled correctly by the program that throws them).
WatchDog is also a good tool to see what's taking a toll on the CPU. I once found out that WeatherBug would keep the CPU topped up if kept in an area without internet connectivity as a result of some mishandled code error or something.

settings, about phone, battery usage
my me, proton is keeping the phone awake???

asb123 said:
settings, about phone, battery usage
my me, proton is keeping the phone awake???
Click to expand...
Click to collapse
Not really detailed like spare parts
Sent from my Nexus S 4G using XDA Premium App

Watchdog
Hi. I am having similar problems. I downloaded Watch Dog lite and have used Battery Usage to see that Android System is using much of my battery even when asleep (overall, it is about ~46% of usage).
I have Wi-Fi turned to "Never On When Sleep" (or whatever the setting is) and I've noticed that when I look at Battery Usage, the blue bar that corresponds with Awake is nearly identical to that of Wi-Fi. I've also noticed that when I hit the sleep button, and create a break in the Screen On blue bar, there is not an immediate corresponding break in the Awake or Wi-Fi blue bars despite my settings. Is this normal?
Any help would be greatly appreciated.

what I can't tell is the difference between awake and up time...with the evo it was blatant but I can't figure out if the phone is actually "awake"

I think "Up Time" is time from last reboot and "Awake" is time since the phone is pulled out of sleep (either by turning the screen on, syncing data, background data collecting information, or etc).
Hopefully I'm correct...

maxysuperpad said:
I think "Up Time" is time from last reboot and "Awake" is time since the phone is pulled out of sleep (either by turning the screen on, syncing data, background data collecting information, or etc).
Hopefully I'm correct...
Click to expand...
Click to collapse
That IS EXACTLY CORRECT. you get a cookie.

My NS4G is having problems sleeping, as well. Seems to be awake around 25% of the time, whereas actual screen-on time is about 10-12%.

Related

Insane Battery Drain...Please help

This is my first android phone and I'm wondering if I am doing anything wrong. Yesterday I charged my phone and it was at 83%. I unplugged the phone and went to sleep, when I woke up this morning the battery was completely drained.
This happens a lot. Even if I am not doing anything it still drains like crazy. I just text, make some phone calls and it barely makes it through the day. I don't play any games, no gps, no Bluetooth or anything. With my plan, I don't have a data connection so I can't connect to 3g/4g so that shouldn't drain anything.
What could I be doing wrong? When I'm done using the phone I tap the power button on top, the screen goes black - to sleep I presume and I put it away. I had an iphone before this and I did exactly the same thing and the battery lasted for 3-4 days on one charge.
Whenever I see what's using up the battery, the display tops the list. The display is using up 75-80% of the battery. If the phone is asleep for most of the time why is the display using up that much battery? Am I not putting the phone to sleep correctly?
Faizt20 said:
This is my first android phone and I'm wondering if I am doing anything wrong. Yesterday I charged my phone and it was at 83%. I unplugged the phone and went to sleep, when I woke up this morning the battery was completely drained.
This happens a lot. Even if I am not doing anything it still drains like crazy. I just text, make some phone calls and it barely makes it through the day. I don't play any games, no gps, no Bluetooth or anything. With my plan, I don't have a data connection so I can't connect to 3g/4g so that shouldn't drain anything.
What could I be doing wrong? When I'm done using the phone I tap the power button on top, the screen goes black - to sleep I presume and I put it away. I had an iphone before this and I did exactly the same thing and the battery lasted for 3-4 days on one charge.
Whenever I see what's using up the battery, the display tops the list. The display is using up 75-80% of the battery. If the phone is asleep for most of the time why is the display using up that much battery? Am I not putting the phone to sleep correctly?
Click to expand...
Click to collapse
If you cant connect to 3g/4g, you should turn it off in settings. Otherwise, Your phone will constantly look for a signal, draining your battery.
Battery life is all relative. Every single person will experience different battery life. The apps you have installed, the amount of time you spend on it and the time you spend on/in each app, distance from cell towers, distance from Wi-Fi sources, settings you have for every app and things like sync and what not.
The first thing to check is if your phone is being affected by the init or suspend bugs. The good news is the former has an easy fix, and the latter can be temporarily fixed by a reboot.
First, download & install Watchdog Lite from the market. Then open its preferences and check "include phone processes," "monitor phone processes," and "display all phone processes." Then just use your phone as normal. It may take a while before you get an alert from Watchdog (and maybe you never will and it ends up you have a different problem). But if you do, note the process that is the culprit.
If it is the init process, go to settings>applications>development> check "usb debugging."
If it is the suspend process, reboot the phone. It should keep it from happening again for a while.
I know the second answer isn't really an answer, but so far it's all we've got for that problem. There is more information on the 2 problems in these threads:
Init:
http://forum.xda-developers.com/showthread.php?t=839935
Suspend:
http://forum.xda-developers.com/showthread.php?t=872839
Good luck...I had both of the problems and my phone didn't last to dinner time. Now I get better battery life than the iphone 3GS I had before this...about a day and a half of moderate use.
EDIT: also you'll probably want to go to settings>wireless & networks>uncheck "mobile network" since you don't have a data plan. No reason to have that on since you don't have a data plan.
werk said:
First, download & install Watchdog Lite from the market. Then open its preferences and check "include phone processes," "monitor phone processes," and "display all phone processes." Then just use your phone as normal. It may take a while before you get an alert from Watchdog (and maybe you never will and it ends up you have a different problem). But if you do, note the process that is the culprit.
Click to expand...
Click to collapse
I installed this using the Moderate setting, and then selected those options as recommended in preferences.
Does Watchdog use a lot of system resources when running in this manner? Will it cause the battery to drain noticeably faster?
netter123 said:
I installed this using the Moderate setting, and then selected those options as recommended in preferences.
Does Watchdog use a lot of system resources when running in this manner? Will it cause the battery to drain noticeably faster?
Click to expand...
Click to collapse
Completely unnoticeable, IMO.
I installed watchdog lite and I have had couple of alerts. I got suspended couple of times and I also got Android system once.
Android system - 50.1%
Foreground
Suspend - 54.4%
Linux Process
I turned off the data usage from the settings and it did help save battery. The display is not using so much battery life anymore. It went from using 70% to 35%.
Edit: Battsatt reported that the battery was at 93%. When I saw the two alerts above I rebooted the phone and Battsatt now starts reporting the phone is fully charged.
Make sure the GPS is turned Off, too...
All these answers and the easy ones were not mentioned..
Make sure you shut your AUTO SYNC off...
Make sure you lower your brightneess....
Make sure you turn off GPS(was stated above me)
Turn off your wifi if you are not using it.. make sure you are not transmitting your hot spot stuff...
Faizt20 said:
Suspend - 54.4%
Linux Process
Click to expand...
Click to collapse
You just summed it up right there. You are experiencing the 'suspend' issue, period. There is no app you can install to fix it. There is no app you can uninstall to fix it. There is no setting you can adjust to fix it. There is no fix for the 'suspend' issue, literally.
I started the following thread in an attempt to consolidate posts and hopefully work toward flushing out what the real issue is...
http://forum.xda-developers.com/showthread.php?t=872839
This is a real, legitimate issue with Android 2.2.x Froyo. As I linked in my post, this is Issue # 11126 on Google Code...
http://code.google.com/p/android/issues/detail?id=11126
If there was an app or setting that fixed the 'suspend' issue, we wouldn't even be discussing this right now. There are fixes/workarounds for a lot of things, but right now, the 'suspend' process issue truly is a mystery. No one, not a single person has yet to post, "this is the cause of the issue," let alone a fix for it.
I wish you had a fix man, I really do. My fiancee experiences this and there's only one way she's found to sort of workaround it, sort of - she reboots her phone every morning. This seems to keep it at bay, at least more so than when she doesn't reboot each morning, once she takes it off the charger. She still gets it though and she's just used to looking for Watchdog and checking her processes now.
This thread could go on and on forever but it comes down to this:
- The MT4G does not have insane battery drain and will give you about 12 hours of life, under normal>medium usage. If your battery is draining insanely quickly AND if you're seeing the suspend process jacked up so high, then there.is.no.fix.yet.
There might be a ton of other replies after this about uninstall this, install that, change this, don't use widgets, use widgets, etc. Those attempts will be futile.

[SOLVED] Battery drain with data usage on vs. off

Hello peeps,
During the last couple of days I've read up a lot on the topic of battery drain. The reason is that a few weeks ago I could go for days without charging my phone with minimum usage with data traffic and gps turned on, display set to auto adjust the brightness etc. I basically didn't take any extreme ways to save my battery, as I simply didn't need to. But then I flashed Doc's and Stefunel's latest rom, with hardcore's kernel and all that. You know, pretty standard, nothing special. DTJP3 modem, the standard one for Australia. Was great for a start.
But then the horror began, after about a week. I've noticed that the up/download arrows are pretty much constantly glowing up there, and the battery drains in hours! I can't notice that my data usage have gone up a lot though. So I've tried that battery settings wipe thingy and some other stuff. Changed modem to JPY, which is also supposed to work in Australia (Even better from what I've heard). And sure, feels like I might have a bar or two better in reception. But the upload/download is still constantly on.
This is when I tried turning that of. I turned of data usage, gps, bluetooth, wifi, set brightness to lowest and downloaded Battery Snap. So with everything turned off, my battery dropped an average of ~0.5%/hour without usage. SWEET! Then I turned on data usage, and nothing more. It dropped 23% for the first hour, and 13 for the next half hour. Didn't think about actually checking the temp, but it was warm. Like when you use it.
This turned out to be an awful lot of text for just this question, but what could be the problem? Is there any way to check what's leaking? I've got SGS email on push only, no task killer, WiFi turned of, so those can't possibly be leaking, could it?
about 5% per hr here with data on, may be you got something in behind hog the cpu an keep sendibg data
Sent from my GT-I9000 using XDA App
Sounds like an app keeping data connection on. Try kill all apps, look on the services and kill the ones which are not nessesary.
I get ~ 1.5% per hour drain with mail sync every 30min with 3g on ...
Sent from my GT-I9000 using XDA App
Yes, 1-5% per hr is pretty much what I'm looking for, and had before. It's definitely not CPU, as I've got OSmonitor, and nothing shows up there as hogging it.
I'll try killing app after app through OSmonitor, thanks for that tip.
Oh, and btw, I turned data usage off during night. It has dropped 1% in 9 hours now
That was easy
com.seven.Z7.service is the villain here. Isn't that the SGS email client? Even though I have push? Thought that wouldn't be a problem then...
com.seven.Z7.service kept starting again, but the I went into "Settings -> Apps -> Manage Apps" and killed Social Hub. Voila! It worked. Even though I started Social Hub up again after, it worked. Weird... Or, not 100% sure yet, but so far it works. will check the battery drainage first in a few hours
Good have you have probably found it! One sidenote i have stopped using the sgs email client since i had the problem that new emails werent showing up ... i switched to k9 - you can try this if the problem stays ...
Sent from my GT-I9000 using XDA App
Oh, that might be an option. But, ye, we'll see if it works. If not, I'll consider K9
Thanks for helping me find the problem.
jaansson said:
Oh, that might be an option. But, ye, we'll see if it works. If not, I'll consider K9
Thanks for helping me find the problem.
Click to expand...
Click to collapse
Had the same problem with my SGH-959d (Telus Fascinate). Tracked down the culprit with Droidwall and then found your post. Killed the process through manage apps like you did and same results. Pulling battery didn't work, changing sync settings either so thanks a million for this!
I had a similar problem with my battery graph nose diving. I only realised my data was going through the roof when I started getting 'your are using to much data' text from my operator.
What I found helped was going into Settings->Privacy and turn off 'Back up my data'
Now I get I can go a day without charge. Instead of and hour and a bit... would be interesting to know if it helps you?
(On XXJVO no mods)
good tip about back up... but what do we loose?
A nice tip could be turn 2g/3g on/off when need it. Its a good way of saving battery.
I too am curious as to what id lost if we turn off back up data
Sent from my GT-I9000M using XDA App

SGS2 Awake time

When I look at my battery usage I saw that my S2 is constantly awake, even when I turn the screen off and put the phone away for a couple of hours.
I've turned off Wifi/3G and even background sync, but it stays awake all the time causing the battery to drain a lot faster than I want. Is there a way to stop this?
I hear people talking about theirs dropping only a couple percent per hour when not using the phone but mine at least drains 10% per hour.
Could it be the Social Hub?
Btw, my S2 runs on the latest KE2 firmware.
For me, I've noticed a big decrease in idle-battery draining when I rooted and removed Social Hub and I never even used it. It still stays "awake" as much as it did before on the little lines in the battery usage app, but a lot more juice.
Used to lose 10% per hour like you, now more like 5%.
If it stays awake all the time, something is _wrong_. If I don't use my phone the only awake time I can see in the battery status is every 15 mins (approx) when it goes "awake" a couple of seconds to update all the **** I have updating. It never stays awake all the time.
edit:
And just to give some more info. Mine is still stock on KE2 with all the crap Samsung put in the phone still in place.
SBS_ said:
If it stays awake all the time, something is _wrong_. If I don't use my phone the only awake time I can see in the battery status is every 15 mins (approx) when it goes "awake" a couple of seconds to update all the **** I have updating. It never stays awake all the time.
edit:
And just to give some more info. Mine is still stock on KE2 with all the crap Samsung put in the phone still in place.
Click to expand...
Click to collapse
sorry for highjacking your thread, but how do you guys get all this awake battery time info, is there a particular app you guys use.?
marvi0 said:
sorry for highjacking your thread, but how do you guys get all this awake battery time info, is there a particular app you guys use.?
Click to expand...
Click to collapse
Tap the graph at the top of the battery page.
LarcusMywood said:
For me, I've noticed a big decrease in idle-battery draining when I rooted and removed Social Hub and I never even used it. It still stays "awake" as much as it did before on the little lines in the battery usage app, but a lot more juice.
Used to lose 10% per hour like you, now more like 5%.
Click to expand...
Click to collapse
I think I experienced the same thing this night. I lost about 10% in 7 hours but the graph still showed that my phone was awake all the time.
Again, I turned the Wifi and 3G off. I'm still running the stock KE2 firmware together with all the Samsung apps. I haven't rooted it yet.
Also, Maps and Social Hub seemed to be active a lot when I look at their stay awake times.
bump.
to much awake time here as well.
how can i find out whats causing it?
I'd put money on it being widgets. Remove all the widgets from home screens, restart the phone and see if that fixes it. You can thank me later ;-)
Sent from my GT-I9100 using XDA Premium App
try watchdog, or adb logcat
I have this problem from time to time, killing wifi sharing stopped it for me. Comes back once a day for no reason I can see. 1 Kill a day keeps the phone last a full day for me.
Sent from my GT-I9100 using XDA App
Yeah I also see the occasional WTF moment when the phone suddenly decides in the middle of the day to stay awake 100% of the time. Battery then drains about the same 5-10% an hour you see. Not sure what causes it but a reboot usually fixes it, battery drain goes back to 0.5%-2% an hour that it usually sits at.
Sometimes I also see wifi sharing eating a constant ~50% of CPU, at which point battery drains more like 25% an hour, though not sure if it's related. If only I could disable the damn thing without rooting.
I also have this weird problem. My 2g data connection remains on because I receive a lot of emails so Ive enabled push notifications. However the problem is even when the screen is off, the phone stays awake 100% of the time.
I went to sleep after completely charging the phone at around 11pm and when I woke up at around 9 am, the battery was at 30%. That is 70% battery gone for not doing anything at all. Really need a solution for this guys. Or should I just turn off my data connection?
i had this prob with Widgetsoid installed.
Problem gone when i removed it.
Find on XDA BetterBatteryStats app.. Use phone for a while then run app. Check detected wakelocks. Based on that you can hunt which app or widget keep device always on.
Phone works normally if you compare Screen On and Awake graphs. Both graphs should match. Awake periods can be sometimes be out of screen-on intervals, but no too often.
In my case, I found that maps keep my phone awake.. then I figired that weather widget kep tracking my location (and uses maps for this). Also Lattitude uses maps to track location. When I configure weather widget to not track my location (im usually always in a home town) and turn off latitude, lots of awake periods dissaperar.

Awake while screen off

I'm on CM7.1 stable. Haven't had battery issues for a while, but starting a few days ago I've been getting rapid drain with heating. Battery use screen shows that the phone is awake most of the time the screen is off, but it doesn't reveal which app keeps waking it up. I also tried Spare Parts to see if any app is hogging the partial wake lock, but nothing seems to account for it.
Any other ideas on how to trace it? Must've been an app that updated in the past 3-4 days.
Sent from my HTC Glacier using Tapatalk
Just to show how this looks, here is a screenshot of the battery screen.
Notice that I put the phone in airplane mode for the past hour as I was writing an exam, yet it still appears awake with screen off. The phone was warm when I retrieved it after an hour of the radios being off! Something is seriously wrong here.
Sent from my HTC Glacier using Tapatalk
I can only guess it is an application or service keeping your phone from going to deep sleep- also known as "partial wake lock" or something like that...
What to do? You can probably nail the culprit using some application like BetterBatteryStats (Market it, or look for it at xda's app thread- it is somewhere here). It will help you find who/what is keeping the phone awake.
I think that Battery Monitor Widget can also give you similar info.
You may need some help in the BBS thread to help you interpret the results as they are not always obvious or easy to tell who's the problem.
Right. What's confusing me is that nothing in the partial wake lock list is showing more than about 10 minutes of lock time, yet the phone gets stuck awake for more than a solid hour of screen off time.
Sent from my HTC Glacier using Tapatalk
I think I figured it out. I had a trigger set up in Tasker that resets the phone's data connection every time it crashes out with an error (and my carrier WIND Mobile does this quite frequently). On days when the battery was constantly draining, it may have been because the network was particularly error-prone and my trigger therefore kept going off. And each time it went off, Tasker must have flipped the phone into awake mode.
I've turned off the trigger for now, to see if it stops draining.

Unexplainable battery drain

For a month or more I'm facing totally unexplainable battery drain.
As seen on the screens below, the phone is awake, but it is not detected anywhere - not by android nor by GSam. In any case the battery draws faster.
I have one observation tho - this happens after I make phone calls. Not every time, but once per 2,3 days.
Any ideas?
Spo0f said:
For a month or more I'm facing totally unexplainable battery drain.
As seen on the screens below, the phone is awake, but it is not detected anywhere - not by android nor by GSam. In any case the battery draws faster.
I have one observation tho - this happens after I make phone calls. Not every time, but once per 2,3 days.
Any ideas?
Click to expand...
Click to collapse
You have this problem
http://forum.xda-developers.com/note-4/general/explanation-horrible-note-4-battery-t3004274
I'm pretty sure that I don't have this issue. Yes, the percentage in GSam maybe high, but I don't believe this reflects what is happening.
First of all - I don't have bad battery life. Usually my over night drain is less than 1%/1h.
Second - the issue appears sporadically.
Third - in the provided thread I don't see the issue appearing in stock battery monitor, while mine appear.
At last - my battery drains faster only while the issue is present and before I restart. After that it is back to normal ...
@Spo0f
Just some suggestions maybe you're using 3g I always have that turned off and switch it on when I use it my guess is that some apps are causing your drain after a call maybe like you said if you're not fimiliar with greenify I suggest you use it to stop all those apps and system apps also uninstall all those bloatware you don't need or at least freeze them if you don't mind lower the resolution to 1080p with nomone app use power save or disable dvfs and use an app to lower and raise the CPU to save juice when not needed....
Thanks for the suggestions, but as I said - this problem appear sporadically - home when using WiFi as well as outside when using 3G.
All of the rest is done - I'm no newby
Spo0f said:
Thanks for the suggestions, but as I said - this problem appear sporadically - home when using WiFi as well as outside when using 3G.
All of the rest is done - I'm no newby
Click to expand...
Click to collapse
Oh sorry mate well I don't use much 3g so I can't help you there but if you're having drainage when you're using WiFi in general then maybe you should reconsider investigating the post above with the link I don't have so much drainage on connectivity with 3g or WiFi....viewing the pics you uploaded it seems suspicious.... Maybe an app? I don't know...
Use wakelock detector
Spo0f said:
I'm pretty sure that I don't have this issue. Yes, the percentage in GSam maybe high, but I don't believe this reflects what is happening.
First of all - I don't have bad battery life. Usually my over night drain is less than 1%/1h.
Second - the issue appears sporadically.
Third - in the provided thread I don't see the issue appearing in stock battery monitor, while mine appear.
At last - my battery drains faster only while the issue is present and before I restart. After that it is back to normal ...
Click to expand...
Click to collapse
My overnight drain was also very low, but that was because the faulty device on the network was asleep at night too (my desktop).
If you're not rooted, use the PC version of Wakelock Detector at the end of your day and post screenshots of your highest drainers for the various categories. In my case, the device was being woken up by something on the network and it showed.
Bear in mind that actively downloading something in the time period will also raise wifi power used but more stats will help.
The fact that you're still experiencing a lot of drain even when outside suggests it might be a rogue app
One phone call today and after it the phone stayed awake.
Because I had issue with the PC WLD the screen shots are from 11 minutes after one of the disconnects. The device was awake all of them.
Spo0f said:
One phone call today and after it the phone stayed awake.
Because I had issue with the PC WLD the screen shots are from 11 minutes after one of the disconnects. The device was awake all of them.
Click to expand...
Click to collapse
I also checked out my battery behaviour this night and was very disappointed. Although my phone was in flight mode and every peripherals and services shut down, today morning my phone was crying for energy. So I made a quick investigation in my power diagram and found out, that "Android OS" requested a wakelock during the whole power-on time. So I installed "CPU Spy" to check in which states the phone was really over the whole charging period. I couldn't believe my eyes. Although the kernel should do it's job good, cause most of the CPU times are in lower freqeuncy states, the deep sleep mode was never activated.
Therefore I installed an app called "Wakelock Detector" to check out which apps could cause that. I found out, that S Health had a big amount of wakelocks and also active-time, so the first thing was to disable S Health. After some minutes I checked back, but nevertheless still no deep sleep time in "CPU Spy".
So I searched around and found another one arguing about the wakelocks and that they could be the products of some programming issues concerning WiFi. The should be gone, after turning off WiFi and rebooting yout phone. And it seems that he was right. I waited some time and hooray, "CPU Spy" listed the phone state "Deep Sleep" the first time as an active state and also with the major active-time. So at least that was some step ahead. (I have to remark, that S Health was already unfrozen at this time, so S Health should not be responsible in any way.)
The next step was to reactivate WiFi, leave it on and set the phone on standby. After some time I checked back again the phone showed even more deep sleep time. So that was an improvement. I reactivated everything and waited some time... Deep Sleep all over the time. Can't figure out for now, if it was S Health, WiFi, or anything else that caused the wakelock for sure. At least the reboot helped. I'll check that out on a long-term test, maybe I get some further conclusions.

Categories

Resources