GSAM battery monitor problems - Nexus 5 - Android Apps and Games

Hello.
The app has been working flawlessly for some days, then I lost the graps (now it shows text values instead). Then 3 days ago it stopped to count talk time (first position on the list, over screen usage time). I thought I accidentally messed up some settings, but I couldn't find settings for show graphs again.
Regards
Michal

http://forum.xda-developers.com/android/apps-games/attention-post-qa-troubleshooting-t3178095
Thread closed

Related

[Q] Battery info in settings

Could some kind soul please explain a bit more about how the battery info in settings is supposed to work?
Up until an hour or so it was showing a graph detailing battery usage over the last couple of days uptime.. i powered the transformer off for an hour to charge it and see if doing that would reset the graph.. on powering back up, the tablet was full charged with the battery graph showing the corresponding change but still included the previous few days info.. i then came out of the graph page and tried hitting the refresh button in the top right, but that didn't seem to do anything. Coming back to the page a bit later however, the graph has finally ditched the previous history, showing only the last hour or so of usage.. also on the main battery page its still showing 'no usage data available' on the 2nd line is that because its referring to the non existant dock battery?

[Q] Nexus S stock 2.3.4 and how to check keep-awake culprits

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.

[Q] Please Help ! Android System Battery Drain on Nexus 5 after KitKat 4.4.2 update

