yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Casanoaa:
Please provide an idle log firstly and install latest bbs stable version v1.11

Unplug and leave phone 4 hours without touch and dump a file.

http://xdaforums.com/showthread.php?t=1811365 look here for more info about bam_dmux_wakelock.

Also you have to root your device so we can see alarms and network to say more. Also you need to root before we can stop and disable autoruns.

---------- Post added at 10:30 PM ---------- Previous post was at 10:27 PM ----------

Have you seen your alarms and network in your dump file. The idle log. Example: GSF is sending and receiving data, which makes wlan_rx_wake. Further i have seen with shark for root that wifi printers can provoke your device. You have to dig in to your shark for root log and your idle log to find the culprit.
[BetterBatteryStats] ccs86:
Yup, in a 30 minute idle period, GSF has 13 wake ups in Alarms.

Awesome, I'm going to shut down my printer for a bit and see if that provokes a change.

Thanks!
[BetterBatteryStats] ccs86:
.... shoot! Still getting wlan_rx_wake lock with the printer off. Hmmm....

Which parameters should I use in Shark?
[BetterBatteryStats] chamonix:
Thanks for your feedback. I'm working on making the analysis and diagnose more user friendly. Colors and hints/knowledge are part of that as well as some basics about how to proceed when starting investigating.
[BetterBatteryStats] Black1982:
Super app! Thank you very much for this! Just what I was looking for to try to solve the battery drain plaging the latest Miui releases! If we have questions about our logs can we ask them here or would you prefer an other thread?
[BetterBatteryStats] Stonent:
Ok well I updated from .4 to .51 and now I can see "Process" and "Since charged"

Nothing else on the screen.

I'll try to pull logs tonight.
[BetterBatteryStats] Redflea:
That would be HUGE...e.g., processes that are causing issues are listed in red, etc., and other built-in diagnosis help would make this a stand-out app.
[BetterBatteryStats] Black1982:
Yeah that would be fantastic!
[BetterBatteryStats] Szczepanik:
BetterBattery Stats Screen shot

Chamonix thank you. Installs quickly on my (single processor) HD2 SD GB and generating results immediately. This is a screenshot when this ROM was registering the 60ma drain problem in standby. Running JuiceDefender has not helped solve this problem that many ROMs have. Fortunately I have found a good Nexus SD ROM that does not have this problem but you would be a hero if you could help solve it.

Have you looked at OSMonitor - the message tab gives colored information, warnings and error messages although, like your info, it is hard for me to understand! I attach a screen shot for info.

Keep up the great work!

Cheers

Tom
[BetterBatteryStats] chamonix:
Why not start here and do a collective exercise :)
[BetterBatteryStats] chamonix:
Hey Tom,

Are you talking about hd2 like in htc hd2 windows mobile phone? Excuse my ignorance, I hope I am not making a fool of myself.

If it's the case I shall take out my old notes from the raph xdandroid times but I bet we will be looking into kernel logs and sources as the screenshot, if it's the top wakelock you have posted are not that wrong.
[BetterBatteryStats] Kernodle:
It never actually opens up on my Infuse, just a black screen. I let it sit for about 5 minutes; maybe the next time I plug in I'll give it a really long time to see if it eventually comes up. This is a single core at 1.2 Ghz.

Sent from Samsung Infuse 4G via XDA app.
[BetterBatteryStats] riotkid976:
Anyone have any info on my biggest locks?
[BetterBatteryStats] chamonix:
What I see:

Top1: handcent SMS kept your phone awake far too long. Did you perhaps have a repeating notification or a popup open the whole day?

Top2: your facebook sync account costed you 2 hours awake.
[BetterBatteryStats] riotkid976:
agreed. 13 hours is about the whole time my phone has been off the charger today. As far as I know, there weren't any duplicate notifications or all day popups. What throws me is that I can't be the only one using Handcent so i'd be surprised if it was a bug within the app...

I assumed facebook would make the list. between it's new version being terrible and trying to find alternative options my battery has been pretty angry. FYI "Friend Caster" isn't a good alternative.
[BetterBatteryStats] walda:
Anyone figured out this Thread?

http://xdaforums.com/showthread.php?t=1031124

Looks like it looked on Froyo (With Bars and all...) :D
[BetterBatteryStats] mahdibassam:
hey guys,

I'm on Samsung Galaxy S II, VillainROm 2.1.

i am experiencing terrible battery life.

i installed betterbatterystats and also the Battery monitor widget. the widget says 143MA.

