yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] wuhahaha:
Can somebody please take a look at my bbs log.

I would very appreciate it, have a drain of 5% per hour when doing nothing. Don't think that's normal. I left it while I was asleep for like 6 hours, hope someone can see what's the bad thing!

http://db.tt/6wRaOB42
[BetterBatteryStats] Karpfenhai:
Nope,I don't, should I ?

Let me know if you need another logcat, feel free to send me an alpha version if it helps.

Good weekend to you!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] oae08:
Hey guys can someone help me identify my battery drainer :) thanks in advance.
[BetterBatteryStats] It_ler:
1. Check if there are any location service option enabled in your ROM/Google settings. Please disable ALL location servbice options.

2. In post #3, there is a link to Karpfenhai's description of how to "optimize" Google Maps. Please have a look at it and give it a try.

3. I see some Fast Dormancy wakelocks. Try to change the Fast Dormancy state on your phone (e.g. with Gokhanmoral's Fast Dormancy app from Play store). Then check your wakelocks again.

4. Skype is very busy on your phone. Try not to start it or disable/freeze it for the next idle dump. Just to see the difference in battery life.

5. "com.google.android.apps.genie.geniewidget.Nieuws en weer" and Google quick search box are active. Maybe something to disable/freeze too?!

---------- Post added at 01:24 PM ---------- Previous post was at 01:11 PM ----------

1. "com.alarmclock.xtreme.Alarm Clock Xtreme" is using your phone. Maybe you should use another clock app?! Just to check its influence on your battery life.

2. Always have a look at "com.android.exchange (): Wakeups: 212" in Alarms. This seems to be very high number of wakeups for Exchange IMO. It has something to do with your sync settings. Please check all your account/mail/calendar/etc. sync options.

3. If you don't need Facebook and Google+ every day, disable/freeze it.
[BetterBatteryStats] Casanoaa:
Then uninstall gemini and that will disappear.

You can also use the app autostarts
[BetterBatteryStats] Caedusaran:
Hello everyone,

I seem to have a large discrepancy between my awake and my screen on time and I have no clue what's causing it. Any chance anyone will be able to shed some light on this? Also, what exactly is "battery-monitor"? Is it BBS itself? Because if it is, isn't it a little ironic that BBS would be the thing keeping my device from entering deep sleep? Any help is greatly appreciated!
[BetterBatteryStats] It_ler:
1. Check if there are any location service option enabled in your ROM/Google settings. Please disable ALL location service options.

2. I see some Fast Dormancy wakelocks. Try to change the Fast Dormancy state on your phone (e.g. with Gokhanmoral's Fast Dormancy app from Play store). Then check your wakelocks again.
[BetterBatteryStats] adxs2:
Actually i just restarted the phone and those entries are no longer showing up on BBS. No need to turn off auto-sync now i guess.
[BetterBatteryStats] jontyl:
Hi, everybody

I've been trying to track down a solution to a problem that several people seem to be having, as evidenced by these other threads:

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

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

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

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

There's even some references to it in this very thread (two from chamonix):

http://xdaforums.com/showpost.php?p=16513383&postcount=401

http://xdaforums.com/showpost.php?p=24496609&postcount=4150

http://xdaforums.com/showpost.php?p=22037859&postcount=3006

This is basically what happens:

1) App that uses GPS is opened

2) GPS location services is turned on (either manually or through a tasker task)

3) App is closed

4) GPS location services is turned off (again, either manually or through tasker)

5) GPSlocationProvider causes constant partial wakelocks -> Phone won't deep sleep

6) GPSlocationProvider continues to cause partial wakelocks until phone is restarted

This seems to be span across several phones and ROMs. I have yet to see an actual solution. The replies are generally, "this has already been solved. Please search." I think people are thinking it's the generic Maps problem that is referenced in the opening posts of this thread. I'm fairly certain that this is not the problem, though.

I've done several days of observation and tweaking with BBS, and this is pretty much the only problem I have left I want to solve. I'm not including a dump here because this is really the only thing I want to resolve (but I can include a dump if need be). Suffice it to say, I'm 99% sure that the process I'm describing above is preventing deep sleep for me.

If it makes a difference, I have a Samsung T989 with AOKP JB Milestone 1. Network location services is usually on, and GPS is turned on on demand via tasker only for certain apps. Seriously, though, it's not just an issue of a rogue app of leaving location services on. I'm REALLY sure the problem is the bug I'm describing above.

