yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] darth.revan:
Horrible batter life on rooted i9100

Hi, I'm new on this forum. I've been noticing bad battery life on my phone for quite a while now. First I attributed the problem to an old battery, and when I recently bought a new stock battery, the problem persists. I'm rooted and on PACman 22.2 rom with dorimanx 9.25.

I've tried a lot of roms and siyah kernel, but nothing seems to fix this problem. Nothing shows up in the battery section of the settings. I don't see any major wakelocks and my phone is going into deep sleep exactly as it should. My battery drains 10% per hour minimum, no matter which mode it is in, airplane, data off, data on. There is nothing I can do to stop or slow down this drain. And there is absolutely nothing I can attribute this drain to. I've tried factory reset, and even when there are no apps installed, the drain remains intact. Another problem is that my wifi doesn't work. It can't be switched on at all. I can live with it, so I always keep it off. I hope that has nothing to do with the battery drain.

I've attached the BBS dump file which I recorded last night, with data off. Battery was draining at about 6% per hour, which also is unusually high for a brand new battery, with no apps running. Please help me find out the culprit.
[BetterBatteryStats] SysAdmNj:
I'm using an 32gb at&t samsung galaxy s4 running cm10.1 and kt kernel. My issue is I'm feeling the phone get hot quick even when the cpu governor is conservative, and of course battery drain. Will this app help me get to the bottom of the app/apps that may be causing this. I do restore 90 apps using TB when ever I flash a new rom. I'm ready to do an app cleanup but need to know which apps are the culprits here so before I buy the app I'd like to know if it would help my issues. Also, what to look for in the app to find the culprit apps. Thanks.
[BetterBatteryStats] Casanoaa:
Install bbs enable alarms and network.

Provide an idle log. Unplug and leave phone 4 hours and dump a file.

Then we can talk about your wakelock s
[BetterBatteryStats] SysAdmNj:
Would you mind telling me how to enable alarm and network?
[BetterBatteryStats] o0boiboi0o:
First of all, ur phone must be rooted.

Then, under BBS, go Setting<Advanced (scroll to the bottom)<Tick Root Features
[BetterBatteryStats] SavanTorian:
nobody has an idea to my last post ? it still wont wok... :(
[BetterBatteryStats] Karpfenhai:
You might wanna have a look on this thread: http://xdaforums.com/showthread.php?t=2218300

Regards

Tapatalked from my Galaxy SII

---------- Post added at 07:02 PM ---------- Previous post was at 07:01 PM ----------

It's your Rom / setup, try a clean install (Rom).

Tapatalked from my Galaxy SII
[BetterBatteryStats] SavanTorian:
thx.. ive done it, problem is still there.... only with this app.... no other.... every other runs at top!
[BetterBatteryStats] Karpfenhai:
You've reinstalled the whole Rom?

Then give the dev some candy, but wait.. you didn't try to move bbs to sd, didn't you? Also not to greenify?

If this is not the case, describe your device and Rom, post at least a logcat and perhaps a dmesg taken during your attempts to pull up the app.

Chamonix will take care if he finds the time to do so, please be patient.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] SavanTorian:
first factory reset

then wiping with philz recovery, option wipe data/factory reset

rom is a stockrom for sgs III - XXEMD3 , changelog# 1160235, build date 23.04.2013

never had this problem before and it's only with betterbatterystats now.

i've installed in "normally"... no movements

i've tried to log that, but i can't.... no log is written (kernellogger and android was on)

something worse is going on...

(ich hätte hier auch deutsch schreiben können, aber dann verstehns die anderen nicht, gruss nach leipzig. ;) )
[BetterBatteryStats] luckino69:
up.
[BetterBatteryStats] mdaamir1989:
Huge battery drain

Ive been having terrible battery since 3-4 days . I used to have a drain of max 3% overnight but now its 20% which is too much .

These are the 4 things which are consuming too much battery in BSS .

1. Power management service

2. Radio Interface

3. Alarm manager

4. Audio out 2

Can anyone please tell me how to remove these wakelocks or atleast keep them to a minimum ?

