Weird battery stats from GSAM battery monitor App - Samsung Galaxy S8+ Questions & Answers

Hello all!
I've had my S8+ model 955FD for a month now, and I installed GSAM battery monitor app since the beginning. I used the adb commands to enable the "more stats" option. My question is about the graph the app shows. I see the bar associated to DOZE at the same time as the bar associated to ACTIVE. It's like the phone is dozing and at the same time an app is triggering a wakelock, which is kind of confusing. I don't know if it is an app error. Also, the ACTIVE bar is almost filled up all the time. Let me know what you think might be causing this and if it also happens to any of you.

Related

[Q] Help with Tasker

Hey everyone, first I'm not really sure if this belongs in a Tasker forums. Seeing as I use a N5, I figured it could also go here. Anyway, I've been having some problems with Npl wakelocks. I downloaded wakelock terminator with xposed and it seemed to have helped, however something didn't seem right as my battery was draining the same amount as when the wakelocks were happening. The only time I wasn't having the drain was when location was set to device only, which makes sense.
I'm completely new to tasker. I've watched a few tutorials and I've messed around with it a bit but with not much luck. I wanted to do one of two things. Either have location set to battery saver/high accuracy when the screen is on, and have it set to device only when the screen is off. Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time. I feel like this shouldn't be that hard but I messed around with it and got no where. Anyway, what are your guys' opinion about this strategy and would anyone be able to help me with implementing these tasks. Thanks!
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Lokke9191 said:
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Click to expand...
Click to collapse
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
PsychDrummer said:
Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time.
Click to expand...
Click to collapse
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
PsychDrummer said:
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Click to expand...
Click to collapse
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Lokke9191 said:
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
Click to expand...
Click to collapse
What would that do though?
jj14 said:
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
Click to expand...
Click to collapse
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Aerowinder said:
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Click to expand...
Click to collapse
Well, I actually like to use maps and google now. However, I don't actually need the location on when I'm not using either of the two services which is why I wanted to setup tasker.
It'll change them from being system apps to user apps. This has solved nlp wakelocks for many others experiencing the same problems.
PsychDrummer said:
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Click to expand...
Click to collapse
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
jj14 said:
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
Click to expand...
Click to collapse
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
PsychDrummer said:
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
Click to expand...
Click to collapse
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
jj14 said:
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
Click to expand...
Click to collapse
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
PsychDrummer said:
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
Click to expand...
Click to collapse
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
jj14 said:
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
Click to expand...
Click to collapse
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
PsychDrummer said:
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
Click to expand...
Click to collapse
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
jj14 said:
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
Click to expand...
Click to collapse
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
PsychDrummer said:
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
Click to expand...
Click to collapse
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
jj14 said:
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
Click to expand...
Click to collapse
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
PsychDrummer said:
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
Click to expand...
Click to collapse
Not sure why the difference, but regardless, as long as the individual 'fix' works, that's all that matters

"Best" battery saver program?