Any help would be much appreciated. Thanks!
[BetterBatteryStats] Caedusaran:
Thanks, it seems that fast dormancy is indeed not supported by my carrier. Just rooted my phone and going to disable that now :)
[BetterBatteryStats] cute_kayani:
i delete Gemini, plz tell what settings are good with auto startup app for wake lock, like service connectivity and others.

Now my play store giving error "server error " i delete cache and data of play store don't know what's wrong.

---------- Post added at 10:24 PM ---------- Previous post was at 10:19 PM ----------

Was fighting with service connectivity wakelock but now more worst checkin handoff wakelock eating battery. :confused::confused:

plz tell me settings to do with autostarts app. Gemini sucks...
[BetterBatteryStats] Casanoaa:
Open autostarts and in view option untick all .

Next do this

http://xdaforums.com/showpost.php?p=34152064&postcount=10051
[BetterBatteryStats] It_ler:
As your phone is rooted now, remember to enable root options in BBS app menu (> Advanced).

Then you got also Network and Alarm stats in BBS dump.
[BetterBatteryStats] cute_kayani:
Was fighting with service connectivity wakelock but now more worst checkin handoff wakelock eating battery. :confused::confused:

plz tell me settings to do with autostarts app. Gemini sucks...
[BetterBatteryStats] It_ler:
The answer is just two post above yours ... have a look :eek:
[BetterBatteryStats] cute_kayani:
server error on play store, and wakelock problem did what you said via autostart app.
[BetterBatteryStats] Casanoaa:
Go back to gemini app and normalize the settings of google services framework.

Have you touched google play store ?
[BetterBatteryStats] ufjay5:
I am running Clean Rom5.0 on SGS3...any thoughts? I have only been getting 10 hours or so with about 2 hours screen time. Thanks
[BetterBatteryStats] cute_kayani:
server error on play store, and wakelock problem did what you said via autostart app.

no just change settings in gsf and it won't save in gemini. everytime it goes to default so i delete it.

after that play store giving error.

i think i should hard reset and everything will be okay.

after that only connectivity wakelock will be problem. that will be okay i think. to minimize many other problem comes up.

---------- Post added at 11:36 PM ---------- Previous post was at 11:19 PM ----------

server error on play store, and wakelock problem did what you said via autostart app.

no just change settings in gsf and it won't save in gemini. everytime it goes to default so i delete it.

after that play store giving error.

i think i should hard reset and everything will be okay.

after that only connectivity wakelock will be problem. that will be okay i think. to minimize many other problem comes up.
[BetterBatteryStats] kozmo21:
Wifi is causing a lot of wake. Try to assign a static IP and see if that helps, or turn off wifi when not using it... Also ESPN app is a battery hog. I liked the app too, but it caused too much battery drain for me, so I uninstalled it.
[BetterBatteryStats] ufjay5:
I have little to signal in my house so that is why I keep the WiFi on. How do I assign a static IP? Thanks
[BetterBatteryStats] thechaoz:
Thanks I'll give it a try.. All the trouble apps remaining don't have a refresh interval etc so I'll hav, to remove or check with a browser.. I was searching far and wide for an app like Droid wall etc that would restrict access to the Internet UNLESS the user started the app.. Not sure if it's possible but it would be nice... Anyway I'll tweak and see how it goes.. Last night battery drain was much higher 8%
[BetterBatteryStats] chamonix:
I checked on the database error: it's a false positive, not very elegant though. When saving a reference I try to store it (insert) and if there is a primary key violation (on reference name) I update an existing reference. I will change that to something neater not throwing an exception.

For the rest I am still checking the logcat, noticed an exception occuring in the widget that I'll try to reproduce. After a few fixes I will try to dig deeper into that "freeze" on unplug. It doesn't happen for me and I don't have a widget so that may be related as I believe there is a broadcast sent on unplug.
[BetterBatteryStats] It_ler:
In Settings > Wifi click menu button and select "Advanced". There you can enable Static IP and set the needed parameters.

And you should also check the settings on your WLAN router to give your phone always the same IP.
[BetterBatteryStats] chamonix:
Release 1.12B5

New beta is up. I hope we approach the break even where I start fixing mre bugs that I add between betas ;)
[BetterBatteryStats] werked:
Sweet man. Thanks for all your hard work.... Much appreciated!!
[BetterBatteryStats] jontyl:
Sorry, I don't mean to bump my own post, but I just did a quick test where I toggled GPS on/off manually (rather than through tasker & secure settings), and it didn't cause the wakelock. I'll have to play around with it a little more, and maybe I'll try to get some help from the secure settings dev.
[BetterBatteryStats] Karpfenhai:
Much better now, at least the app is working again, but the widget it's still out of order.