i don't know what is taking away all the battery. the phone is just sitting there and losing 20 percent each hour.
[BetterBatteryStats] nobnut:
Is the 143mA occurring during standby? Also, have you set the correct battery capacity (mA) in Battery monitor Widget settings. It is not detected correctly upon install. The figure you should manually enter is '1650'.

If the 143mA is happening during standby, you have a problem. Not to worry, here's what to do:

1/ Reboot the phone

2/ Leave it in standby for at least one hour (2 hours would be better)

3/ After that time open BetterBatteryStats and check under 'Process since charged' and 'Wakelocks since charged'

4/ Post the results in this thread

5/ When you post them can you also state details about your email and social networking accounts (e.g. how many and what sync schedules)

6/ State whether you have 3g / GPS / WiFi etc enabled

7/ State whether you use Juice Defender or a similar app

8/ State whether the phone signal is weak or strong where you live and work (e.g. H+ / H / 3G / 2G / E etc)

Given your drain is so high, I am sure we can help you get it down to between 2-10mA per hour :)
[BetterBatteryStats] mahdibassam:
Thanks very much for the reply.

The phone went down to 28MA while the screen was off for 10minutes, but when i started using it to send a couple of text messages it went up to 180MA. however this was before i changed the Battery capacity to 1650.

i will reboot the phone now and do as you told me to. when you say leave the phone in standby for 2 hours, you mean absolutely no use? the screen off and sitting on the table for 2 hours?
[BetterBatteryStats] nobnut:
When you are using the phone, it will be higher. I often see 200+ during use, this is normal (my record is over 600!).

During sleep, you want between 2 and 10mA.

Let's see how you get on.
[BetterBatteryStats] ithehappy:
Hi,

I downloaded this app to see what is running on background and awaking the device up when screen is off, but in which mode should I set it up to see that, Process, WakeLocks, or Other? Hope I made myself clear.

I am attaching two screen shots, you can see that Deice is Awake for 3 h 44 mins, when Screen On time is 3 h 32 mins, so I'd like to know what caused the phone to Awake for this extra 12 mins? Attaching the Battery Status Graph also.

Thanks in advance.

Regards.
[BetterBatteryStats] mahdibassam:
so i leave the phone untouched for two hours?
[BetterBatteryStats] nobnut:
Hi,

You don't need to 'set the app up'. You can just run the app at any time and check the updated statistics.

You can see my post (a few back), in it I suggest you do this:

1/ Reboot the phone

2/ Leave it in standby for at least one hour (2 hours would be better)

3/ After that time open BetterBatteryStats and check under 'Process since charged' and 'Wakelocks since charged'

Then you will see what has been causing wake and which processes have been running since the device restarted.
[BetterBatteryStats] chamonix:
Call for review

I'd be happy if you guys could review this KB article about AlarmManager based on andy2na's post in this thread:

https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/AlarmManager
[BetterBatteryStats] kcching:
Thanks a lot for such great app! Extremely useful !
[BetterBatteryStats] nobnut:
Looks good to me.

Thanks to andy2na.
[BetterBatteryStats] tbong777:
Funny doesn't work with my phone...No RED indicator. Am I missing something?
[BetterBatteryStats] kitepascal:
Hi,

here the result of my "normal use" test after some amateurish optimizations thx to this great app!

Quite good with BLN, WhatsApp and Tasker running?

Nevertheless the awakeness ratio of 12% seems too high for me..

Especially during night time in flight mode the graph shows long times of awakeness (-> 2nd night).

Perhaps the battery history shows something wrong here?

If you see some potential in my Stats, please let me know!

I'm out of ideas.

Cheers

Pascal
[BetterBatteryStats] TecQuality:
@OP: i'm onto the Lite'ning v6.1 but i can't delete the .apk cause it told me that this .apk is read-only ... (i've the 0.5.1.0 version)

any tip?

edit: NWM fixed with changing the R/O permissions rights. thanks for sharing, and keep up the great work!!!
[BetterBatteryStats] Thialala:
Go to Advance Preferences and set the height of graph bars to 4 or 8.
[BetterBatteryStats] beepsilver:
Thanks ej. Copy all. BMW has a setting for HTC Evo, so I'm scratching my head a little. I'm not too bothered though--currentwidget works well enough for me as a substitute.
[BetterBatteryStats] jetshinoda:
the last time i checked on this thread it was 0.8.2 and now it's 1.1.1 already ? i think i need to check this thread oftenly :P
[BetterBatteryStats] chamonix:
Hey Pascal,

what caught my eye in the wakelocks:

DhcpHandler (Android-System): 27 s (27 s) Count:1516 0,0%

That's pretty much (count) for something supposed to negociate a lease for an IP. I noticed Wifi was on all the time and suspect your phone is talking to some unknown access points. Maybe you want to try changing that.