Attaching BBS screenshots .

Thanks in advance .
[BetterBatteryStats] deepmob:
Hi guys.

After reading OP I am uploading my battery stats.

http://db.tt/AIQfWhec

http://db.tt/peprFZ3Y

http://db.tt/Rk0Uotai

http://db.tt/UMCDUIgH

Please help me to protect my battery drain.

Thanks
[BetterBatteryStats] Casanoaa:
Please provide an idle log. Unplug and leave phone 4 hours and dump a file.

We dont need any SCREENSHOTS of bbs app everyone. They are unusable.
[BetterBatteryStats] jgcaap:
My phone doesn't enter in sleep mode properly, can someone help. http://db.tt/13oNN7Jg

Sent from my GT-I9100
[BetterBatteryStats] teemo:
From your first log you have...

Deep Sleep (): 3 h 1 m 30 s (10890 s) Ratio: 91.9%
Awake (): 15 m 58 s (958 s) Ratio: 8.1%
Screen On (): 12 m 46 s (766 s) Ratio: 6.5%

...meaning, your mobile sleep 3 hours, you use it 13 minutes, but it is busy (awake) 16 minutes.

So you have 3 minutes of screen-off-activity to improve on.

The good people here can only do that, if they get the correct log, as it is impossible to check properly with user activity.

Anyway, 1 minute awake per 1 hour sleep is not too bad :D

My own stats for the night was almost 10 min/hour, but that is without any optimizations. Google, Facebook, baseband_xmm etc. just draining the battery for no sane reason.
[BetterBatteryStats] sirxdroid:
I think 92% deep sleep is very good. If you want 99% deep sleep, turn the phone off :)
[BetterBatteryStats] brbbX:
Can anybody analyze it for me?

Thanks
[BetterBatteryStats] VerticalCobra:
Deleted
[BetterBatteryStats] kozmo21:
Make sure you reboot after you toggle FD off, otherwise it will still show up as "secril_fd-interface" .

The other thing that is causing drain is bad data connection "Alarms: 68, Intent: com.android.internal.telephony.gprs-data-stall".
[BetterBatteryStats] brbbX:
so I could possibly blame my carrier for that? or is there a local fix?
[BetterBatteryStats] chamonix:
There is obviously something wrong with your rom. This screen is shown when the remote debugger is attempting to attach to the app, e.g. when the app is started from eclipse. As I assume you are not compiling BBS there is no reason for this to show except if you have a remote debugger always active (adb on USB or network). I suggest that you check your developer settings for that.

Where does that come from? It's not in my code: https://github.com/asksven/BetterBatteryStats/blob/master/BetterBatteryStats/AndroidManifest.xml
[BetterBatteryStats] deepmob:
Hi here is my idle log

Please help me

No activity and, 24 percent battery loss in 7 hours.

http://db.tt/mpylpzld

Thanks
[BetterBatteryStats] jgcaap:
Anyone please?

Sent from my GT-I9100
[BetterBatteryStats] chamonix:
Why don't you start by providing valuable info in regards to this thread?: a dumpfile and a dmesg
[BetterBatteryStats] sirxdroid:
Your phone looks well behaved with 97.3% deep sleep. You may need to replace the battery if it's dropping so much with no use.
[BetterBatteryStats] chamonix:
I am currently experimenting with a new implementation of su commands using a shell always open in the background. This seems promising in terms of stability and performance as creating a su shell is a pretty expensive operation.

If everything goes well I may throw 1.14B1 at you tomorrow.

Edit: wrong version number
[BetterBatteryStats] jgcaap:
but i left it on the link
[BetterBatteryStats] THE RED BLUR:
Dude. Thats the Dorimanx kernel debug file. :what::confused:

Why dont you use the the better batterys apps own built in debug?

This thread is for that app. Lol. :D:p
[BetterBatteryStats] sirxdroid:
Anyone seeing "Checkin Service" (Google Services) wakelock at the top? This one is weird, I have disabled all location tracking and history in Maps, no Latitude. Not sure why it's still trying to check-in, or at least acquire the location.

