[Q] issues with battery stats showing false info on cm12? - ONE Q&A, Help & Troubleshooting

I seem to be having some issues with my stock battery stats showing false info, have attached some screens of both the android stats and the stats from gsam battery monitor
One plus running cm12 nightly, clean flashed 15/02/15 build and then dirty flashed 19/02/15 build,
My stock stats are showing my screen as using 9% battery with 3 and a half hours screen on time seems stupidly low, i use auto brightness and about 30% brightness),however WhatsApp is showing the same amount of battery drain with only 2mins of app usage. When I look at gsam it shows totally different info.
When looking at these stats it might be worth noting that Spotify and all stream were streaming music to my apple TV for 2-3 hours and only show around 4% usage on battery stats.
Any help would be appreciated, not sure if I need to recalibrate the battery? Iv read that on a few threads while searching for info

Related

[Q] Battery Drain Research

I"m running gummy 0.6.7. I've been meaning to flash something new but I have a nice theme setup (pretty looks are important to me , everything seems to be working normal, etc. Don't have the time to redo backups and stuff right now.
I'm trying to narrow down what is causing excessive battery usage. Even if I don't OC, when in use I lose damn near 1 bar of battery a minute. This morning I was at a 100 - 35 mins later on the way to work I'm at 89. Ridic.
Brightness is auto, facebook auto-updates gone, all i'm syncing is google and an exchange box. CPU Low is at 100mhz, according to CPU Spy it spends most of its time in Deep Sleep. Tried different governors over the past couple days. GPS/Wifi was off this morning. Get TOP/ON idle stats (not TOP/OFF).. In reviewing battery stats, android os likes to be on top but I cannot get any more detailed then that. What processes run under this? I used to have an app called BetterBatteryStats that would break down process usage and report what has held wakelocks, etc but it is now paid.
What are some more detailed methods you guy can suggest to track down battery usage? Just downloaded this battery mix app a few days ago but it doesn't give me the detail I'm looking for. However, based on trending, this morning when I was at 100 it predicted 0% in 5.5 hours.
Have you tried deleting androids battery stats? It could be, especially when you just installed a new ROM that the stored stats are not accurate any more, so I would delete the battery stats, let android rebuild them and then look if the battery drop is still that much (and if it continues till the battery is empty).
ghling said:
Have you tried deleting androids battery stats? It could be, especially when you just installed a new ROM that the stored stats are not accurate any more, so I would delete the battery stats, let android rebuild them and then look if the battery drop is still that much (and if it continues till the battery is empty).
Click to expand...
Click to collapse
so i went ahead and flashed Codename. Charged to 100, did a reset in a calibration app. Put it on charger overnight till it got back to 100. Still draining rather quickly, 10 points between taking it off in the morning and getting to work. Thats about an hour.
I think auto brightness is buggy. Try disabling it and see if problem is solved
kernels ; battery ; ROM ; gov/sched
bedalus said:
I think auto brightness is buggy. Try disabling it and see if problem is solved
kernels ; battery ; ROM ; gov/sched
Click to expand...
Click to collapse
you know.. i kinda had that feeling. it seemed to be too bright. I even went ahead and did the automatic backlight guide that has you set 25 brightness levels and it just made me bootloop. so i'll try that and report back..

Wakelocks

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.

[Q] About Battery Life