I didn't find anything really interesting in the AlarmManager dump so I'd start looking into the wifi thing if I were you.
[BetterBatteryStats] chamonix:
For what reason do you believe AlarmManager is a good start to look at? Could you please post your BBS stats first?
[BetterBatteryStats] bu2askoor:
Hello all,

I previously was using a different rom and through your app was ale to get GREAT battery life as it clearly pointed me to the right apps to get rid off or setting to check. However now i am clueless once i upgraded to a new rom (villian rom 3.0). Nothing sticks out.

Battery Stats: http://pastebin.com/mQ1XFMWp

Highlight:

Awake (): 10 h 50 m 35 s (39035 s) Ratio: 100.0%

Screen On (): 1 h 52 m 8 s (6728 s) Ratio: 17.2%

Wakelocks:

DhcpHandler (Android System): 6 m 17 s (377 s) Count:1142 1.0%

*wifi* (Android System): 5 m 15 s (315 s) Count:1044 0.8%

RILJ (Dialer): 1 m 54 s (114 s) Count:2575 0.3%

AlarmManager (Android System): 1 m 43 s (103 s) Count:2611 0.3%

Checkin Service (Google Services): 16 s (16 s) Count:2174 0.0%

*network-location-cell-update* (Google Services): 15 s (15 s) Count:1115 0.0%GTALK_CONN (Google Services): 10 s (10 s) Count:1939 0.0%

Notes:

All my location based stuff under location are off

No Backup stuff under privacy

Latitude is off

Wifi setting is always on at home thru a profile and wireless is off when at work.

Lots of samsung bloatware is frozen thru titanium backup

I hope someone can assist me as that a serious wakelock
[BetterBatteryStats] nodir95:
cool thanks will try
[BetterBatteryStats] zanderzone:
Thanks a lot for this wonderful App. My SG2 was not entering deep sleep at all and found that Facebook chat is causing this issue. Logged out of chat and issue resolved.
[BetterBatteryStats] xProteus:
times for the process dropdown seem to be off by a factor of 10.

i'm on sgs2
[BetterBatteryStats] X-GoD:
My phone used to last 2d easy, then suddenly it dies after 20 hours. not sure what i changed that caused that. so i bought my first app being this one. it was recommended to find the battery leak. ! cool so i will be back with info later!!
[BetterBatteryStats] gil80:
@Chamonix

Hi.

I've downloaded your app including CPU spy to verify if my phone enters sleep mode.

Since upgrading to a new ROM (KI4), over 50% of the time, the phone is @ 200Mhz while it's clearly over 50% of the time, the phone is idle since I don't use it as much.

Prior to that conclusion, I used CPU spy and about 80% of the time, the phone was in sleep mode.

So, something has defiantly changed.

I've downloaded your app to find the culprit but hadn't been so lucky cause I figure I'm dumb enough to not being able to conclude anything from the charts in your app :)

Can't figure out what prevents my phone from deep sleep and resulting in fast battery drain.

I hope I can get your assistance and provide you with a relevant info to find the culprit.

I use:

Check ROM KI4 latest version

Speedmod Kernel K1-T40 (this kernel doesn't support OC/UV so it can't be the cause.)

With speedmod kernel I get the best battery results.

Thanks :)
[BetterBatteryStats] bu2askoor:
With regards to the issue above e i have noticed that my phone had a hard time connecting to wifi and hence the wakeloack on dhcpandler.

I reflashed the modem and all is well now. Thanks.
[BetterBatteryStats] chamonix:
That amount of awake time compared to the wakelocks makes me believe that there is another reason for your phone not sleeping. Don't forget vr3 is a beta....

Are you on 2.05 kernel? If no downgrade.

If I were you I'd make a test without wifi / bluetooth to see if the awake tilts down.
[BetterBatteryStats] Casanoaa:
Can you not provide an idle log then we can see firstly on that? Remember to enable alarms and network in bbs app stable version v1.11

Unplug and leave your phone 4 hours without touch and dump a file. Try with wifi on
[BetterBatteryStats] ccs86:
I'll see if I can make one happen now. If not, I'll get one overnight.

I did a quick log with Shark and saw a fair amount of packets coming from the two computers on my network, both using port 17500. I checked it out and that is the Dropbox app on the computers. I have Dropbox installed on my phone, but sync is disabled. Can I block packets from port 17500 on my phone?
[BetterBatteryStats] Casanoaa:
Turn off dropbox autostart when windows starts? Start dropbox when needed?
[BetterBatteryStats] ngoonee:
I use dropbox myself, so I'll just interject here and say that sort of defeats the purpose of dropbox =) better to keep the phone off that network.
[BetterBatteryStats] fndpena:
Anything I can do about these wakeups?
[BetterBatteryStats] PIRATA!:
I'm sorry....but if I update my firmware/rom....then I should make all my Autostarts editings all over again or is there some way to backup some config file to restore after the update? ? ?

