yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Casanoaa:
com.quoord.tapatalkpro (com.quoord.tapatalkpro.activity.Tapatalk):

fullsync (com.whatsapp.WhatsApp): 9 s (9 s) Count:16 0.1%

*sync*_com.android.contacts_Account {name=EM, type=com.google} (Google Services): 7 s (7 s) Count:6 0.1%

FacebookService (com.facebook.katana

Manual sync all these apps and turn off notifications.

In rom / settings turn off all sync.. google contacts etc.

Install another app for facebook.

---------- Post added at 11:50 AM ---------- Previous post was at 11:45 AM ----------

Never dump a file like a text . Dump it with dropbox or with a pc browser.

Your dump is good.
[BetterBatteryStats] Laynee1:
That's all ? Nothing else giving me problems ? What about multipdp ?

thanks tho
[BetterBatteryStats] Casanoaa:
Install autostarts app.

Regarding 3 post in this thread follow instruction to turn off autostarts maps.

Also do this http://xdaforums.com/showpost.php?p=35755907&postcount=11161

Turn off all autostarts for whatsapp

Synch manually k9

Delete / disable tweetcaster or manuallt sync it. Turn off all notifications

---------- Post added at 12:05 PM ---------- Previous post was at 12:00 PM ----------

Pal do what I say and come back again with a new idle log. Then we can talk about it again.
[BetterBatteryStats] Laynee1:
Thanks mate . But I don't want to disable Google contacts and Google stuff sync because I really need a gmail constant sync and i m constantly updating my contacts so in need then synced all the time..

I cant belive that this was the source of problem..

Considering tapatakk, i've disabled notifications, and i will disable update of whatsapp.. And will replace facebook..
[BetterBatteryStats] chamonix:
Release 1.12RC1

New release is up. Entering the RC cycle now with a broader public.
[BetterBatteryStats] Casanoaa:
Just try.

You have to use autostarts app to prevent autostarts from whatsapp app.

If you will do more tweaking.
[BetterBatteryStats] RandomPooka:
You could use Dropbox or another cloud type app with a public share feature. That will keep you from having to do it from a PC, but it will keep the thread clean and tidy looking
[BetterBatteryStats] Antob125:
Any reason it's only 8 bytes instead of 2 mb like the rest?

Sent from my Galaxy Nexus
[BetterBatteryStats] loth77:
some unexpected battery drain

in the last days i'm experiencing some strange and powerful battery drain with my i9100 getting also quite warm.

i have attached 2 dumps, one before and one after a reboot.

i tried to read the dump on my own... but i can't really understand if it is all normal, if there are some troubles or what app is giving me troubles...

thanks for any hint!
[BetterBatteryStats] chamonix:
It shows fine here. Anyone else having problems with the release?
[BetterBatteryStats] Kocai:
I already did turn off all auto starts for maps a long time ago and every time I do a clean install. I don't understand why it still show up on my stat even though I rarely use it. On JB 4.1.2 it didn't.

I did follow your setting dude. I read this thread almost everyday :)

I'm reluctant to turn off all auto starts for whatsapp. But I'll try to sync manually for k9. Tweetcaster was already uninstalled.
[BetterBatteryStats] Casanoaa:
Let me see your next new dump : )
[BetterBatteryStats] Karpfenhai:
Nope works great, no issues golden release?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chamonix:
That's the plan but I am used to 7-9 RCs so let's see what happens. Maybe the beta phase helps speeding things up.
[BetterBatteryStats] chamonix:
Btw I installed cm10.1 (2012-12-23) on my gs3 as there were some reports of unavailable stats: cm10.1 works fine so if anyone has problems please delete bbs' data/cache and post a logcat if the problem persists. The issue may have been caused by a change in prefs.
[BetterBatteryStats] Tungstwenty:
Sven,

Did you read this post related with the new KWL-ish info on (some) 4.2.1 roms?
[BetterBatteryStats] Casanoaa:
This is not an idle log. Unplug leave your phone 4 hours and dump a file.