Sure, I could disable location services completely in Settings, but I don't want to do that, I want my weather widget to work - and that is well behaved, it only checks location and updates every hour.
[BetterBatteryStats] SavanTorian:
thx for your answer...

the code snipped is a suggestion.... i did not do anything anything with this app at all.

maybe editing manifest.xml and filling it in,

it could solve

the problem?! you're the dev, not me ;)

please, make a try and send me the updated app...

ST
[BetterBatteryStats] jgcaap:
Thanks for pointing out. By mistake I sent wrong link.

http://db.tt/QC5kUG7F

Here is the correct one. Thanks.

Sent from my GT-I9100
[BetterBatteryStats] mdaamir1989:
Hi Mate ,

Thanks for replying . Here's the log attached . If you could please analyze it and let me know whats causing the huge drain ...

View attachment BetterBatteryStats-2013-06-02_114129491.txtView attachment BetterBatteryStats-2013-06-02_114138294.txt
[BetterBatteryStats] Casanoaa:
Mate unplug and LEAVE phone 4 hours and dump a file. In this dump you have used your phone therefore i cant say much about it.

Also remember enabling alarms in bbs app.

---------- Post added at 09:31 AM ---------- Previous post was at 09:26 AM ----------

Peovide an idle log. Unplug and leave phone 4 hours and dump a file.

See for gsf in post 3 in this thread, I can see eventlogger is constantly waking up device.

Also for maps it is in post 3.

---------- Post added at 09:32 AM ---------- Previous post was at 09:31 AM ----------

You can set your weather widget manual for your city then it dont need locationsservices to be on.
[BetterBatteryStats] Karpfenhai:
I wouldn't describe myself as an expert but imho your maps need some adjustment, follow the advice given in post 3 and maybe freeze Google search box if you don't use it regularly.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] jgcaap:
It had 8 hours sleep =s

Sent from my GT-I9100

---------- Post added at 10:40 AM ---------- Previous post was at 10:38 AM ----------

http://db.tt/FM5DiiCY

http://db.tt/iI8tx0kG here is a fresh new one :)

Logcat +dumpfile

Sent from my GT-I9100
[BetterBatteryStats] andrewilley:
I've been whittling away at trying to improve my overnight idle deep sleep ratio with not much success... until I tried turning Wi-Fi off, and my S3 slept quite soundly.

Until now, I'd been working on the assumption that Wi-Fi was generally better for battery life than mobile data, so either (a) I'm wrong, (b) I've got an issue with my Wi-Fi connection, which I don't think so as the phone is near to the router and the connection stays live all night, or (c) whatever is causing the issue is set to work on Wi-Fi connections only.

Here are two idle logs, first with Wi-Fi off (95% deep sleep, 1%/hour drain) and the second with Wi-Fi on (only 40% deep sleep, 4.5%/hour drain). I'm wondering why deep sleep performance is so bad under Wi-Fi when it seems pretty acceptable using the same settings with mobile data.

Wi-Fi OFF: View attachment BetterBatteryStats-2013-06-01_074425044.txt

Wi-Fi ON: View attachment BetterBatteryStats-2013-06-02_071901371.txt

On the Wi-Fi front, signal strength seems OK in Wi-Fi Analyser and I've set a manual fixed IP address on the phone. I've also moved my router channel to 13 (where nothing local is clashing), forced 20MHz channel width, and enabled Filter Multicast. The router does a scheduled reboot at 4am daily, but apart from that the connection seems fine.

On the phone, I want to keep general location services (but not GPS) active in the background so my weather widget and other apps can update based on my location. I did try Greenifying both Aquamail and Hootsuite based on previous advice, but I found that doing so blocked LED notifications for incoming emails and direct messages, which defeats the point of having them, so I've now un-Greenified them but extended their sync periods, especially overnight. BBC News is set to do once-a-day checks, which is not ideal for news updates but I'll leave it like that for testing purposes. I want to keep the phone 'smart', but not kill the battery so quickly.

So, any thoughts on my next steps to work out why I'm getting the deep sleep issues only when Wi-Fi is running? Thanks folks!

