nothing out of the ordinary running in watchdog or running services.. when i go to bed at night with full battery i wake up and its around 50% with NO USE.... i look at battery history and it says the phone has been awake 100% of the time,,, back ground data is off, auto sync off, already deleted facebook and twitter and picasa, location and gps off, cant understand why phone is awake 100% of the time, how do i find out what is causing this? its really annoying ... and yes iv searched
Two things. One have your tried wipeing I know it sucks but that might be your only solution. Two when I read the title of the article all I could think of is Samuel Jackson reads 'Go the **** to Sleep'
Sent from my HTC Sensation 4G using Tapatalk
lol ...ya i wiped and formatted system, cache, dalvik before i installed melvin's rooted stock 2.3.4...its weird because if i restart the phone it shows that it is sleeping now intermittently but i did the same thing yesterday and all of a sudden it started having 100% awake time again...
Install BetterBatteryStats (https://market.android.com/details?id=com.asksven.betterbatterystats). Created by a fellow XDA-member. It shows which app keeps your phone awake.
thank you for pointing me to this app, its great... it says that about 90% of the awake time is CSPUSH (com.htc.cs.HTC Sense), but the count is 25...so how do i interpret this since its not an app i can uninstall? it also tells me that alarm manager's count is 2044 but only .1% of wake time, why is that count so high but so low on the % awake time?
ok so iv got cspush 8 hrs count :25 90%, activity manager 2m count:548 .4%, alarm manager 33s count: 2099 .1%, checkin service 30 s count :419 .1%, RILJ (dialer) 27s count:766 .1%, sleep_broadcast 18s count: 761 .1%, *vibrator* (android system) 11s count:1130 0%, SCREEN_FROZEN 8s count: 771 0%, activity manager-sleep 1s count:2156 0%... these are the ones that seem to have the highest numbers for percent or count in BetterBatteryStats, can someone help me determine whats causing the solid line for awake on my battery stats while im sleeping please?
Have you connected your phone to htcsense.com and/or HTC Watch? Try to remove that or those account(s). Both services are known to drain battery.
Related
Hey guys,
N00b here.
I've read the n00b guide and also searched around in the forum. I did find a thread similar to mine however I couldn't really get any useful info out of it and maybe since then new tools are available to help me track my problem, so I post my question.
So... on to it...
My Nexus S is suddenly having high keep-awake times. About phone tells me a battery usage of 32% android system, followed by 21% Display. Android system has a keep awake time of 3h 51m and a CPU total of 7m 52s. All this over the course of 19 hours. I don't have a screenshot with me but it's clear that the phone is awake a lot when the screen is off.
Automatic updates are off.
Some days ago everything was fine. My google acount is only synching contacts and calendar and even that is turned off when I'm not at home. Even so, I saw a high usage of the keep-awake bar even when the screen was off.
I've installed some weather widgets and battery info widgets and the update cycles of weather applications are around 45 mins so I wouldn't see a reason for such a high period of keep-awake cycles.
Anyway, each phone is a phone, is there an application that can tell you what is keeping the phone awake ? I have installed Watchdog lite but it doesn't show anything abnormal. I've installed Spare Parts Plus but it can't show me the battery usage history because apparently stock 2.3.4 Gingerbread doesn't support it.
So now I'm stick with trying to disabled notifications on one app, remove its widget and see if it helps. If it doesn't.. go to the next. This is quite tedious work really.
Still the battery life is ok I guess... 50% after 19 hours however I haven't played around with it much but I would be happier to have a low keep-awake cycle for the Android System like I had some days ago.. makes me feel like everything is fine
Thanks for any hints guys!
Having the same issue as well.. I have my widgets and such to only check every 4-6 hours, but the awake time in the battery stats is nearly on all the time.
Keep awake time is 4 hours and 22 min, out of 12 hours of battery. I'm left with 42 % battery with only 1 hr 15 min on screen time (texts and such, no games).
Hmmm a memory drain of 60% in 1 hour is quite a bit heavy. I would suggest you to download Watchdog lite from the app store and use it's real time CPU analyzer to try and see what's consuming the most.
Once I had weatherbug going rogue. But then it showed up in the battery usage list with a high CPU usage and clicking on the item I could see a high awake time so I uninstalled it.
At the moment I've removed some of my widgets and so far it seems to be OK. However tonight I had some weird awake times again. I uninstalled Battery Info widget from the phone and I'll see if it all goes well tonight. Then I'll start to activate the other widgets I had deactivated before to see what happens.
Also I downloaded aCatLog from the app store. Pretty interesting tool... you can see what's going on in the logs. I see a few Java exceptions every now and then.. never a good sign as they might not be handled properly by the application code that threw them. I see evernote synch problems, a data traffic counter throwing exceptions and K-9 to have problems with idle connection reset by peer. And I often see the garbage collector working. But I assume all this is normal. Switching to the event log it's too much information to absorve. Nevertheless I haven't seen in any of those logs an explicit request or grant of a system wake lock.
mindwalkr said:
My Nexus S is suddenly having high keep-awake times.
Click to expand...
Click to collapse
Did you recently enable Latitude, by any chance?
Try top -m 5 -n 1 in terminal
fallenguru said:
Did you recently enable Latitude, by any chance?
Click to expand...
Click to collapse
No Latitude enabled
snandlal said:
Try top -m 5 -n 1 in terminal
Click to expand...
Click to collapse
Do I need to download Terminal Emulator from the market to do this ? Or do I need to download the Android SDK and connect to the device via USB ? I need to check out to do this, never done it before and this is my first android phone.. only a week old
Again this morning my awake time was on for quite a bit (I guess 1 hour). I got an extract of the main log...
Some things are curious, the following occurs more or less each half hour. I am signed out of gtalk why was the service trying to keep alive ?
06-08 06:10:03.656 W/GTalkService( 189): [GTalkConnection.18] doConnect: caught XMPPError connecting to mtalk.google.com:5228.: (502)
06-08 06:10:03.656 W/GTalkService( 189): -- caused by: java.net.SocketTimeoutException: Connection timed out
06-08 06:10:03.660 D/GTalkService( 189): [GTalkConnection.18] connectionClosed: connId=0, error=CONNECTION FAILED
This is also giving me trouble, I might uninstall my Traffic Counter app
06-08 06:42:30.710 W/System.err( 4015): java.io.FileNotFoundException: /data/data/com.carl.trafficcounter/app_pref_bytes_last/0_0_bytes_last (No such file or directory)
Evernote seems to have some issues as well sometimes
06-08 06:44:36.371 I/com.evernote.android.edam.TAndroidHttpClient( 5320): 25: Response received in: 126718ms
06-08 06:44:36.398 E/com.evernote.client.SyncService( 5320): Sync failed
06-08 06:44:36.398 E/com.evernote.client.SyncService( 5320): org.apache.thrift.transport.TTransportException: java.net.UnknownHostException: www.evernote.com
And that's all I could see. Everything else seems to be garbage collection WiFi activities and what not..
It seems that I've narrowed down Go Weather as what's making my Android System stay awake. I couldn't see anything really useful on logcat about this but empiric observations seem to confirm it.
If I remove the Go Weather widget and turn off it's background updates (hourly), then restart the phone... I see the Android System incrementing some 3-4 mins keep awake time per hour. If I set the widget again and turn on Go Weather's background updates, after an hour the Android System keep awake time goes up like 15-20 mins or so. If at this point I remove the Go Weather widget and turn off it's background updates, the Android System keep awake will still go up at the same rate as if the Widget was there. If I restart the phone without the widget, then the Android System keep awake seems to increase back to regular 3-4 mins per hour.
The funny thing is that according to Permission Dog, Go Weather doesn't even use the WAKE permission so I would rule it out as what was keeping Android System awake.
Android System was driving me crazy too. I figured out that when my WiFi was enabled, it would continually keep the phone awake when the screen was off. So I just toggle the wifi off when I'm not using it, and android system behaves now.
I'm curious as to what changed though, because when I was using stock 2.3.4 and CM7.0.3 I would leave wifi on all day, and android system didn't cause any battery issues.
Any ideas on managing the wakelocks on Android and specifically on the Infinity?
I've checked the option of switching off WiFi with screen-off, but in my battery usage stats I still see that over 10% of battery is consumed by Google Services with 672 wake locks & device waked 77 times (WiFi drain itself is 13,5%, so quite OK). This is what GSam Battery Monitor shows. Android stock battery management (in Settings) shows 51% drain by Google Services and 26% by WiFi (but I believe these stats are wrong most of the time or just measure a different thing, as they show tablet inactive with 2% bar and it has been inactive most of the time actually).
I have google auto-sync on and I need it, but I still think this is too high a number. I don't get 672 e-mails daily, so these shouldn't be PUSH notifications etc.
I'm not sure if I'm the only one seeing these high numbers there?
Have you tried CPUspy for finding out how much time in deep sleep you have?
Better Battery Stats is also a needed tool to find more about wakelocks
Sent from my GT-N7000 using xda app-developers app
Yes, I'm looking at it from time to time, but thanks for this. I had some issues when I started this thread, after wipe and re-flashing new firmware it seems OK in the stats: Deep Sleep 44%, 102MHZ 16%, 1500MHz 24% (running on balanced mode, interactive governor).
I'm still curious to get to know how to manage wakelocks under Android from (low) system level however.
I have a Mi2S and I'm running the latest stock ROM 4.4.23.
Ever since the 4.4.11 update I've had poor idle battery life.
Before that when I look at my battery usage, as long as I have good signal and the screen is off, the battery level graph is flat.
Now, almost always when my phone is idle, no matter what there is some heavy drain, it was approximately 25% over 12 hours.
I've tried all the MI2S updates since then and they are all having this issue. I have not installed any new apps or changed anything on my current ones.
Attached are some wakelock detector screenshots.
Sometimes 小米服務 has many wake alerts, but sometimes it does not. Weather app is disabled, and autosync is disabled too. Occasionally 小米服務 does not have many wake alerts but that doesn't seem to reduce idle power draw, and I think it had this many wakes before as well.
Also the 3h wakelock app is the music player; the idle drain happened when the music player was off.
Thanks for reading.
Bump...
So I spent a night in airplane mode, and voila! 3% drain over about 12 hours!
I'm still trying to figure out exactly what it is, but whenever I get the chance to I'm going to spend another night in airplane mode with wifi on.
Bump...
There is a nice little utility app called power tutor, which shows you exactly which app drains your device. Maybe the problem isn't rom related...
You can find it on the play store.
Can someone help me to investigate the log file of BetterBatteryStats?
In these days I barely use my phone, and I also noticed this behaviour before, so today I started to better investigate: today I just used 1 minute of wifi: I don't have the data connection on my SIM card: i disabled data - I only use wifi for internet - and I just make one call, I also switched to 2G since I know it use less battery.
Brief summary (BBS full logfile at the end of the message):
In 7 h 34 m I lost 5% of battery (89% to 84%) [0,7%/h]
Deep Sleep (): 7 h 18 m 33 s 96,4%
Awake (Screen Off) (): 1 m 29 s 0,3%
Screen On (): 14 m 44 s 3,2%
Phone On (): 2 m 1 s 0,4%
Wifi On (): 1 m 32 s 0,3%
Wifi Running (): 1 m 31 s 0,3%
Doze Interactive Time (): 14 m 42 s 3,2%
Sync (): 9 s 0,0%
Screen dark (): 14 m 44 s 3,2%
When I look in background apps there are just few apps: the most relevant are Root call blocker, ACalendar, Google Keyboard and Automate; for the most of the time I don't have any Google Service running in background, in part because I greenified Google Play Service and the App Google (which I just manually run only when I need) and also because, using "Disable Services" app, I disabled some Google Play Service elements. Looking at the dump file of BBS, my phone correctly goes in Deep Sleep mode. I think is natural and unavoidable to lose a little bit of battery when the phone is ON, but losing 5% in seven hours just by doing almost nothing, seems little bit strange, am I right? Or is just a paranoia?
However, the following is my BetterBatteryStats log file:
http://pastebin.com/qY9sd9xU
There is something strange?
If needed I can provide some other logfile or screenshots.
Thank you.
Mister_Dave said:
Can someone help me to investigate the log file of BetterBatteryStats?
In these days I barely use my phone, and I also noticed this behaviour before, so today I started to better investigate: today I just used 1 minute of wifi: I don't have the data connection on my SIM card: i disabled data - I only use wifi for internet - and I just make one call, I also switched to 2G since I know it use less battery.
Brief summary (BBS full logfile at the end of the message):
In 7 h 34 m I lost 5% of battery (89% to 84%) [0,7%/h]
Deep Sleep (): 7 h 18 m 33 s 96,4%
Awake (Screen Off) (): 1 m 29 s 0,3%
Screen On (): 14 m 44 s 3,2%
Phone On (): 2 m 1 s 0,4%
Wifi On (): 1 m 32 s 0,3%
Wifi Running (): 1 m 31 s 0,3%
Doze Interactive Time (): 14 m 42 s 3,2%
Sync (): 9 s 0,0%
Screen dark (): 14 m 44 s 3,2%
When I look in background apps there are just few apps: the most relevant are Root call blocker, ACalendar, Google Keyboard and Automate; for the most of the time I don't have any Google Service running in background, in part because I greenified Google Play Service and the App Google (which I just manually run only when I need) and also because, using "Disable Services" app, I disabled some Google Play Service elements. Looking at the dump file of BBS, my phone correctly goes in Deep Sleep mode. I think is natural and unavoidable to lose a little bit of battery when the phone is ON, but losing 5% in seven hours just by doing almost nothing, seems little bit strange, am I right? Or is just a paranoia?
However, the following is my BetterBatteryStats log file:
http://pastebin.com/qY9sd9xU
There is something strange?
If needed I can provide some other logfile or screenshots.
Thank you.
Click to expand...
Click to collapse
5% in seven hours, yeah, you're being to critical. Lollipop and newer has more background processes.
If anything your deep sleep isn't working correctly, of everything you listed, it is showing that it used the majority(almost all) of the energy expended from battery. That may not be accurate though.
Droidriven said:
If anything your deep sleep isn't working correctly, of everything you listed, it is showing that it used the majority(almost all) of the energy expended from battery. That may not be accurate though.
Click to expand...
Click to collapse
Well, in facts I can't figure out what, during the deep sleep, is causing this battery drain.
Few hours ago (22:16 PM) I had 84% of available battery juice; now after about three hours (I received one call and I used whatsapp for a pair of minutes - under wifi -) I have the battery at 77%: it means -7% in three hours.
I have almost zero wakeups (checked with WakeLocks detector):
In BBS, when I look to Kernel WakeLock, the most relevant is PowerManagerService.Display which seems ok:
In BBS, under Partial WakeLocks, instead, everything, again, is almost to zero:
Alarms:
"Android" is the most present alarm.
Using "Disable Services", I disabled "GeoFenceHardwareService" and "LocalTransportService" which are part of Android OS.
I am surely critical, but when the phone is in deep sleep, I expect that the battery drain would be lower than I see on my phone. Also because I have a very low usage of my phone, and I optimized the system with Greenify, "Disable Services" and also with a Startup Manager, furthermore by uninstalling a lot of apps (mainly Google Apps) using Titanium Backup.
Since I not have relevant WakeLocks, maybe is Lollipop itself which is draining my battery during the deep sleep? I noticed that If i put my phone in plane mode and i activate the power saving mode, also after 8 hours I find my battery percentage as the same percentage.
Mister_Dave said:
Well, in facts I can't figure out what, during the deep sleep, is causing this battery drain.
Few hours ago (22:16 PM) I had 84% of available battery juice; now after about three hours (I received one call and I used whatsapp for a pair of minutes - under wifi -) I have the battery at 77%: it means -7% in three hours.
I have almost zero wakeups (checked with WakeLocks detector):
In BBS, when I look to Kernel WakeLock, the most relevant is PowerManagerService.Display which seems ok:
In BBS, under Partial WakeLocks, instead, everything, again, is almost to zero:
Alarms:
"Android" is the most present alarm.
Using "Disable Services", I disabled "GeoFenceHardwareService" and "LocalTransportService" which are part of Android OS.
I am surely critical, but when the phone is in deep sleep, I expect that the battery drain would be lower than I see on my phone. Also because I have a very low usage of my phone, and I optimized the system with Greenify, "Disable Services" and also with a Startup Manager, furthermore by uninstalling a lot of apps (mainly Google Apps) using Titanium Backup.
Since I not have relevant WakeLocks, maybe is Lollipop itself which is draining my battery during the deep sleep? I noticed that If i put my phone in plane mode and i activate the power saving mode, also after 8 hours I find my battery percentage as the same percentage.
Click to expand...
Click to collapse
OK, apps like WhatsApp, Kik, Snapchat, FB Messenger, FB are very demanding and constantly running apps, they are constantly scanning network for updates to notifications and feeds, probably even during deep sleep. Also, Google Play Services is a major battery hog, there is an update service in Google Play Services that can be disabled with Disable Service app.
There are some kind of processes running somewhere, obviously network dependent because it doesn't do this when in airplane mode. Something is constantly "talking" back and forth "saying" and "hearing" something.
Droidriven said:
OK, apps like WhatsApp, Kik, Snapchat, FB Messenger, FB are very demanding and constantly running apps, they are constantly scanning network for updates to notifications and feeds, probably even during deep sleep.
Click to expand...
Click to collapse
I only use whatsapp, and as I stated, I completely disabled the data connection on my phone, because on my SIM card, with my provider ,I don't have subscribed any option for data connection: so all my apps on my phone are free to sync and check only when wifi is on, and i barely keep the wifi on, as you can see in my screenshots (on 12 hours of total usage, the wifi was on only about for 15 mins)
Droidriven said:
Also, Google Play Services is a major battery hog, there is an update service in Google Play Services that can be disabled with Disable Service app.
Click to expand...
Click to collapse
Google Play Services is almost inactive on my phone, as you can see again from my screenshots, and using "Disable Services" i disabled almost everything from Google Play Services see: http://funkyimg.com/i/2hzSC.png
I guess that at this point could be an issue with the radio, although I have a full signal (I only go with 2G)
I've had this phone for a few days now and I notice some mean battery drain that happens from time to time. I dumped a Bug Report via developer options, and used Google's Battery Historian after leaving my phone unplugged and idle overnight after a full charge and reboot. The tool seems to show that the following kernel wakeup reason seems to be the problem and holding the phone awake for over 1.5 hours:
Code:
Ranking Name Duration/Hr Count/Hr Total Duration Total Count
0 Abort:Wakeup IRQ -1111803216 (null) pending 10m8s737ms 779.87 1h34m13.62s 7243
The only thing that looks remotely relevant is that on the tool WiFi signal strength became weaker when the above wakeup events started.
Has anyone else had similar issues with random battery drains like this and/or happen to know any workarounds?
Mine seems like it is always awake. Android OS has been keeping it awake for 8-9 while I'm at work.
I tried setting wifi to stay on when sleeping when plugged in, after a full idle overnight, I used my phone in the morning and the same issue came up. The ID above was different, but generally the same problem (IRQ with no description pending). Again, it looks to be wifi related based on the battery stats in Historian. I've rebooted, charged up and turned off wifi to see if the problem goes away.
ru_ready said:
Mine seems like it is always awake. Android OS has been keeping it awake for 8-9 while I'm at work.
Click to expand...
Click to collapse
You might want to try enabling developer options and getting a bugreport generated (which has battery stats), and then visualizing it in Google's Battery Historian to see if it is the same problem. Kind of convoluted, I know, but without root, I don't know of any better way to analyze kernel wakelocks (it isn't a partial wakelock issue on my device).
Last night I left my phone idle with wifi off and WLAN Scanning and Bluetooth Scanning off under Location Settings. The battery ran down only 2% over 9 hours and the Wakeup IRQ pending problem did not keep the phone awake!
I am going to try turning wifi back on today but keep the scanning off and see if that keeps this problem at bay. If not, I may use Tasker to force wifi off when the screen is not on and not plugged in.
The wakelocks seem to happen randomly no matter what my wifi settings are. Though I do think it is related to location settings trying to use wifi scanning.
I give up, there is no reason why a phone I just bought should be like this.
Maybe there are some apk wake up the system
@kumodog Maybe there are some apk wake up the system, you can reboot the system and kill all of application programs when you test it in night with wifi on.
After test, you can also use : "adb dumpsys alarm" in command line to find Top Alarms. it will tell you which alarm make system wakeup.