---------- Post added at 01:55 AM ---------- Previous post was at 01:54 AM ----------

+1 >> Interested too!
[BetterBatteryStats] BullHorn7:
I disabled Fast Dormancy, froze ~15 bloatware apps with Titanium Backup, used Autostarts to disable Android System, GSF, GTalk, GMaps and eBay. What else can I do? I hardly get ~4-6h of screen time and have to charge after less than a day of use -- I saw people in the Note 2 forum posting 10h+ screentime and almost 3 days on one charge...

I'm not sure why Exchange and Plume woke the phone up so many times, they are both set to update once per 4 hours?...
[BetterBatteryStats] DaRacerz:
Can you please help me out. I posted my battery stats. I'm draining at 6.6 per hr but I'm running an optimized rom and modem which other users are seeing close to no drain. The results posted are right after a factory reset so there should be no rogue apps. Any ideas?

Thank you
[BetterBatteryStats] shingo86:
I only have 1 end point event in gsf. Enabled, reboot but end point partial wake lock still come back.
[BetterBatteryStats] vyomashar:
Thanks :highfive:

Will disable Tweetcaster as i dont use that app too often.

Google Search and G+ i use them everyday so will keep them on.
[BetterBatteryStats] cute_kayani:
You have endpoint wakelock, enable all events in GSF which have endpoint written.
[BetterBatteryStats] cute_kayani:
No, it must be 4, its not 1.

Chk this image and enable highlighted events in GSF.
[BetterBatteryStats] Casanoaa:
Never post a log like this in this forum. Use dropbox or other cloud or pc.

Disable facebook and you can use these settings for gsf. Use gokhan morals fd app. If you dont use push. Disable samsung push services with tb pro.

GSF SETTINGS IN AUTOSTARTS

Restart phone after disabling / enabling entries in autostarts.

Mine is here http://xdaforums.com/showthread.php?p=35755907

And Karpfenhai' is here

http://xdaforums.com/showthread.php?p=35634745

Use stable version bbs v1.11. You can disable notifications in SU byself.
[BetterBatteryStats] It_ler:
Looks quite good IMO :good:

Biggest wakelock is "MAIL_SERVICE (com.android.exchange.Exchange services)".

So try to create your mail accounts as pop3 with long or manual update/sync interval (not as push/Exchange mail).

I Alarms I see "com.sec.spp.push", which seems to be Samsung Push service/app. Check that it is disabled.
[BetterBatteryStats] kyolic:
"alarm_rtc" (): 19 m 46 s (1186 s) Cnt:(c/wc/ec)1411/0/93 18.3%

Can someone tell me how to get rid of this alarm_rtc? My dump file is attached.
[BetterBatteryStats] Hilmesh:
Hello It_ler , What was the Media Scan problem in JB Leak for which Mr.Greg has posted his Framework which resolves it. can you give me an idea please.
[BetterBatteryStats] It_ler:
I think it's the wrong thread. That was in NeatROM thread.

Better ask there, as Mr.Greg himself is permanently checking NeatROM thread, but AFAIK not this BBS thread.

Sorry ... I am not sure about the reason. I think some users had issues with massive MediaScanner wakelocks in BBS dump and he could minimize these wakelocks on his phone with a modified framework.

But better ask in NeatROM thread again to get the correct answer.

---------- Post added at 10:07 AM ---------- Previous post was at 09:50 AM ----------

Strange:

Battery loss: 36% (100% to 64%) => 6.6%/h

with Deep sleep ratio of 99,1%

Please check again all your location service options and disable all.

Then check that bluetooth is disabled.

Then charge your phone, turn it off, keep the charger plugged for about 10 minutes, then unplug the charger and pull out the battery.

Wait for about 2 minutes to let the battery stats chip in the phone settle down.

Then put the battery into the phone and reboot normally again.

I hope that this will lead to a more reliable and better battery stats/life.

Good luck !
[BetterBatteryStats] Casanoaa:
com.zeroneapps.autotaskkiller (): Wakeups: 1299

Delete this app and try to dump again. See post 3 in this thread for maps. If you don't use googlesearch then disable it with tb pro.
[BetterBatteryStats] shingo86:
Can rotate n screenshot again? Can't see wats at the end.
[BetterBatteryStats] emmmile:
I have more or less your configuration, except for the lines that are missing in my Autostarts. Anybody can figure out why I have these differences?