Andre
[BetterBatteryStats] GabrielSousa:
is there a idle log ? how i get it ?
[BetterBatteryStats] deepmob:
Hi

I am using 2300 mha new battery.

Looks like I got a fake one.

Any one know how to test actual capacity of battery.

:confused::confused::confused::confused:
[BetterBatteryStats] noobSU:
Anybody can analize it? Good better or best? ;) 99.4% of deep sleep ;)

http://db.tt/ZsW3qLER
[BetterBatteryStats] sirxdroid:
This thread is to solve problems, not to brag :)

---------- Post added at 07:39 AM ---------- Previous post was at 07:38 AM ----------

Or maybe the battery just needs to go through a few full charge/discharge cycles. If it doesn't improve, I'd look to replace it with a good battery.
[BetterBatteryStats] chamonix:
Sorry bit that won't happen: the problem obviously is in your setup and I won't make any changes to the app to work around that.
[BetterBatteryStats] kozmo21:
You've already done all the things I would normally recommend? Maybe you can try a different kernel that works better with wifi?
[BetterBatteryStats] noobSU:
If i wanna impress you guys why r you being jealous? :p Jokin'
[BetterBatteryStats] luckino69:
Hi guys,

can anybody analyze log for understand why my tablet don't work in deep sleep?

Thanks
[BetterBatteryStats] SavanTorian:
thx anyway... with the update to 4.2.2 i have to fullwipe my phone . so i'm patient.... WLD is another fine tool and it's working properly ;)...
[BetterBatteryStats] Casanoaa:
Provide an idle log. Unplug and leave phone 4 hours and dump a file.

Enable also network in bbs app
[BetterBatteryStats] Karpfenhai:
Seems some of your apps are more data hungry while on Wi-Fi, beautiful widget is the top issue here..

Do you have the backup my data option enabled?

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Release 1.14B1

Next round is starting after a longer break. This first beta has no functional enhancements as I want you to test the new su shell implementation. If you do not have root or don't know what I am talking about this release is not for you
[BetterBatteryStats] oluwaponmile:
The "Screen Off" stats doesn't show since phone was upgraded to 4.2.2. Does anyone knew how to get this enabled for 4.2.2?

Cheers
[BetterBatteryStats] rignfool:
Do you have 'watchdog' enabled in settings?
[BetterBatteryStats] GabrielSousa:
i have a lot of ANDOIRD OS.

can some one help me on this ?

idle report
[BetterBatteryStats] m14mclaren:
I couldn't quite pick why my phones staying awake all the time, I assume its something easy though.
[BetterBatteryStats] GabrielSousa:
its your CAM

"msm_camera" (): 2 h 52 m 27 s (10347 s) Cnt:(c/wc/ec)1/0/0 22.8%
[BetterBatteryStats] chamonix:
Your phone did not sleep because the camera sensor was active all the time (msm_camera under kernel wakelocks). If your camera app was open that would be normal, if not you should take that issue to your phone's q&a thread as that would be a bug in your rom
[BetterBatteryStats] N1XM1X:
am I right in thinking that if I fully charge my phone, and have an unplug gesture to start my stats from, that the amount of wake locks I get will be the ones I need to worry about? I ask because I did this during the nite and had very little wake locks but get quite a few during the day. I expect more because I am obviously interacting with the phone so is that inactive period what I need to take note of rather than during the day? thanks to anyone who can help :)

Paranoid Nexus⁴ XDA

The Thanks Button Is

There To Stop Repeat

Thanks Posts. Use It!?
[BetterBatteryStats] m14mclaren:
Thats weird because I have had issues with my Camera app opening and freezing. I might post up another one tomorrow after using it all day, although I can probably read myself now I know what I'm looking at.
[BetterBatteryStats] andrewilley:
'Backup my Data' is turned off. I can't see any controls in BW to influence data flow (other than the main update frequency, which is set to 6 hours).