Hi,
I have a question regarding battery life of the OPO. I'm still not sure whether I have a defective battery, or some apps drains my battery like crazy (or both?). I hope you can help me with this.
In the first 2 weeks since I got it, I use my OPO for mid to heavy activities (a lot of Whatsapp, Youtube, streaming music, etc). I always start the day with 100% battery and I thought it was normal to see the battery drops to at least 20% at the end of the day. To be honest, I didn't check the battery stats in Settings even once in this time frame, and due to my heavy usage, once again I thought this was normal.
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery. I did some research and found some advice including 1) denying GPservice abilities to "keep awake" and "wake up" via privacy guard (from this thread http://forum.xda-developers.com/oneplus-one/general/guide-google-play-services-battery-t2832525), 2) turn off location, 3) turn off sync, but none of them seems the solution to my problem. Since then, I always check the battery usage and reset it, to see if GPservice still at the top. Sadly it still there. After I reset the stats, go to sleep directly and check it about 1 hour later, GPservice uses 40% - 60% of the battery usage, draining about 6% battery / hour.
With screen on a few minutes, it easily drops to 5th or 6th place with ~7% usage, with screen and main apps I use on the 1st and 2nd place. When I googled about this using Firefox, that's when I start worrying about something else, the battery itself. With wi-fi and low brightness (less than >20% if I convert it from the slide bar), browsing with Firefox decrease the battery 1% in 2-3 minutes, no or low usage drains 1% in about 5-6 minutes. In contrast, charging increase the battery 1% in 1 minute. Is that normal? IDK, usually bad battery increasing faster when charging and decrease significantly when in use.
Please help, especially about the excessive GPservice battery usage. And if it's possible, I prefer non-root solution for it. Thanks and sorry for my bad English.
OPO - stock rom (unrooted XNPH44S)
Google Play Services 6.7.76 (reverted back to 5.0.89 factory version but things pretty much the same)
cliffflip said:
Hi,
I have a question regarding battery life of the OPO. I'm still not sure whether I have a defective battery, or some apps drains my battery like crazy (or both?). I hope you can help me with this.
In the first 2 weeks since I got it, I use my OPO for mid to heavy activities (a lot of Whatsapp, Youtube, streaming music, etc). I always start the day with 100% battery and I thought it was normal to see the battery drops to at least 20% at the end of the day. To be honest, I didn't check the battery stats in Settings even once in this time frame, and due to my heavy usage, once again I thought this was normal.
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery. I did some research and found some advice including 1) denying GPservice abilities to "keep awake" and "wake up" via privacy guard (from this thread http://forum.xda-developers.com/oneplus-one/general/guide-google-play-services-battery-t2832525), 2) turn off location, 3) turn off sync, but none of them seems the solution to my problem. Since then, I always check the battery usage and reset it, to see if GPservice still at the top. Sadly it still there. After I reset the stats, go to sleep directly and check it about 1 hour later, GPservice uses 40% - 60% of the battery usage, draining about 6% battery / hour.
With screen on a few minutes, it easily drops to 5th or 6th place with ~7% usage, with screen and main apps I use on the 1st and 2nd place. When I googled about this using Firefox, that's when I start worrying about something else, the battery itself. With wi-fi and low brightness (less than >20% if I convert it from the slide bar), browsing with Firefox decrease the battery 1% in 2-3 minutes, no or low usage drains 1% in about 5-6 minutes. In contrast, charging increase the battery 1% in 1 minute. Is that normal? IDK, usually bad battery increasing faster when charging and decrease significantly when in use.
Please help, especially about the excessive GPservice battery usage. And if it's possible, I prefer non-root solution for it. Thanks and sorry for my bad English.
OPO - stock rom (unrooted XNPH44S)
Google Play Services 6.7.76 (reverted back to 5.0.89 factory version but things pretty much the same)
Click to expand...
Click to collapse
Definitely sounds like somethings not right, what apps do you have that access or could potentially access your location? If you're still not having any luck, as a last resort you could try a fresh install of CM11S and install your apps one by one to see if you can determine if any are responsible for sucking battery.
Give the below app a try:
https://play.google.com/store/apps/details?id=com.playfulgeeks.gservicefix&hl=en_GB
Install Gsam to see if you can gain any more insight into whats causing battery drain.
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm
cliffflip said:
Hi,
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery.
Click to expand...
Click to collapse
did you try to use this App: http://forum.xda-developers.com/showthread.php?t=1179809
there you can see which app prevents your phone from going to sleep (partial Wakelocks)
gsmyth said:
Definitely sounds like somethings not right, what apps do you have that access or could potentially access your location? If you're still not having any luck, as a last resort you could try a fresh install of CM11S and install your apps one by one to see if you can determine if any are responsible for sucking battery.
Give the below app a try:
https://play.google.com/store/apps/details?id=com.playfulgeeks.gservicefix&hl=en_GB
Install Gsam to see if you can gain any more insight into whats causing battery drain.
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm
Click to expand...
Click to collapse
Maps, Google Fit, Google Now, among other things.
CMIIW but I read somewhere that GServicefix does the same like privacy guard, denying some service to keep awake, wake up, etc.
So I installed Gsam and run it about 1 hour. Interestingly in there, Kernel (Android OS) is on the top the % list with 60% usage (mostly phone in idle/sleep). When I switch sorting to Kernel Wakelocks, it shows event0-798 & event2-798 as the top 2 wakelocks with around 7000 wakelocks. I'll update in few hours, thanks.
drcyber said:
did you try to use this App: http://forum.xda-developers.com/showthread.php?t=1179809
there you can see which app prevents your phone from going to sleep (partial Wakelocks)
Click to expand...
Click to collapse
From what I read on the Play Store description, Kitkat and above requires root?
cliffflip said:
Maps, Google Fit, Google Now, among other things.
So I installed Gsam and run it about 1 hour. Interestingly in there, Kernel (Android OS) is on the top the % list with 60% usage (mostly phone in idle/sleep). When I switch sorting to Kernel Wakelocks, it shows event0-798 & event2-798 as the top 2 wakelocks with around 7000 wakelocks. I'll update in few hours, thanks.
Click to expand...
Click to collapse
Please post screenshot of gsam
Try clear cache+dalvic cache in recovery
Hi, sorry for the late reply.
It seems reboot the phone a few times solves the problem. Battery usage now seems normal when idle, even with location & sync turned on.

Galaxy s6 does not doze - drains 10%/h

Hi
Since several weeks my galaxy s6 has been suffering severe battery issues:
- average drain per hour is 10%
- average screen on time is 2h spread on 12h going from 100% -> 0%
Analysis:
- no real app drain
- phone signal is OK/high
- Google now is off but all the rest is on (data/wifi/Bluetooth/location settings...)
- Gsam reports show that my phone never goes into doze mode... It suffers from really bad standby time
I tried a factory reset, battery calibration, package Disabler etcbut nothing helps.
Sometimes when my battery is nearly dead at around 5%, it jumps to 10-20% when plugging in. It seems that something is keeping the phone awake all the time.
Can anyone help? Images from Gsam are attached.
Kr
Wout
The battery jump is indicative of a dying cell. It might be time to have the battery replaced..
Waltsch said:
Hi
Since several weeks my galaxy s6 has been suffering severe battery issues:
- average drain per hour is 10%
- average screen on time is 2h spread on 12h going from 100% -> 0%
Analysis:
- no real app drain
- phone signal is OK/high
- Google now is off but all the rest is on (data/wifi/Bluetooth/location settings...)
- Gsam reports show that my phone never goes into doze mode... It suffers from really bad standby time
I tried a factory reset, battery calibration, package Disabler etcbut nothing helps.
Sometimes when my battery is nearly dead at around 5%, it jumps to 10-20% when plugging in. It seems that something is keeping the phone awake all the time.
Can anyone help? Images from Gsam are attached.
Kr
Wout
Click to expand...
Click to collapse
Turn off automatic backup and restore in your device settings, worked for me (if you want to use the restore function just back it up manually). I have read somewhere there is an issue with the google backup transport service in 6.0.1. I don't know if the samsung backup has the same effect, I turned it off, just to be sure. Before I got like -3.8% battery decline per hour and now it's like -0.8% per hour.

Question Best Battery Stats app

OneUI built-in Device Care app doesn't show full details of what is draining battery. It fortunately shows the Screen ON Time (SOT) though.
My phone's battery drains badly on standby. It drains anywhere between 1.5% to 2% per hour on standby if I leave all radios ON. If I turn OFF WiFi, Mobile Data, Bluetooth, Location, etc. then the battery drain reduces to 0.5% per hour. There is no unusual drain when I'm using the phone. If I'm continuously using the phone, I can get 6 to 7 hours SOT.
The built-in battery stats doesn't provide full information on what is draining battery, and how much. For example, it doesn't show system functions like Android System, Android OS, Display, Wakelocks, etc. It only shows 3rd party apps installed.
If I add the % consumption of each app shown in the list, it won't even add up to 50% of actual consumption. If you see the attachment, the sum of the individual consumption adds up to about 20% only. My battery is at 59%. So I have no idea about what used the remaining 21% (standby drain).
Assuming that all details are available in the system, is there an app that can simply read this info and show it on screen? I don't want battery 'monitor' apps that run in the background.
I'm interested to know if there is an app that would simply read this information and display it when launched, and won't run in the background when closed.​
Thanks.
Gsam battery monitor, better battery stats or Battery guru. But i think that they all need to keep a background service, which doesn't cause any noticeable battery drain though
TheMystic said:
OneUI built-in Device Care app doesn't show full details of what is draining battery. It fortunately shows the Screen ON Time (SOT) though.
My phone's battery drains badly on standby. It drains anywhere between 1.5% to 2% per hour on standby if I leave all radios ON. If I turn OFF WiFi, Mobile Data, Bluetooth, Location, etc. then the battery drain reduces to 0.5% per hour. There is no unusual drain when I'm using the phone. If I'm continuously using the phone, I can get 6 to 7 hours SOT.
The built-in battery stats doesn't provide full information on what is draining battery, and how much. For example, it doesn't show system functions like Android System, Android OS, Display, Google Play Services, Wakelocks,, etc.
Assuming that all details are available in the system, is there an app that can simply read this info and show it on screen? I don't want battery 'monitor' apps that run in the background.
I'm interested to know if there is an app that would simply read this information and display it when launched, and won't run in the background when closed.​
Thanks.
Click to expand...
Click to collapse
blackhawk_LA said:
i think that they all need to keep a background service,
Click to expand...
Click to collapse
Yes, they do.
blackhawk_LA said:
which doesn't cause any noticeable battery drain though
Click to expand...
Click to collapse
I seriously doubt this. It is just that they don't show up in the stats.
From my experience, there was no difference in idle drain battery usage with and without any of these apps. Checked for some days, not only a few hours.

Categories

Resources