---------- Post added at 03:45 PM ---------- Previous post was at 03:44 PM ----------

This is not an idle log. Unplug leave your phone 4 hours and dump a file.
[BetterBatteryStats] djvesic:
I unplugged my phone after charging last night. This is what i got in the morning???
[BetterBatteryStats] shoz_on4u:
Hello Sir,

Huge fan of your lovely app. But today a strange thing happened the screenshot will tell the story.

Please excuse me if this problem is already posted. This is a huge thread to scan for it.

http://db.tt/jjf8kFaU
[BetterBatteryStats] Casanoaa:
Deep Sleep (): 5 s (5 s) Ratio: 100.0%

No Data Connection (): 5 s (5 s) Ratio: 100.0%

No or Unknown Signal (): 5 s (5 s) Ratio: 100.0%

Awake (): 5 s (5 s) Ratio: 100.0%

Wifi On (): 5 s (5 s) Ratio: 100.0%

Wifi Running (): 5 s (5 s) Ratio: 100.0%

This tell me that it isnt idle.
[BetterBatteryStats] RandomPooka:
Occasionally, you have to hit the refresh button before it shows the proper stats. I've had that same problem before.
[BetterBatteryStats] djvesic:
I saw that as well. What should I do.

I left my phone through night and in the morning first thing I did was "Dump to file".

This is the file I got. Now when I do it I get this file.
[BetterBatteryStats] loth77:
1,2 GHz (): 0,0%

1,1 GHz (): 0,0%

1 GHz (): 17 s 0,5%

900 MHz (): 0,0%

800 MHz (): 1 m 15 s 2,0%

700 MHz (): 0,0%

600 MHz (): 1 s 0,0%

500 MHz (): 1 m 37 s 2,6%

400 MHz (): 11 s 0,3%

300 MHz (): 14 s 0,4%

200 MHz (): 3 m 2 s 4,8%

100 MHz (): 0,0%

Deep Sleep (): 56 m 4 s 89,3%

thanks for answer.

you can tell me that i left it just one hour and not 4... or anything...but, sorry, to me this seems quite much idle 89,3%

am i wrong

thanks anyway
[BetterBatteryStats] RandomPooka:
Read the post directly above yours.
[BetterBatteryStats] Grigoriy60:
Hi Karpfenhai.

Could you say some words to my last post
[BetterBatteryStats] djvesic:
Aha!

I didn't know about that refresh thing.

I'll post new dump file tomorrow morning.
[BetterBatteryStats] RandomPooka:
It's bitten me on the backside before
[BetterBatteryStats] Casanoaa:
Deep Sleep (): 31 s (31 s) Ratio: 100,0%

No Data Connection (): 31 s (31 s) Ratio: 100,0%

No or Unknown Signal (): 31 s (31 s) Ratio: 100,0%

Wifi On (): 31 s (31 s) Ratio: 100,0%

Wifi Running (): 31 s (31 s) Ratio: 100,0%

Awake (): 31 s (31 s) Ratio: 100,0%

Screen On (): 29 s (29 s) Ratio: 93,5%

This says nothing to me. Please make an idle log. Leave your phone 4 hours after unplug and dump a file.
[BetterBatteryStats] kozmo21:
Uninstall JuiceDefender before you do your next dump.
[BetterBatteryStats] superbobup:
Hi guys. I have a question...I'm trying to see the effects of disabling Maps in autostarts. I use Google Now and I'm not sure if it has any effects. I attached 2 dumps - 1 without using autostarts, and another with Maps disabled in autostarts. I think there's not much difference but the voltage drop is quite different. Thanks in advance guys :D

No autostarts: http://db.tt/Y52V5KzR

Maps disabled: http://db.tt/SsIUUAKI
[BetterBatteryStats] chamonix:
No I missed it! Thanks for bumping it, good stuff indeed