A new version of my current kernel (GoogyMax) was released last night which has dramatically improved Wi-Fi deep sleep time, down to 9% awake time now compared with 60% the night before. Battery drain came down from 5%/hour to 3%/hour too, but I'd still like to try to get a little closer to the 1% I get with Wi-Fi turned off (unless that 2% is just the overhead for running the wireless interface, but it seems a lot?).

Wondering whether there's anything much I can do with GTALK or other Google services (autostarts?) without sacrificing the ability for weather widget/etc to know where I am in normal use?

Here's a new idle log from last night, with the new kernel:

View attachment BetterBatteryStats-2013-06-03_071121503.txt

Andre
[BetterBatteryStats] Razor00014:
Hi, can someone take a look at my stats?? thanks :o
[BetterBatteryStats] Casanoaa:
Disable autoupdate weather and set manual location.

Disable all locationsservices in rom settings.

Disable autostarts of maps or disable it totally with tb pro of you not use it daily
[BetterBatteryStats] GabrielSousa:
i have a huge battery drain on andoird os

can some one help me ?
[BetterBatteryStats] Karpfenhai:
Sorry guys, can't participate in these days, search for flood + Saxony.. we're under water!

Tapatalked from my Galaxy SII
[BetterBatteryStats] lemonade747:
I have this issue. I dont use GPS but why it is the top 1st app of draining battery in my phone? I'm using cm7 rom. Please tell me what to do to solve this issue, my battery drains very fast in idle, more than 2%/h, sometime 5% but i'm sure that i have force stop all app before turning off screen. Please help! :(
[BetterBatteryStats] It_ler:
Hope that the rain will stop and the water goes back quickly.

Good luck to "recover" everything important :fingers-crossed:
[BetterBatteryStats] GabrielSousa:
"deleted_wake_locks" (): 13 m 50 s (830 s) Cnt:(c/wc/ec)45781/128/918 1.5%

"battery-monitor" (): 11 m 27 s (687 s) Cnt:(c/wc/ec)700/0/701 1.2%

i never had the deleted_wake_locks and battery-monitor.

how i solve this ?
[BetterBatteryStats] chamonix:
I cross my fingers that you didn't suffer too much damage and that the recovery goes fast.
[BetterBatteryStats] chamonix:
Battery monitor is a symptom of frequent wakeup: look for the cause in alarms.

Deleted wakelocks is often (or always) related to wifi. Try turning off wifi and see it that wl goes away. If yes then you have pinned the problem and can look into solving it
[BetterBatteryStats] GabrielSousa:
"Battery monitor is a symptom of frequent wakeup: look for the cause in alarms. "

what i will to look on alarms ? to solve the Battery monitor

i tried other kernel, maybe has better wifi drivers
[BetterBatteryStats] eushaun99:
Can anybody take a look at my dump? Thanks.
[BetterBatteryStats] guido_glx:
Hi! My first post here...

I have a Samsung i9100, that needs charging twice a day... can you tell me if there's something wrong in my log?

Thanks!

Guido.
[BetterBatteryStats] Casanoaa:
I hope the best for you my friend.

---------- Post added at 06:38 PM ---------- Previous post was at 06:32 PM ----------

Disable

com.wwe.universe

Juicedefender

Enable mobile data it does connectivity wakelock when you disable.

---------- Post added at 06:41 PM ---------- Previous post was at 06:38 PM ----------

Look in post 3 for gsf wakelock minimizing and for maps too.

Disable face detection.

Disable autoupdate in gplay and browser.

Disable bluetooth when you not use
[BetterBatteryStats] It_ler:
Just in addition to what Casanoaa wrote:

Please provide an idle dump next time = doing nothing / screen off all the time.

Then it's a lot easier to find the unwanted drainers.

Try to turn off wifi, bluetooth, all location service options and auto-sync.

Check Karpfenhai's description of how to optimize Maps (link is in post #3).

Disable Google+ if you don't need it.

Use gokhanmoral's Fast Dormancy app to disable Fast Dormancy on your phone.

Disable Google quicksearchbox if you don't need/use it.

Then try again.

Good luck !
[BetterBatteryStats] mdaamir1989:
Hi Mate ,

As suggested i left the phone idle for 4 hours . Also i have taken a log after 10 hours too . Attaching all the logs here . Please take a look and suggest whats wrong with the phone that its consuming that much battery.

View attachment BetterBatteryStats-2013-06-02_232429247.txt

View attachment BetterBatteryStats-2013-06-02_232436656.txt

View attachment BetterBatteryStats-2013-06-03_053205936.txt

View attachment BetterBatteryStats-2013-06-03_053215019.txt
[BetterBatteryStats] chamonix:
I would suggest that you proceed systematically instead of trying blindly. The alarms section of bbs will tell you the cause of the wakeups causing battery monitor kernel wakelocks. Once spotted you can probably fix it. If you need help analysing a dumpfile I'd be happy to assist.
[BetterBatteryStats] Casanoaa:
These dumps is not idle.. idle means the phone must not be touched 4 hours after unplugging. Then you enter bbs app and dump a file.

I sugguest you look disabling autoupdate/autosync on all this and look for post 3 in this thread about gsf and gplay.

======================

10129 (Mobile) (com.google.android.apps.plus.Google+): 37.0 MBytes 41.5%

10121 (Wifi) (com.dropbox.android.Dropbox): 14.0 MBytes 16.0%

10070 (Mobile) (com.quoord.tapatalkxdapre.activity.xda premium): 13.0 MBytes 15.2%

1000 (Mobile) (Android System): 12.0 MBytes 14.1%

0 (Mobile) (0): 6.0 MBytes 7.7%

10071 (Mobile) (com.whatsapp.WhatsApp): 2.0 MBytes 2.6%

10035 (Mobile) (Google Services): 626.0 KBytes 0.7%

10072 (Mobile) (com.toi.reader.activities.TOI): 565.0 KBytes 0.6%
[BetterBatteryStats] Gogeta:
Can someone take a look at mine too?

Thanks.

http://db.tt/2Qp2JFUO
[BetterBatteryStats] sirxdroid:
97% deep sleep looks good. What problems do you have? 1.5%/h battery loss is probably just the cell radio being power hungry.
[BetterBatteryStats] GabrielSousa:
sorry, ignore !!!
[BetterBatteryStats] Gogeta:
That 1.5%/h is because phone was at 100% at start....:D

& everyone knows that battery drains too fast [MENTION=1412615]100%[/MENTION] as compared to lower values;)