Hi,
The battery life of my Nexus 5 has taken a dramatic hit since the 4.4.2 update. I think the culprit is Android System but the GSAM battery graph seems to suggest that the culprit is Android OS kernel. My Nexus 5 is on 4.4.2, unrooted, stock ROM and the build no. is KOT49H.
In short, my phone does not seem to have a wakelock issue but I can't verify because 4.4 does not allow wakelock access without root. It sleeps fine at night and in daytime when it is not in use. I only lose around 5% or less overnight with 2x battery turning off the data connection and only turning on data connection once every night. The problem is the Android System which drains at least 17% (sometimes 25%) of battery everyday and routinely sits on top my of battery usage chart with or without me actually using the phone. My usage per charge is typically around 6-7 hours with around 1 hour 45 minutes screen on time. I had extraordinary battery life before the update to 4.4.2 (lasting more than 1 day with over 3 or 4 hours screen on time). Now my battery life is completely shot. The battery graphs attached already represent one of the better days. Some days the Android system will drain at 25% or more. You will note my phone relatively slept fine without draining at night in the first 7 or 8 hours and then the battery drain started to take a nose dive after I woke up. I feel that whenever I start using the phone (with the screen being turned on), the battery drain will occur. My observations are as follows:
1. I use LTE but the reception at my home and work for LTE is not good so the radio jumps between LTE and H+ from time to time however I do not think the radio jumping contributes that much to the drain. The drain stays the same even when I am at a place with good LTE reception. I use wifi at home but i cannot connect to wifi at work (which sadly is another issue). The wifi is always off unless i use it at home. I do NOT have wifi scanning in the settings. I have wifi battery optimization on. I never use bluetooth.
2. My google now is off. My location setting is completely off with no location reporting etc..
3. My Google + auto back up is off. I do not use Facebook, Facebook messenger, Instagram, snapchat etc. I mostly use Feedly, Whatsapp, Gmails and look at stock quotes every day. I seldom take pictures, videos or listen to music.
4. I only have one widget dashclock widget. I have removed feedly and stock quote widgets from the home screen but they don't seem to affect my battery usage that much.
5. I use Automateit but only have a few rules such as setting vibrate on weekdays etc.. I do not have any profiles which are related to GPS or location which i understand would drain battery. I also use Dynamic Notification, Light Flow, Lux, Nova Launcher, Notification Toggle and the memory in general is always below 65% in the background. I also use 2x battery to save battery which is set at switching off data after I turn off the screen and it will only turn data in the background every 10 minutes.
6. I have tried safe mode and 9 out of 10 times the Android system drain remains the same. The only way to lower the Android system drain (albeit temporary) is when I turn off the phone and plug it in for a charge, then turn it on when it is full and still plugged in. After I unplug it, the Android System drain will lower to say 7 or 8 % but it will slowly creep back up to 20% within an hour or so.
7. The CPU usage overlay routinely has 9 + readings on the top when the screen is turned on (but with no app running). I think it means very high CPU usage.
8. I do not think Feedly is causing any problems. I deleted the app and the drain remains. I also do not think GSAM is that useful as pointed out by another member here. It points to one app. You delete that app and then the drain remains it will point to something else.
9. I have been using Greenify (non-root) but it does not seem to help with my battery drain as the drain might be caused by system apps or processes within the OS.
I don't know what else to do and this problem has been troubling me for more than 1 month now. Please help !
Update on 24/2/2014:
I have given up and factory reset my phone. After I reset my phone, the apps were installed via Google Play automatically. I also switched to ART. It was fine initially for at least one day. The apps were there but I did not use or enable most of them as I wanted to transfer all my data and tweaked the settings in one goal. I mostly just used Feedly, Whatsapp and Maps for navigation. Even with Maps and high accuracy GPS on, the Android System would go below 10% even though it would temporarily increase to say above 20% during navigation. This morning, I thought the battery seemed ok so I enabled Lux, Dynamic Notifications, Lightflow, Automateit, Nova Launcher and restore the settings to most of the apps.
The Android System drain came back within 2 hours and hit 25% of the total battery drain. My phone's battery dropped from 100% to 40 % in less than 5 hours and the screen on time was only around 1 hour! I never did any battery intensive actions. The most was turning on the phone to check my battery and whatsapped less than 10 messages back and forth ! Since the drain re-appeared, I have turned off completely the location setting, Google Now, sync for Google Plus, auto-backup for Google Plus. I have removed all widgets and disabled Dynamic Notifications, Nova Launcher, Light Flow, Lux. The drain still remains the same at 23% or more.
This is driving me absolutely crazy and I am sick and tired of spending so much time and energy on sorting out the cause for drain (and to no avail!) I spent a lot more time on trying to fix the phone than really utilizing the phone for my benefit !! I just sent an email to the Google tech support and hope they will help instead of sending me generic self-help sheet. Thanks all for listening and trying to help. I am just really disappointed with Google this time.
Use bbs to get wakelock info.
Feedly has got to go too
Sent from my Nexus 5 using Tapatalk
rootSU said:
Use bbs to get wakelock info.
Feedly has got to go too
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for your reply. My N5 is not rooted so I do not have access to wakelock stats anymore.
I have removed Feedly but the android system drain persists.
Not a lot that can be done without knowing the cause. Consider factory reset?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Not a lot that can be done without knowing the cause. Consider factory reset?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I am hoping I don have to resort to factory reset and can wait for the 4.4.3 update but I guess my patience is running out.
Thanks for your help.
My missus' LG-P880 has exactly the same problem. Just started happening one day. It seems to be wakelock locator alarms according to bbs but there doesn't appear to be any reason for it. Its been driving me mad too. Luckily tho she's rooted so using app opps i disabled Google services location and it's kinda helped
Sent from my Nexus 5 using Tapatalk
Did you try another kernel ? When I changed to franco kernel, my battery life is better.
having weak LTE signal kills the battery but it should not be this bad.
Maybe you should try a factory reset and see if the problem still persist, if not then you have an rogue app somewhere.
You can use the process of elimination.
Start with disabling Dynamic notifications and Light flow as those have high potential for battery drain.
Sent from my Nexus 5 using Tapatalk
Elias_grodin said:
I am hoping I don have to resort to factory reset and can wait for the 4.4.3 update but I guess my patience is running out.
Thanks for your help.
Click to expand...
Click to collapse
Restart your phone in safe mode, and see the battery drainage...maybe it can help you.
It seems good for me
Sent from my Nexus 5 using Tapatalk
I had this same problem the other night. Get app ops starter from the play store. In there turn location off in Google play services and android system. Note, this may impact other apps. I don't use any that I need location for so it works for me.
Sent from my Nexus 5
I had a similar issue as well. For me I turned off a couple things and it really helped:
1. Turned off Cerberus, I believe checking location too often or incorrectly or something.
2. Turned off Account sync for Play Newstand. Noticed when a sync would occur, it would hang on Newstand for much too long which I think was waking device and keeping device awake during it's long syncs. Everything else would only take a min or two total.
3. Set G+ photo sync to only sync when on wifi and charging.
4. Removed Yahoo Weather app. Noticed yahoo weather app staying alive a lot too.
5. Removed Whatsapp. Probably unnecessary really, but any of those messaging/weather/location apps that I don't use often (if ever) I removed to make sure they weren't checking location in the background.
So far, I'm at 78% battery today when I would have been at around 30-40% usually, so that combo has made a huge difference.
It's going to be different for everyone I think, but basically just make sure you don't have any excess apps checking location in the background. And at least for me there seems to be something wrong with Play Newsstand sync hanging for long periods of time.
Yea... Even i had the same issues... Latest version killes ma deep sleep mode nd also some of a rules disappeared....
I was having similar issues and was able to narrow it down to syncing Google Services...
I found that often times Google Drive would get hung up when syncing in the background and chew up my battery.
What Google Services do you have set to auto-sync? I would narrow it down to the ones you only really need to have synced in the background and have the others sync up for you when you open them.
Also, in regards to your LTE/H+ signal, have you tried to flash another radio to see if there is any improvement? A poor signal can have a pretty significant impact on battery life as well.
Lastly, as mentioned by another user, Better Battery Stats, though requiring root, will make it a lot easier to track down the culprit of the issue if it indeed a rogue app somewhere.
Try different keyboard. I've a suspicion that latest Google Keyboard is the culprit.
I was having some unexplainable with BBS (no locks, etc.) battery drain. Which can only be resolved (though temporarily) with reboot.
So, I installed alternative keyboard (Swype in my case) and using it. So far, second day I don't have battery drain.
Update
Please refer to the OP for update. Thanks all.
battery after reset
After a second factory reset, I did not install a lot of the apps which I suspect have something to do with my drain - including Swype, Dynamic Notifications, Nova Launcher, LightFlow, Task Manager, 2x battery, Lux, Notification Toggle, Dash Clock, Automateit. I have also set my location to device only with no location history and history. I have also disabled Google Now. I have not restored my photos, music and videos to the phone yet. I have disabled sync for Google Plus, Google Drive etc.. I have also disabled auto back up for Google Plus. I am on ART.
The battery life (with around 25 % left) was around 6 hours 30 minutes or a bit more but with close to 2 hours 40 minutes screen on time. The screen was the biggest draw. Android system comes in second with around 13%. This is obviously better than before where I managed to squeeze maybe a hour or 30 minutes more but with 2x battery turned on in the background. I mostly used the phone for battery checking, whatsapp, Feedly, web surfing. I played games for around 20 minutes. I was not on wifi most of the time. Is this battery performance normal?
Thanks in advance.
Replacement offer by Google
Elias_grodin said:
After a second factory reset, I did not install a lot of the apps which I suspect have something to do with my drain - including Swype, Dynamic Notifications, Nova Launcher, LightFlow, Task Manager, 2x battery, Lux, Notification Toggle, Dash Clock, Automateit. I have also set my location to device only with no location history and history. I have also disabled Google Now. I have not restored my photos, music and videos to the phone yet. I have disabled sync for Google Plus, Google Drive etc.. I have also disabled auto back up for Google Plus. I am on ART.
The battery life (with around 25 % left) was around 6 hours 30 minutes or a bit more but with close to 2 hours 40 minutes screen on time. The screen was the biggest draw. Android system comes in second with around 13%. This is obviously better than before where I managed to squeeze maybe a hour or 30 minutes more but with 2x battery turned on in the background. I mostly used the phone for battery checking, whatsapp, Feedly, web surfing. I played games for around 20 minutes. I was not on wifi most of the time. Is this battery performance normal?
Thanks in advance.
Click to expand...
Click to collapse
I have reset the phone three times. After the third attempt, the battery drain for Android System would go back up to 20% plus. By the test of elimination, I thought I narrowed down the possible culprit to Light Flow and Dynamic Notifications. I uninstalled both of them but the battery drain remained 20% plus.
Google was willing to replace my device. I asked them whether the battery drain is likely a hardware or a software issue or a combination of both. They said (to my surprise) it is hardware issue. It seems they have come across quite a number of similar cases. I always thought it was a bug within 4.4.2 or in the google apps such as Google Play Services etc. and could be fixed by a patch or something. The phone also means a lot to me as it was a gift from my gf. I just don't want to go through the hassle of replacing the device if it is a software problem but I guess I am running out of choices unless I decide to wait for the update. What do you guys think?
It's definitely not a hardware issue. If you Google it there's threads all over the place with all different makes and models of phones having the same problem and no one can figure out why, apart from it definitely seems something to do with Google services (GmsCore.apk)
Your best option is to root your phone and use app ops and turn location access off for every app that doesn't need it. (pretty much everything apart from maps and weather apps)
Sent from my Nexus 5 using Tapatalk