Edit: #320 I will bend the rules and add that as experimental feature to next rc
[BetterBatteryStats] cute_kayani:
Where is only GSM in my S2???:(

tried all settings suggested by you guys in Autostart app but still getting " Service Connectivity" wakelock. Average time of this wakelock according to bbs are 12-14mins in 12-13hrs .

And average battery of my cell are upto 12-13hrs in a day.
[BetterBatteryStats] Casanoaa:
What rom version is this. What firmware? Have you updated to latest firmware
[BetterBatteryStats] chamonix:
Could you please post a bbs dump of that. The percentage calculated for battery stats are impossible to interpret as they are relative and weighted
[BetterBatteryStats] LluisAzm:
I have done all changes you say and know works perfectly!!

I hope it continues working like now!

Thanks for all your job and your time, Android is the best because of people like you!
[BetterBatteryStats] Karpfenhai:
Sure I can, it's Christmas and I'm with my family right now, sorry for not answering asap :)

More details was related to chrome / trout devices setup.

A logcat can either be done by terminal emulator by issuing the following command:

Su

#logcat -d /..../sdcard/logcat.txt

or by using the bbs embedded function.

Is the issue still ongoing? Did you reboot in the meantime? Did you freeze system functions? Did you install new apps since the issue comes up the first time? These are more needed details too.. :cool:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Casanoaa:
Have you tried updating your firmware through kies or downloaded latest firmware from sammobile.com?
[BetterBatteryStats] cute_kayani:
What latest it should be....

Its time for awaiting JB. which is not available yet. I Don't think so is there any minor update available. But i will check it.

And from sammobile should i get stock latest rom?
[BetterBatteryStats] Casanoaa:
Yes

---------- Post added at 09:52 PM ---------- Previous post was at 09:39 PM ----------

Uninstall juicedefender

Use only gsm and not 3g while i think your 3g signal isn't good there? (connectivitywakelock)

Uninstall facebook and use another app for that

Use pop3 settings for email and disable exchange with titanium backup. Manual sync.

Disable this with tb
[BetterBatteryStats] chamonix:
w

Ok I looked into it and am a little confused:

My N7 (paranoid 2.99 B8 kernel 3.1.10) shows in /sys/kernel/debug/wakeup_sources (but I also have /proc/wakelocks)

and that is different from the format from the linked post

The original /proc/wakelocks format is

That raises following questions that I hope someone with the right device can answer:

- how do I recognise that /proc/wakelocks is not to be used (does the file not exist anymore or is it 0-sized?

- how do I find the format of /sys/kernel/debug/wakeup_sources I should apply?

- is my assumption correct that /sys/kernel/debug/wakeup_sources is world readable (it is on my N7 but not on my ubuntu 12.10 with kernel 3.5.0)

Furthermore the mapping between the formats is something we will have to experiment with.
[BetterBatteryStats] fndpena:
Hey Hilmesh...

- Does not "OMACP v5_1210_4_1" responsible for handling SMS? Disabling it would break it.

- I read somewhere that "Network Location" is needed to find GSM networks and it shouldn't be disabled (any side effects on you device?)

- "SyncmlDS v3_1210_2_1": I still don't know what it is and what it does. Any idea?

thanks
[BetterBatteryStats] Karpfenhai:
The folder is empty, the /wakelock/ doesn't exist anymore. More I check later on my Nexus.

Edit: now it's later:D

Here my content:

Omacp can be frozen w/o any issues.

Syncmids is Samsung related and can be dismissed too.it's for calendar sync per example (Samsung calendar!)

Tapatalked from my Samsung GT9100
[BetterBatteryStats] fndpena:
What about "Network Location". Know something about it?
[BetterBatteryStats] cdzo72:
Yeah I think network location is necessary for GSM lock... without it no internet, SMS or phone calls... at least that's my experience on every device I've had
[BetterBatteryStats] chamonix:
The testfile I had is using tab and double-tab as a separator in an inconsistent way :D

I need some more testing but in the meantime you or someone else may want to review the commit for adding wakeup_sources to the lib and the commit to BBS for the same.

Edit: the first commit is for testing only as I need to make my phone believe ther is no /proc/wakelocks anymore
[BetterBatteryStats] Karpfenhai:
Read below.

Nope, afaik it's only responsible for location services based on gsm towers. Aka the more battery friendly method.

It triangulates your position with the help of the cell towers, if you disable it, sms and stuff should still work. Just try it.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Casanoaa:
No its only neccassary if you want to lock (location) gps. Example you will check in and your phone must find location.

Just disable all locationsservices in rom/settings if you want better battery life. If you need you can enable and disable when you need to check in for example.
[BetterBatteryStats] Tungstwenty:
I have the same situation.

wakeup_sources is there, has a couple of entries with all zeroes, and fewer columns that proper dumps from 4.2 devices.

My guess is that newer kernel versions have extended stats being collected and reported, and on top of that the drivers (all?) were refactored to use this instead of wakelocks.

Regular KWLs still exist, as /sys/power/wake_lock and wake_unlock still exist (right?) for userspace access, but from what I gathered the stats (/proc/wakelocks) aren't being collected nor reported. It won't be possible to measure any code that is still using the old mechanism. Unless there's a fallback so everything ends up as one form or another of wakeup source, that is.

- until a better way, the best heuristic might be reading wakeup_sources (if it exists), double-check if there are any non-zero entries, and if the columns match what's expected (see below)

- my guess is that the "new" format is the right one, with the additional columns

- I guess only experimenting will tell. Plus, since there was already some trouble reading /proc/wakelocks because of apps changing its permission after every boot, it might be worth falling back to root access if a normal read doesn't work

If there's a straightforward mapping between the 2 concepts, that is :)

I've been wanting to dig a bit into the sources to try to understand what the measurements mean but didn't have the time yet. And not having it on the kernel I use doesn't help either.
[BetterBatteryStats] jontyl:
Hi, everyone. I have a rather specific situation I'm trying to investigate. I can live with the "regular" battery drain I get during daily use; the problem I have is during my nighttime tasker profile I have set up that essentially does this: 1) puts phone on airplane mode, 2) wakes up phone every hour on the hour to check for messages, 3) turns airplane mode off when I wake up.

I accomplish #2 above by having tasker turn airplane mode off momentarily (for 30 seconds) & also using the Secure Settings plugin's "Wake Device (screen dim)" function. The reason I have to use the wake device function is because the intermittent message checking doesn't work if I just set airplane mode off for 30 seconds.

This profile used to work very well for me until I upgraded to AOKP JB Milestone 1. With JB of course came Google Now (which I suspect may be the source of the problem?). Now during the night my phone usually does not enter deep sleep. Last night BBS had this to say:

Wakelocks

=========

NetworkLocationCallbackRunner (com.google.android.apps.maps.Maps): 10 h 55 m 11 s (39311 s) Count:124 67.7%

The rest of the log doesn't really alarm me too much (though I think most people in here would be aghast at my AlarmManager wakelocks). Here's the whole dump, though: https://docs.google.com/open?id=0B72kS1FiAVfiYXN6NENRVjNKblk

This really seems to be above and beyond the typical battery draining of location services and has entered the realm of buggy behavior. I would really rather not disable location services entirely, since I find them useful. I already have Latitude and any other maps location reporting turned off; the location services is essentially there for some simple Google Now functions (like weather). I've actually tried using Secure Settings to turn off location settings altogether during my night time profile, but the problem persisted. The only repeatable solution I've found is to gimp my nighttime profile to not work at all (by turning off the Secure Settings task). Any help would be appreciated.
[BetterBatteryStats] qwerty1231121:
Anyone know what is m3_jackdet? It appears under kernel wakelock
[BetterBatteryStats] fndpena:
Anyone knows what is "BadgeProvider 1.0"?

What about "ContextProvider"?

I couldn't find any good explanation about both apks...
[BetterBatteryStats] EtienneBordeaux:
Can anyone please analyze my dump file? Thanks in advance. :thumbup:

http://db.tt/cFYuwa0j

http://db.tt/VRzQLZ7q

Sent from my GT-I9300 with Omega v35 + Perseus alpha 29.2
[BetterBatteryStats] PerkinsII:
Thanks to this app you found a wakelock that was killing my battery :).
[BetterBatteryStats] Thomas_BA:
IMHO both are responsable for handling SMS messages.
[BetterBatteryStats] MRDOCA:
hey just wondering if i disable the mentioned "google service framework" options in autostarts will that prevent my bookmarks syncing? somethings stopped them syncing and i cant figure it out
[BetterBatteryStats] Hilmesh:
hi there, I am not sure about that. because I have both frozen and there is no issue with sms sending or receiving. Badge provider explanation i do not have. as for ContextAwareservice it looks to be related to whenever you attached an external headset to your device.