I'll post a log for lower value tomorrow when I go for sleep ;)

Thanks for your help:thumbup:
[BetterBatteryStats] andrewilley:
Thanks again for the advice, but as I said in the message which you quoted I'm really trying to reduce the idle battery usage on Wi-Fi (currently 3%/hour) to nearer the sort of level that I get with Wi-Fi turned off (about 1%/hour) - which I gather should be feasible since Wi-Fi runs instead of using cell data, and should use similar or less power.

I don't ideally want to do anything which stops weather being updated for my current location when I look at my homepage, for example (and other location based apps). Is there any way I can turn location services off only when the screen is off, and have it turn back on and update my weather widget/etc for me when I unlock the phone? That would be a perfect compromise for me.

Andre
[BetterBatteryStats] TenBelowZero:
Latest BBS beta running well on SGS / BeastROM and Nexus 7 / SmoothROM. No issues so far. In fact it behaves exactly as previous version. No difference at all.
[BetterBatteryStats] chamonix:
That was the intent ;)
[BetterBatteryStats] rignfool:
You can do so with an automation program (tasker, automateit) and the secure settings plugin...
[BetterBatteryStats] It_ler:
Just one option: In Tasker (or Automateit) app, you can create a rule to enable/disable GPS for different triggers ... maybe screen on/off is in the list of triggers.

EDIT: rignfool was faster than me ... but suggested the same apps.
[BetterBatteryStats] GabrielSousa:
here my BBS, thanks a lot
[BetterBatteryStats] It_ler:
Just some suggestions:

- K9 pull service is active: Check settings and set it to manual pull or use a bigger interval.

- Google+: Disable it if you don't need/use it.

- Fast Dormancy: Use gokhanmoral's Fast Dormancy app to disable FD on your phone.

Good luck !