I have CM10 (no custom kernels, just the plain CM10 nightly build) on an HTC Sensation.

This is a dump of this night, do you think it's ok or it should be better?

Thank you again :)
[BetterBatteryStats] BullHorn7:
Thanks, but I use my the exchange for both email and calendar at work, I need to think of a better solution than POP3... I'll disable Samsung Push although I find it quite useful.

Here's another dump, this time I let it idle overnight and the drain was double than before!
[BetterBatteryStats] Casanoaa:
Very nice dump. You have not a problem with GSF now. Your problem is your wifi_wlan_rx... and alarm manager. Can you just uninstall (com.painless.pc.Power Toggles) to try if your alarmmanager (android) falls to minimum.

Your wlan_rx wakelock must you see with shark for root and identify your problems. Or just disable wifi when you not need it would solve also the wlan_rx wakelock.

Also remember to turn off notifications in gplay. Disable all google stuf you don't use with tb pro.

---------- Post added at 12:34 PM ---------- Previous post was at 12:28 PM ----------

Google stuff that can be disabled:

Disabling Google play services would affect youtube app not to login. But you can use the app without logging in.

To see more lines and details on autoruns:http://xdaforums.com/showthread.php?p=36350948
[BetterBatteryStats] Hotcooler:
I have quite a simple question, if I disable autorun for Imo.im (messenger) since I dont use it every day, if I then run it manually and log in, will it actually work in background, or system might suspend it / kill it e.t.c.?
[BetterBatteryStats] azrash:
It will run in background until you force close it. It might be running automatically if there are intents that triggers it even when you disable St startup. Check it at the auto starts app.

Sent from my Desire Z
[BetterBatteryStats] :
hello Casanoaa,

'til you've helped me a lot to save battery, now I want to get my hands also to the GSF topic. One preparation question before: how can I call all my changes off if don't know/remember my changes I've done with autostarts??

Thx again.
[BetterBatteryStats] Casanoaa:
Open your autostarts app and see what is enabled and disabled. Take screenshots of it and use the settings i have or karpfenhai have.
[BetterBatteryStats] fndpena:
Anything I can do about it?
[BetterBatteryStats] emmmile:
Thank you very much :D

Ok the Wifi is definitely not a problem, I turned it ON to see if that was a source of locks.. I can easily disable it when not needed.

I'll try to uninstall power toggles for the other problem.. and I'll take look to your links (what is tb pro?).

It actually seems that everything is very good until the phone is in idle. When I begin to use it and naturally I open processes there is not anymore a 1:1 correspondence between active screen time and awake status, as you can see here:
[BetterBatteryStats] It_ler:
It's TitaniumBackup Pro app from Play store.

P.S.:

Please don't quote such a long post, as it makes your post and the whle thread hard to read IMO.
[BetterBatteryStats] Casanoaa:
Thanks for answering my friend i was out for bicycling

---------- Post added at 04:20 PM ---------- Previous post was at 04:16 PM ----------

I dont think there are a special, absolute solution for that.

For GSF you have done all things i think. For the other i don't thin you can do something for it. Just like the time tick. Don't worry.

Enjoy your phone
[BetterBatteryStats] cute_kayani:
Okay, but there is nothing wrong with pic, this pic is just to show you to how you can minimize endpoint wakelock.

Enable events which are in red box and all other settings will remain same as i posted in previous threads . For end point if you mistakenly disable gsf, enable those which are in red box.
[BetterBatteryStats] cute_kayani:
Here are new screenshot but this time i don't have app to edit and to highlight it..

I think now you can understand well..:thumbup::thumbup:
[BetterBatteryStats] jcurley:
Reformatted, and still not going to sleep. Tried to change Wifi Settings, still no deep sleep. Tried to use another battery, that did not work either. I have a warranty claim with VZW and a referb coming this week. I am beginning to wonder if the processor died and its keeping it awake cause something went wrong somewhere.

I don't know. I guess I will start over fresh with the new phone.
[BetterBatteryStats] alex_canada:
Sorry to bother you guys but I'm curious if widgets work on stock Galaxy Nexus running 4.2.1 with Nova launcher. None of the widgets work at my end although the app looks like works fine. Phone is not rooted.
[BetterBatteryStats] ManUtd07:
I'll preface this by saying that I do not get good cell service in my office so I have my wifi on. It looks like this could be causing a lot of battery drain: GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services). Not sure what that is though. Any thoughts? I do not use Gtalk (or am at least signed out). I sync my Calendar, Contacts & Gmail. I'm running PAC Rom with Komodo Kernel if that helps.

Thanks for any input/advice.