---------- Post added at 06:07 AM ---------- Previous post was at 06:00 AM ----------

Hi fndpena, sorry about network location. i do not use GPS much though i remember i did not face any problem even with it being frozen for that occasional use. i will test it for you today and post the results soon.
[BetterBatteryStats] stanley08:
I lost 2% without touching my phone. Someone please take a look at mine. Thanks. :)
[BetterBatteryStats] sewe:
Take a look at this thread, the guy is loosing battery fast and android reports that the phone is awake almost the whole time and bbs is saying the opposite

http://xdaforums.com/showthread.php?t=2059600
[BetterBatteryStats] Hilmesh:
hey there fndpena,

i went outside my office and checked the gps and navigation. everything is working alright. it is locking to my position. so i suppose the freeze is not affecting. but like i said i am an occasional user of GPS. hope this helps.
[BetterBatteryStats] Track2k:
BBS dumb file - battery improvement

Hello together,

first fo all thanks for this great app and the possibility to find out the battery drainer!

Let's directly start with my BBS dunb file.... I cannot figure out how to improve my battery time. Hopefully you can help me.

BBS file can be found as attachement

View attachment BetterBatteryStats-2012-12-27_074046022.txt

Btw. I already changed the settings for location service http://xdaforums.com/showpost.php?p=29420959&postcount=7059

PS: Hope you guys had a great christmas time!
[BetterBatteryStats] Casanoaa:
This looks good. You can turn off all sync in rom/settings.

If you want further tweaking you can use autostarts and turn off autostarts of whatsapp

---------- Post added at 11:51 AM ---------- Previous post was at 11:47 AM ----------

Overall it looks fine but you can do this :

Uninstall or disable autostarters for viber.

Uninstall gosms and use another

Uninstall beautyfullwidgets

Uninstall bmw

Last optimize maps regarding post 3

---------- Post added at 11:54 AM ---------- Previous post was at 11:51 AM ----------

Maps:

http://xdaforums.com/show...php?p=29420959

Uninstall facebook and use another app to facebook.

Turn off all locations services in settings/rom.

Don't use push but only manual sync mail

Disable google search and all google stuff, google apps etc. with tb
[BetterBatteryStats] yon_yes:
I would like to understand, what's the meaning (in the battery context) of count vs duration.

for example, my phone, after an hour of use, the RILJ partial wakelock count is about 250 but the duration is only one minute.

Another example, in same time, the

AlarmManager count is about 400, but the duration is only 20 second.

So, the count is very high but the duration is very low.

what's the meaning for me?

Thank you
[BetterBatteryStats] EtienneBordeaux:
Thanks a lot buddy. :thumbup:

I'll try autostarts for viber and maps. Hope I wont mess it up. How about go sms and beautiful widgets, is there another way instead of uninstalling? What do you suggest as a replacement for go sms which doesnt cause wakelocks?

By the way my phone drains 4-5% for 8 hrs overnight with everything turned off.