[solved] GSAM battery monitor chart problems - Nexus 5

EDIT: Problem solved. Uninstalling GSAM root companion (non - rooted phone) did the trick.
Hello.
The app has been working flawlessly for some days, then I lost the graphs (now it shows only text values instead + graph picture "for development purposes only"). Then 3 days ago it stopped to count talk time (first position on the list, over screen usage time). I thought I accidentally messed up some settings, but I couldn't find settings for show graphs again.
Regards
Michal
In Charts menu hit the 3dot menu then select Battery History Chart instead of Power vs Percent Chart.
Hey,
it didn't change anything (even the data stays the same for both options). Before the problem existed, both Battery History Chart and Power vs Percent Chart showed two different charts. Here is the screenshot address. I can't post links, I don't have enough posts.
s8.postimg.org/jn690todh/Screenshot_2015_09_02_11_30_08.png
@dr_Fell_xda actually I have the same thing but I can switch between both options.
I have had graps like Yours for some days after install. Is there a possibility to wipe GSAM settings? I reinstalled it but it didn't work...
dr_Fell_xda said:
I have had graps like Yours for some days after install. Is there a possibility to wipe GSAM settings? I reinstalled it but it didn't work...
Click to expand...
Click to collapse
Yep. Go to (system) Settings > Apps > Gsam > Clear data.
Wiping GSAM settings didn't do anything too. Uninstalling GSAM root companion (non - rooted phone) did the trick Thanks!