Been trying to squeeze out some battery life on my S4 running goldfinger kitkat ROM. No matter what I do, I seem to get a bunch of wakelocks, radio/wifi turning on, etc. What I would like is to be able to totally disable everything when the screen is off (with the exception of incoming calls/texts) and then sync when I wake the device up. I'd also like to have a whitelist for apps like slacker/pandora/music. I've tried wakelock detector, greenify, and DS battery saver (these are the ones I've found most useful). Of the three, DS battery saver seems to be the best at shutting everything down, but doesn't have a whitelist feature, and requires a reboot to toggle. Greenify and wakelock detector require you to know which apps are waking your device. This is OK for the big culprits on my device (FB, google play, exchange services), but I still get random wifi/gps/other wakeups. This is likely just the result of having a bunch of apps that want to phone home, even if each of them does it rarely. Again, it would be nice if they could all do it at once. Any solutions?
you can use greenify, it can turn off apps when your phone is off.
Please let me know if you find such app. For now I'm using Greenify, Wakelock Detector and for some time a new Xposed module: Unbounce.
A little more experimenting. Seems that DS battery saver is the best for what I want, which is a sleeping phone except when I'm using it. All the other apps require that I put a certain app to sleep, rather than have everything asleep by default. My phone then gets random wakes, even though there isn't any one single misbehaving app that I can find. DS saver can be turned off temporarily through the notification bar for when I'm using music services in the background without rebooting. Using DS battery saver on "aggressive", I average about 0.6% drop/hour, with 3 minutes awake time/hour. I think that's OK, but not sure if I can do better (like no awake time/hour). I'm wondering if the awake time is just due to cellular traffic. Hmm, maybe I'll see what it looks like in airplane mode.

Crappy battery history information...

Actually running an S6 ROM on an S4. Thought I might get a better response over here though. The new battery history screen (under settings) has been dumbed down for some reason. I can no longer see a graph with screen on time, awake time, phone signal, etc. Is there any way to see this info, or is there an app that mimics the old settings screen?
Use Gsam Battery Monitor or Better Battery Stats if you're looking for more comprehensive information regarding the battery.
Battery Log from Play store.
Sent from my SM-G920F

GSAM app usage zero

Its an odd one was working for a few days then now GSAM ceases to show application battery usage .
I tried placing GSAM app exempt for battery optimization and also even tried putting it inside the never sleeping app list under battery usage menu.
Anything I missed ? Cheers
I'm using GSAM Pro on my N9860 and I have all my app stats showing since I used the ADB command to enable more stats a few days ago. I've disabled battery optimisation altogether for the app. I have not added it to the never sleeping apps because it cannot be added there once optimisation is disabled.
tdodd said:
I'm using GSAM Pro on my N9860 and I have all my app stats showing since I used the ADB command to enable more stats a few days ago. I've disabled battery optimisation altogether for the app. I have not added it to the never sleeping apps because it cannot be added there once optimisation is disabled.
Click to expand...
Click to collapse
I remember having the same issue after some time with my s10 plus also, don't remember how I resolved it. But it appears samsung is using aggressive hibernation methods within their devices OS according to
https://dontkillmyapp.com/
Either way, I deleted app and reinstalled again and added to my never sleeping app list. So far working .

Battery Drain Diagnosing

I have had a battery drain for several weeks now. It isn't to severe but the biggest issue bothering me the most is at night it is draining about 5-6% even with battery saver turned on. It used to be that in normal mode, the battery would only drop 2-3% over night. I do not charge at night.
I am fully updated and I even reset the phone to factory 2 days ago and the issue still persists. Nothing seems to stand out in the battery stats with regards to apps sucking battery %. So I think this is an issue where it is not going into Doze or Deep Doze but I dont know how to determine that.
Any suggestions how to find the problem?
(on android 10)
When you wake up in the morning...
Go into "Settings"
Then "Battery"
Then click the top right three dots
Then select "Battery Usage"
It should show you which apps used the most battery during the night.
JohnC said:
(on android 10)
When you wake up in the morning...
Go into "Settings"
Then "Battery"
Then click the top right three dots
Then select "Battery Usage"
It should show you which apps used the most battery during the night.
Click to expand...
Click to collapse
I have done that. No apps appear to be doing anything unusual. There are no battery hogs showing up. Not even excessive google services usage or anything. That is why I think this may be a situation where it isn't going into doze or deep doze like it used to but I dont know how to check or monitor that. that info doesn't show in battery stats.
I never heard of this doze/deep doze mode - where did you see this?
I ask because I typically get 10% loss overnight with what I thought was very good because the pixel often then calculates I have 2 days of remaining battery life with that stat.
JohnC said:
I never heard of this doze/deep doze mode - where did you see this?
I ask because I typically get 10% loss overnight with what I thought was very good because the pixel often then calculates I have 2 days of remaining battery life with that stat.
Click to expand...
Click to collapse
You can google it as there are tons of articles about it but here is some insight into it from the developer side: https://bignerdranch.com/blog/diving-into-doze-mode-for-developers/
OK, so it says in order to go into deep-doze, the phone:
1) Must not be charging
2) The screen is off
3) The phone is not moving
So, during the night, are all three of these conditions met?
Also, the device will come out of deep-doze if an incoming push notification is received - could one of your apps be receiving push notifications during the night?
Also, "Any process using a foreground service is exempt from Doze Mode effects, which is key for long-running applications"...do you possibly have any apps that have a foreground service?
Have you tried to switch off Bluetooth, it has a huge impact on battery even if not in use.
I've used apps before. Can't remember but gsam might be one...
It's possible to identify apps that are holding wake locks. That's the first place to check for battery drain.
lop1 said:
Have you tried to switch off Bluetooth, it has a huge impact on battery even if not in use.
Click to expand...
Click to collapse
I always keep WiFi, bluetooth, NFC and location off.
a1291762 said:
I've used apps before. Can't remember but gsam might be one...
It's possible to identify apps that are holding wake locks. That's the first place to check for battery drain.
Click to expand...
Click to collapse
all the apps I can find to track wake locks seem to need ROOT. I'd rather not do that as then I lose OTA updates.
After some extreme disabling of user app, system apps, services, etc. I finally got back to 3% battery drop overnight. I'm not sure which one was the culprit yet but i'll start enabling things as I need them and keep monitoring.
I'm having heavy battery drain. I already charged to 100 and less to 30 minutes i lost 10%.
It began since last update on my case.
After you see a big drain, DON'T plug in and...
Go into "Settings"
Then "Battery"
Then click the top right three dots
Then select "Battery Usage"
It should show you which apps are to blame for the drain.
badtlc said:
all the apps I can find to track wake locks seem to need ROOT.
Click to expand...
Click to collapse
Gsam needs permissions but these can be set with USB debugging, no root needed.
So one thing I have learned is that it appears every time I reboot, gsam thinks my wifi is on even though I have it off. If i turn it on and then back off. Gsam now says wifi is off.
So i got through the night at 3% battery drain but now I am realizing that my phone will not go into deep sleep during the day. Any suggestions how to fix that?
According to the details in the link posted earlier, it will never go into deep sleep if the phone is moving.
JohnC said:
According to the details in the link posted earlier, it will never go into deep sleep if the phone is moving.
Click to expand...
Click to collapse
I leave my phone sitting on a desk all day. There has to be some Android services that only operate during the day but i can't dtermine what those might be.
badtlc said:
So i got through the night at 3% battery drain but now I am realizing that my phone will not go into deep sleep during the day. Any suggestions how to fix that?
Click to expand...
Click to collapse
Was gsam able to identify which app was holding a wake lock?
Or maybe triggering frequent wakeups?
Both of those would prevent doze...
Battery Guru is good for chasing drains (with ADBs), add BBS + adbs and you can find anything using them together!
a1291762 said:
Was gsam able to identify which app was holding a wake lock?
Or maybe triggering frequent wakeups?
Both of those would prevent doze...
Click to expand...
Click to collapse
Google play services mostly. There was a large amount from "Adaptive connectiviy" but when I disabled that those went away.

Categories

Resources