Sent from my GT-I9300 with Omega v35 + Perseus alpha 29.2
[BetterBatteryStats] Casanoaa:
No problem. Try and see if you can disable autostarts for them too but i domt mind you can do it.

I use stock message app i think all other are doing wakelocks and alarms.
[BetterBatteryStats] cute_kayani:
From sammobile which firmware should i flash. My s2 is from h3g UK and am in Pakistan. Which one will be okay.
[BetterBatteryStats] Karpfenhai:
Most of us are using jb right now, which is ls6, but you got this recommendation weeks ago..for ics I can recommend lp4.. quite old but good..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Track2k:
No idea yet?
[BetterBatteryStats] azrash:
By the way, BMW can be kept, you just need to disable the history logging and that should eliminate it's Wakelocks. I am still using BMW til today.

I have stopped using beautiful widgets and use snowstorm instead. Better designed app battery wise. To be honest, 0.5% battery list per hour is very good already. I think you can just keep your current setup. Mine is currently at 0.2%/h
[BetterBatteryStats] fndpena:
First, Thanks to Chamonix for this awesome app. Really, I never thought I could get so much from my device and BBS was crucial to get things fixed.

I'm pretty satisfied with my battery life. But I think there are too much wakeups from android system and GSF. Autostarts are already disabled (as Hilmesh settings) and most (not all) Google apps are frozen in TB.

Any tips to how decrease these wakeups?
[BetterBatteryStats] chamonix:
The best way to understand why count of wakeups are important is to compare it with a car:

- driving 1 Km at constant speed

- driving 1 Km by blocks, starting and stopping your engine every 10 meters
[BetterBatteryStats] chamonix:
I will start with following design:

- if /proc/wakelocks does not exist use wakeup_sources

- assume wakeup_sources has the new format

- use the mapping here (old) and here (new)

That code will run starting with RC2 and I hope to get enough feedback till release to be able to exclude any negative side effects.
[BetterBatteryStats] itais:
Hi,

How can I see the graphs (blue) that are shown in the first post ? :confused:

Thank you in advance,

Itai.
[BetterBatteryStats] cute_kayani:
Bro. I want to flash it to Official Rom 4.0.4 for Pakistan. Plz give some hints.

I have h3g UK version of S2. So if i change it to ICS for Pakistani version of ROM which is 4.0.4

PDA I9100JPLPH

CSS I9100OJPLPF

And my current which are,

PDA I9100XWLPY

CSS I9100H3GLP7

Thanks.
[BetterBatteryStats] stanley08:
Okay, thanks bro, but.. 1stly, explain wat u mean, and secondly... I won't be able to see my messages? I used to have 1% drain in 8hours before. But now its 2 - 3% :D i think diff was sync. still! pls explain... :)
[BetterBatteryStats] chamonix:
Release 1.12RC2

New release is up.

To all nexus users who were missing kernel wakelocks please check if the wakeup_sources implementation makes sense. For all other users there should be no difference.

For testing please disable the "filter stats" prefs to make sure no entries are suppressed due to rounding errors. My first impression checking the file and testing with a mocked file was that times are now expressed in milliseconds instead of microseconds previously. I'd like some feedback on whether times shown seem realisitic.
[BetterBatteryStats] Casanoaa:
Then you should look for UK firmware

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

I am talking about this

fullsync (): 13 s (13 s) Count:15 0.0%

With disabling sync. I mean sync everything manually.

What do you want to have explained. Sorry I am too fast sometimes. Because most of the things I here talk about is mentioned 1000 times before. But i surely will help
[BetterBatteryStats] mbze430:
This is all I have to say....
[BetterBatteryStats] Casanoaa:
You are on latest stock firmware regarding sammobile.com i checked it for you.

GT-I9100 - United Kingdom (H3G)
PDA: I9100XWLPY
CSC: I9100H3GLP7
Version: 4.0.4
Date: 2012-10-05

http://www.sammobile.com/firmware/?page=8&view=7256

I don't understand why you can't enable only gsm in that ROM.