Deep sleep apps ( manually disabled)still waking up .

Normally when I put apps manually in deep sleep they don't do anything , run , wake up or use background data, send notifications , more so when their mobile data is restricted as well as their background activity. The highlighted even show as "manually disabled " within the apps menu. Yet they are showing up usage in background process within GSAM monitor.
Any ideas lads?
Edit. I checked their status under Dev menu, they were set to working _set , changed them to Frequent and will monitor.
It's a bloody joke , that deep sleep or sleeping apps setting under device care.
Just checked a few of my apps that are set to deep sleep aka manually disabled. Yet within Dev menu, their status is Active under standby apps.
Here's one example.
I checked mine and the apps are not "disabled" when I add them to deep sleep. I can still open the app, which would be impossible if the app was disabled.
I wouldn't trust the dev option as an indication that the app isn't sleeping (aka running in the background)... I have apps listed in mine that I haven't used yet, and there has been zero activity in the apps at all (battery use or otherwise).
Double check the battery use of the app and see if it is running in the background.
**Never mind, just woke up here and saw your first post edit. Hopefully the issue gets resolved for ya
scottusa2008 said:
I checked mine and the apps are not "disabled" when I add them to deep sleep. I can still open the app, which would be impossible if the app was disabled.
I wouldn't trust the dev option as an indication that the app isn't sleeping (aka running in the background)... I have apps listed in mine that I haven't used yet, and there has been zero activity in the apps at all (battery use or otherwise).
Double check the battery use of the app and see if it is running in the background.
**Never mind, just woke up here and saw your first post edit. Hopefully the issue gets resolved for ya
Click to expand...
Click to collapse
Yeah you're right. The dev option status for those apps running or not appears to be variable ,.changing them changes them back to whatever they want to be i believe.
I was just shocked ( not really ) I had those highlighted two or three apps in deep sleep status via the battery care menu, yet when my device was left sleeping and untouched for 2 hours I opened GSAM and it showed those very same apps as being used in the background as the top five usage lol
I use Nap Time by Francisco Franco to put the phone in a deep doze. Been using it on all my phones for several years now. Just need a couple adb commands for it to work on an unrooted phone.
Naptime - the real battery sav - Apps on Google Play
Makes your device sleep faster to save precious battery life when you need it
play.google.com
ggrant3876 said:
I use Nap Time by Francisco Franco to put the phone in a deep doze. Been using it on all my phones for several years now. Just need a couple adb commands for it to work on an unrooted phone.
Naptime - the real battery sav - Apps on Google Play
Makes your device sleep faster to save precious battery life when you need it
play.google.com
Click to expand...
Click to collapse
I'm good with 0.5 to 0.4% usage per hour in standby, however I might look into that in the near future if it may improve them. Current issue on hand if at all any might be SOT. I'm currently averaging similar figures to my last Samsung device which was an S10+
I guage all my devices battery performance by how much screen on time I can attain for around 40% of battery consumption. Currently averaging 4.5 hours. Was hoping for 6 plus but they might be over optimistic considering the 4370mAh battery.
ggrant3876 said:
I use Nap Time by Francisco Franco to put the phone in a deep doze. Been using it on all my phones for several years now. Just need a couple adb commands for it to work on an unrooted phone.
Naptime - the real battery sav - Apps on Google Play
Makes your device sleep faster to save precious battery life when you need it
play.google.com
Click to expand...
Click to collapse
ive used naptime before on other phones, will it interfere with notifications on oneui?
Doesn't for me.
Limeybastard said:
I'm good with 0.5 to 0.4% usage per hour in standby, however I might look into that in the near future if it may improve them. Current issue on hand if at all any might be SOT. I'm currently averaging similar figures to my last Samsung device which was an S10+
I guage all my devices battery performance by how much screen on time I can attain for around 40% of battery consumption. Currently averaging 4.5 hours. Was hoping for 6 plus but they might be over optimistic considering the 4370mAh battery.
Click to expand...
Click to collapse
With Nap Time I only lose 3-4% in a 12 hour overnight. I also have a lot oy Samsung bloat disabled too.

Categories

Resources