App falls back to boot on start but can be set back to since unplugged. Edit it has lost the choice, setting back to since unplugged fixed the issue.

But auto refresh stats upon load fails, manually refresh works.

Update,

After reinstalling and full reconfiguring, the widgets are operative again, yeah!

But, kwl and pwl are remaining empty, despite the app shows values, kwl in app is correct, pwl shows since charged only, even if I set it to unplugged and refresh, maybe another db issue?

Nevertheless you are on the right track!

Update 2, it seems the boolean operation for kwl does work (subtraction) but not for pwl, i can see the attempt in the log, but the result is wrong, both are using the same ref.

I'll add a logcat soon.

View attachment logcat-2012-12-15_003031775.txt

Done..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] c0sm1c:
Pls help me

I Never get 3 hrs screen on :(
[BetterBatteryStats] Hilmesh:
Hello all, When you say not to use push in Gmail app. means not to use autosync right?
[BetterBatteryStats] It_ler:
Yes, a friend of mine had the same GPS wakelock issues on his HTC Sensation.

He created nice profiles for enabling/disabling wifi, GPS and some other stuff.

For wifi, this seems to work fine - "wifi on" shows 100% but wifi running only the time when the WLAN conntection was used according his profiles.

But for GPS, this mechanism seems not to work that good.

The consequence of the GPS wakelock is a significantly worse battery life. So he disabled his GPS profiles and toggles the GPS state manually now.

Maybe this is caused by a bad implementation (compared to wifi mechanism) or it is caused by some "bad" apps which only look for the GPS on/off state and for "on" trying to get a location instead of looking for the "running" state ... but this is just a suggestion.

---------- Post added at 08:26 AM ---------- Previous post was at 08:03 AM ----------

Something is strange in your BBS dump ... maybe the plug/unplug event was not recognized correctly.

Try to plug/unpplug the charger/USB cable again before recording the BBS dump (for about 4 hours minimum) next time.

I see nothing spectular ... only a Fast Dormancy wakelock. So try to change the Fast Dormancy state of your phone (e.g. with Gokhanmoral's Fast Dormancy app from Play store).

Then check your wakelocks again.

Good luck !

---------- Post added at 08:29 AM ---------- Previous post was at 08:26 AM ----------

If you have no option for enabling/disabling push in Gmail app itself, then yes, disable auto-sync ... pull your mails/notifictions/news manually to save battery power.

Compare the battery life with and without auto-sync and decide afterwards, if you want the extra time on battery or prefer getting the mails nearly at once.

It's your decision.
[BetterBatteryStats] Hilmesh:
Thanks. :)
[BetterBatteryStats] yahyoh:
every thing seems working good with latest beta :good:

edit : some times didn't refresh automatically the status
[BetterBatteryStats] chamonix:
Thanks for the valuable info. I had trouble with both refs being identical as well yesterday but couldn't reproduce. I think it may be happening in cases when a new reference is added / the order of references is changed.

I was also able to reproduce the "freeze" at unplug: it's weird because nothing happens in the code at that time. I will explorer concurrency (as widgets all refresh at that time) and will also look into concurrent root operations; my observation were that the freeze only occured when the 'root features' are on, it would be great if you could confirm on that as it would narrow down the cause a lot
[BetterBatteryStats] deaddy93:
hi there, i hope i`ve done it well.. kernel wakelocks and alarms.. can u check it for me? :) thanks a lot:)
[BetterBatteryStats] cute_kayani:
DID hard reset..... Again......

Now only connectivity service wakelock appears.

Checkin handoff Gone:eek:

Plz tell partial wakelock are good if they are less than 1min? 2Min? Or 5min..?

and in percentage ?1%, to 4%
[BetterBatteryStats] It_ler:
1. Pleae install and use latest stable BBS app version, which is ATM v1.11.0.0.

2. It seems that the plug/unplug event was not recognized correctly. Try to plug/unplug the charger/USB cable befor recording a BBS dump next time.
[BetterBatteryStats] Casanoaa:
We can't answer that question. Don't hang you up on this.

We can answer that question if you have an idle log posted here.

4 hours after unplug where you don't touch the phone
[BetterBatteryStats] cute_kayani:
It is very basic question, if you can't tell this how can you examine the idle dump?:D:D:D

---------- Post added at 07:50 PM ---------- Previous post was at 07:48 PM ----------

Connectivity wakelock are 1 to 3% in my s2. Average use of and battery timing 10-13hrs.

Dump file are also attached in previous posts.

Gemini doesn't work for me.

Gsf is tha cause.
[BetterBatteryStats] Casanoaa:
We need details my friend. 1-4 % out of one days use of a phone is normal.
[BetterBatteryStats] cute_kayani:
Hmmm okay.. but what's the solution for connectivity wakelock.it stills there.

And i check others dump files it only in mine.

And why it shows no data connection in dump file in "other " section and deep sleep are below.

Battery Info

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

Level lost [%]: 10 Bat.: 10% (100% to 90%) [3.8%/h]

Voltage lost [mV]: 123 (4128-4005)

===========

Other Usage

===========

No Data Connection (): 2 h 36 m 48 s (9408 s) Ratio: 100.0%

No or Unknown Signal (): 2 h 36 m 48 s (9408 s) Ratio: 100.0%

Deep Sleep (): 2 h 3 m 22 s (7402 s) Ratio: 78.7%

Awake (): 33 m 26 s (2006 s) Ratio: 21.3%

Screen On (): 30 m 24 s (1824 s) Ratio: 19.4%

Wifi On (): 27 m 14 s (1634 s) Ratio: 17.4%

Wifi Running (): 27 m 12 s (1632 s) Ratio: 17.3%

Phone On (): 2 m 38 s (158 s) Ratio: 1.7%

=========

Wakelocks

=========

ConnectivityService (Android System): 58 s (58 s) Count:265 0.6%

ActivityManager-Launch (Android System): 39 s (39 s) Count:108 0.4%

AudioOut_1 (1013): 31 s (31 s) Count:8 0.3%

BoatBrowser (UID): 11 s (11 s) Count:1 0.1%

RILJ (Phone): 8 s (8 s) Count:116 0.1%

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services): 5 s (5 s) Count:36 0.1%

AlarmManager (Android System): 5 s (5 s) Count:264 0.1%

SMSDispatcher (Phone): 4 s (4 s) Count:2 0.1%

sleep_broadcast (Android System): 4 s (4 s) Count:137 0.0%

DHCP (Android System): 4 s (4 s) Count:139 0.0%

GSM (Phone): 3 s (3 s) Count:4 0.0%
[BetterBatteryStats] It_ler:
Just some findings about Autostart changes in Gemini Apps Manager for Google Service Framework (and Google Play Store) => http://xdaforums.com/showpost.php?p=35477005&postcount=1206

It seems that the Autostart changes are saved and active, but not correctly shown in the app.
[BetterBatteryStats] cute_kayani:
Plz tell should i flash radio? And if yes plz tell me how and which one is good for me?

I read somewhere flashing radio can minimize connectivity wake lock and it will be good for signals and battery.

THANKS
[BetterBatteryStats] yahyoh:
anyone noticed the new Google plus update causing sucks camera monitor partial wakelock :(

i disable it now to test if my battery will become better :rolleyes:
[BetterBatteryStats] RandomPooka:
I've long ago ditched G+ on my phone because it was destroying my battery like some sort of Mongol horde
[BetterBatteryStats] yahyoh:
LOL the funny thing about android is google apps is most battery sucker :/ ( google now - google maps - google plus - etc )

WTF with Google did they release the apps without testing them :silly::silly:
[BetterBatteryStats] cute_kayani:
I disabled g+, google play movies, play books, maps,
[BetterBatteryStats] Karpfenhai:
Poor you, cuz in the meantime I have the solution for check-in handoff :)

Also for system updater service is going mad, but afaik this affects only the ls6 (jelly) Rom.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] It_ler:
Let me guess ... has it something to do with a disabled autostart event/option in Gemini Apps Manager?

Maybe it's easier to post the solution than letting me guess again and again :confused:
[BetterBatteryStats] Casanoaa:
If i turn off check in then that wakelock pop up
[BetterBatteryStats] Karpfenhai:
Nope, unfortunately it's not that easy.. plus it was the reason long ago to dismiss gingerbread...

3 steps are necessary to fix it.

1. Go to Google play service, uninstall updates and clear data.

2.clear data from playstore

3. Delete the Google account from phone and reboot, re-add Google account ... issue fixed.

Better not touch the check-in on gsf, as I said initially, don't mess with gsf..

System updater issue:

Even if you freeze the system update apps from the Rom...

...the gsf will still receive the trigger, it seems ls6 is ready to update (can anyone confirm this btw?)..

To prevent this service going mad, disable the following autostart within your favorite app:

That's it.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] VivaErBetis:
I am experiencing a problem with CPU Usage (using Beta 4+). The timers are not correct and the CPU percentages are negatives and totally wrecked... Mobile phone: LG Nexus 4 under JB 4.2.1.

Thanks!

BTW: Beta 3- works OK.
[BetterBatteryStats] Karpfenhai:
Hmm...

Unplugging with root disabled seems to fix the differences between kwl and pwl.

Re-enabling root leads to no reference set on alarm and network section.

Will replug power now and report the difference soon.

3 hours later, it seems bbs does what it's intended for :)

Will watch and report further..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bobdoblo:
Is someone else having this trouble?
[BetterBatteryStats] oae08:
Yes me too I have "batterymanager" and powermanagerservice with high percentages! Any solutions?
[BetterBatteryStats] bobdoblo:
Are you using Gemini or autostarts?

If so turn everything in google services framework back on until i can find out which is safe to stop.

Powered by *NeatROM*
[BetterBatteryStats] Hilmesh:
Hello Bob,

Please see my (borrowed from Karpfenhai) settings for GSF using autostarts. i had also faced the problems of checkin and connectivity whenever i tried with Gemini but right now things look ok. also see attached dump file for reference. also if there is anyway i can improve further please do suggest.
[BetterBatteryStats] dipenrique:
I am unable to do it. It generates blank dump file.

I charged the phone to 100%, and then locked the phone and left it.

Then after a few hours i opened BBS > dump to file.

Where am I making mistake?
[BetterBatteryStats] Dasaa:
working with stable version...here it is
[BetterBatteryStats] It_ler:
=> Yes, I had after testing to change different autostart config events/options with Gemini Apps Manager for Google Service Framework and others.

I could get rid of these wakelocks by re-enbling all autostart condig events/option in Gemini Apps Manager for GSF ... and AdvanceS and Google Play store. That were the ones I tested with.

Then I rebooted the phone and checked the wakelocks again.

Fortunately they were gone.

So I only disabled the autostart on boot and left everything else untouched.

PowermanagerService (kernel) wakelock usually stand for another wakelock in userland => partial wakelock.

So have a closer look at your partial wakelocks to find the real culprit.
[BetterBatteryStats] Karpfenhai:
Mate, you can safely disable the update features.

@hilmesh, don't do screenshots while filter is activated :)

Tapatalked from my Samsung GT9100
[BetterBatteryStats] cute_kayani:
Plz tell me the solution for connectivity wakelock.

I disabled many things in gsf via autostart app.
[BetterBatteryStats] bobdoblo:
Yes, it was the GSF settings in Gemini.

Told you your screenshots weren't correct Karpfenhei:p

Powered by *NeatROM*
[BetterBatteryStats] adxs2:
Sorry to bother you again but i am trying to further tweak my battery life.

In this latest log, i am seeing quite a lot of wakeups from "android" (221) and "com.google.android.gsf" (52). Another minor thing is the difference between "wake time" and "screen on" which in this cases is 17 minutes. Not sure if that is ok or not? Everything else seems to be fine except these two. The phone has been idle for 8 hours during which time it wasn't touched at all.
[BetterBatteryStats] bobdoblo:
If its same problem to do with autostarts then delete the app and reinstall it just turning off the "on boot completed" on certain apps.

Powered by *NeatROM*
[BetterBatteryStats] It_ler:
Looks very good IMO :good:

Install latest stable version of BBS app, which is ATM v1.11.0.0.

Please don't paste the logs directly into your post. Just attach the files. It makes the thread and your post easier to read.

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

1. I see Fast Dormancy wakelocks. Try to change the FD state (e.g. with Gokhanmoral's Fast Dormancy app from Play store).

2. Enable root options in BBS app menu > Advanced.

3. Please provide an idle dump, i.e. while doing nothing / screen off all the time.
[BetterBatteryStats] Hilmesh:
Hi there, yup i noticed that after putting in the screen shots. will remember in future :)
[BetterBatteryStats] It_ler:
Very good IMO :good:

Biggest partial wakelock is DHCP. So try to change wifi settings for your WLAN connection (from DHCP) to static IP.

Then check your battery life again. If it's better, be happy. If it's not better (or worse), then chane it back to DHCP.

Good luck and report back, as I am testing the difference between DHCP and static IP myself currently.