yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
What version of BBS are you using? please post a dumpfile
[BetterBatteryStats] chamonix:
that's no wakelock but wakeups. Start by reading how to prepare an idle dump and proceed, you will get help
[BetterBatteryStats] chamonix:
The dumpfile is incomplete. Looking at the file you have not plugged / unplugged after installing BBS or after boot. Please read the first posts about how to take an idle dump and post a complete file
[BetterBatteryStats] itsLYNDZ:
I did tho. I know how to do it. Not sure why it didnt take...
[BetterBatteryStats] Rhonin86:
Missing DUMP

Hi Charmonix,

here is the dump - hope you can find the cause for this weird behavior :o

Cheers

Rhonin
[BetterBatteryStats] Karpfenhai:
Unfortunately the dump is incomplete, but 30 mins of awake time its not to bad.

Please do an plug - unplug action and provide another reading (idle time only).

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Chris_84:
Edit2: Sorry for stolen your time. Found the bad guy by myself.:)

He guys got some strange wakelocks and just wanna ask if somebody can explain me what the first entrie means. Added a screenshot, I will added a dump file later:

Edit: Here's the dump file:

http://db.tt/9YFyuvkf
[BetterBatteryStats] Hk.Tang:
I had a battery drain issue on this .. Never deep sleep even after I charged full on 1st cycles .. the '' Suspend_Backoff '' cause my battery drain , any solution ? :confused:

Here is my bbs log ..
[BetterBatteryStats] Kevinpw:
Hi guys,

Sgs2 here running ICS 4.0.3 baseband I9100xxlpw. The issue is that it's awake without any reason that I can see for a long period of time. Let the BBS screenshots show you:

please click for screenshots: http://xdaforums.com/showthread.php?p=29989247#post29989247

BBS dump attached.

What's annoying me is that I have a Tab 2 7.7 also running ICS 4.0.3 with more or less the same apps except for whatsapp which is on the Galaxy s2 and that Tab can easily run more than 24 hours. Anyone can help me diagnose? Please let me know what other info you need. Thanks!
[BetterBatteryStats] gbenj:
Why is SDcard so high?

Hi,

I'm trying to narrow down why my "SDcard" usage is so high. The attched screenshot and dump are from 100% last night, left the phone unplugged on wifi overnight till it was about 70% this morning, approx 8 hours later.

I don't think I'm getting terrible life, just trying to figure out why the usage of the "SDcard is so high. See screenshot and dump.

Please let me know if anyone needs any more info or can shed some light.

Thanks.
[BetterBatteryStats] gbenj:
Heres another screenshot of processes with BBS.
[BetterBatteryStats] oz_90:
I'm on Resurrection Remix JB 3.0.2, and it seems to be the ROM Control app the one that doesn't let the phone to go to deep sleep, I'll try to disable it and see what happens.
[BetterBatteryStats] hyperbolic:
Thank you.

So there are no unusual wakelocks from kernel or at the alarms tab ?

Every wakeup is justified and no way/need to stop them ?

I am really trying to push for more then 4 hours screen time.
[BetterBatteryStats] Rhonin86:
Incomplete

Hi Karpfenteich,

why did you say that my dump isn't complete ? I can't see what information are missing.

I think, that BBS has a problem to identify some parts of my Phone / ROM correctly.

DeepSleep Time doesn't fit to the other parameters, that means that is always above 100 % compared to the unplug / charge time

the CPU States aren't recognized correctly, so that there are no states listed

I wiped the batterystates in the CWM menu once again and i deleted the data connected by BBS. Then i reinstalled BBS after deinstalling it. So for now i will have a closer look at BBS after doing all the above mentioned. Hope it will work now, but problem with cpu-states remain at first glance :(

Will report later about BBS's functionality

Cheers Rhonin
[BetterBatteryStats] Tungstwenty:
It's incomplete because of this:

================
Kernel Wakelocks
================
No reference since unplugged set yet (): (0 s) Cnt:(c/wc/ec)1/1/1 100,0%

and this:

==========
CPU States
==========
1 kHz (): ---%

You didn't plug+unplug after you rebooted the phone, so you don't have a "reference since unplugged".

@chamonix, I see this as being one of the most urgent items to address in your next iteration :). You already created an issue for "since boot" but it will also be important to check what the default behavior should be - e.g. should "since unplugged" have an auto-fallback for since boot, but still use since unplugged if it happened later?
[BetterBatteryStats] Karpfenhai:
Mate we need the alarms for a proper investigation, would you mind to root your device?

Most of your awake is caused by data traffic.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chamonix:
No, nothing left worth the effort. If you go for the last mile of screen on time you may wanna try lux
[BetterBatteryStats] gbenj:
Should I take a lack of response to my info that no one has any input to give?

I'm not trying to jump to the front of the line if people are trying to go in order, but just want to know if I have all my info in order or if I need to add anything else.

Thanks
[BetterBatteryStats] chamonix:
@chamonix, I see this as being one of the most urgent items to address in your next iteration :). You already created an issue for "since boot" but it will also be important to check what the default behavior should be - e.g. should "since unplugged" have an auto-fallback for since boot, but still use since unplugged if it happened later?[/QUOTE]

#227
[BetterBatteryStats] chamonix:
The first line is samsung cloud sync spending a lot of time trying to sync your browser settings/bookmarks.

You should decide if you need it and check if you don't sync twice to samsung and google
[BetterBatteryStats] chamonix:
You drain is caused by wifi always being on and causing Wakeups. Add the overhead cause by Google maps doing more caching when wifi is on.
[BetterBatteryStats] chamonix:
Judging by the count of connection manager wakelocks your phone has been switching a lot between network standards (10000+ wakelocks). Bad coverage or baseband may be the cause.
[BetterBatteryStats] gbenj:
Thanks for the reply, but not trying to figure out where my drain is coming from in general, I know I use LBS alot, and I understand theres going to be drain associated with that.

I'm trying to figure out why my "SDcard" usage is so high. This wasnt always a problem but has been for the last few weeks and I can't figure out why or what app could be doing it.

Could maps caching to SDcard be doing that? It shouldnt constantly be caching if I'm in the same city, right?
[BetterBatteryStats] chamonix:
Suspend backoff can have many causes. I noticed some mmc (sd) related wakelocks as well so you may try:

- remove the sd and see if it's gone

- kill MediaScanner and see if it settles

- check dmesg for potential causes of pm suspend cycle being interrupted and maybe find more about the cause
[BetterBatteryStats] gbenj:
Also, google maps is only supposed to cache map tiles while charging and connected to wifi, so it shouldn't be caching while not plugged in.

Any other suggestions as to what could be accounting for the SDcard cpu usage?
[BetterBatteryStats] haloeight:
Just wanted to share positive results I've found with others and from help in this thread. I think I've gotten idle consumption down to as good as it gets on both my phone and tablet.

wlan wakelocks: Reduced this from 20% to <1% by the following

1. 10% reduction: Disabled DHCP on my router (D-Link DIR-825) and set all clients to static IP. Turned off IPV6 on client PCs and disabled some offending services thought to cause unnecessary network traffic.

2. 5% reduction: Turned off WiFi during sleep on Android devices (Nexus 7 tablet, Skyrocket).Not presently using Sven's Better WiFi app but will try this next to see if it improves on things. Was using it before but wanted to try the OS level first.

3. 4% reduction: Changed the update frequency of most offensive apps, namely Facebook and Google Maps / Google Network Location services. This resulted in a 4% reduction.

Thank you to karpenfai for his instructions here on using Autostarts to get Google Maps in line (http://xdaforums.com/showpost.php?p=29420959&postcount=7059). With Facebook, just turned off the refresh interval sync while maintaining notifications. The alarm counts or wakelocks generated by either app drop down to minimal levels. There were other apps (Sugarsync, Twitter, etc) in the background set to sync that I turned off to use on an as needed basis - others like Gmail I've kept on.

It goes without saying that chamonix more or less spelled out these exact solutions in the FAQ / OP but just wanted to share what made the difference here.

Using SkyICS 4.2F6-2.6.1 on my SkyRocket and stock Jelly Bean (rooted) on my Nexus 7. Can post logs if anyone is interested.
[BetterBatteryStats] wiggerbrand:
Running CM9 on HP Touchpad.

Looking to see if the attached wakelock and alarms activity seems normal...and if anything can be optimized with my current setup.

Dump taken a little under 4 hours. WIFI enabled the entire time. Saved another dump around 7 hours just for comparison (can include that one if necessary).

Thanks!
[BetterBatteryStats] guptadh:
I have suddenly started experiencing very high battery drainage.. can you see the dump and suggest me what to do .

Using a Galaxy S3 with stock kernel.
[BetterBatteryStats] yhrn:
The kernel wakelock multipdp, which is related to mobile data traffic, is keeping your phone awake and looking in the network section you can see that the app "Scope" is biggest culprit. Looking in the alarms section you can see that this app also wakes up your phone quite often (78 times). So try to reconfigure how this app syncs or maybe remove it temporarily to see if it helps.

The other main thing that wakes your phone up is Google Maps. Make sure it only caches maps on wifi and you can use "Gemini app manager" or "Autostarts" (both available on Play) to disable "auto run". Check out this post for details: http://xdaforums.com/showpost.php?p=29420959&postcount=7059
[BetterBatteryStats] guptadh:
Thanks.. I will try and post the results back.
[BetterBatteryStats] mcmanuf:
Very high battery drain in "idle" during night

I just changed to Slim ICS 4.2 which should have few bugs and low battery drain.

However I must say that is simply not the case.

Please see attached log and screenshots.

While not turning the screen on for once during 6 ½ hour at night it had drained ~10% and there is wild activity on the network and the phone :(

Please help me
[BetterBatteryStats] henklbr:
I think, these are very good results for my Galaxy Note, aren't they?
[BetterBatteryStats] gbenj:
I still have no idea why my SDcard has such high usage...can anyone shed more light on that question?

Thanks.
[BetterBatteryStats] Karpfenhai:
Since ics its not recommended to use apps to sd functionality.

Put your apps back to internal storage and see whether the issue persists.

Music, pictures, backups and vids are fine on sd.

Tapatalked from my Samsung GT9100

---------- Post added at 03:04 PM ---------- Previous post was at 03:02 PM ----------

Guys I'm on vacation till the next 2 weeks, I'll check on your dumps later tonight if you didn't get an answer earlier!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] gbenj:
I'm on a galaxy nexus...theres no such thing as apps to SD as far as I know.
[BetterBatteryStats] myonlyst4r:
Ah i see, Thanks. I just got 40 hours out of my phone. with light use even with 2hours of LTE. Very happy
[BetterBatteryStats] VanillaG0rilla:
I've been getting horrible battery drain recently. The Kernel Wakelock shows fuel_alerted for over 10 hours. Not sure what that means. Can someone help?

Epic 4g Touch running CM9

Here's the dump...
[BetterBatteryStats] sysadmn:
Strange... On my Nexus S (also without SD card), there is "Internal Storage" and "USB Storage". The latter is a separate partition mounted on /sdcard. It's treated like SD card, and is unavailable to the OS if you access it over usb.
[BetterBatteryStats] Entropy512:
Known issue with all Samsung stock ICS kernels. There's a bug in the fuel gauge driver.

Only way to fix this is with a custom kernel that fixes the bug (nearly all that I am aware of for I9100, I777, and N7000 do.)
[BetterBatteryStats] VanillaG0rilla:
Thanks for the info. I'm using a custom kernel now. I'll try another and hopefully that fixes it.
[BetterBatteryStats] chamonix:
while Wifi on sure, while charging (in prefs) have been introduced lately and my opinion about that based on readings show that there is a huge overhead caused by maps when Wifi is on but no charging is going on. Google has never been clear about what Maps does in the background, e.g. collecting wifi SSIDs and position to upload that data. One day when I am retired and have a lot of time I will decompile maps and analyse every single use of data and location so see what part is for the app and helps the user and what part serves google but not the user
[BetterBatteryStats] chamonix:
Looking at the kernel wakelocks

"ath6kl_wow" (): 34 m 52 s (2092 s) Cnt:(c/wc/ec)701/0/701 15.8%
"power-supply" (): 7 m 35 s (455 s) Cnt:(c/wc/ec)818/0/0 -0.0%
"mmc_delayed_work" (): 4 m 42 s (282 s) Cnt:(c/wc/ec)2403/780/0 2.1%
"PowerManagerService" (): 1 m 56 s (116 s) Cnt:(c/wc/ec)345/0/0 0.9%

You have lots of wakelocks caused by the kernel, userland is causing way less. I have no experience with those but google reports some patches in that area and that certainly is something for a kernel dev.
[BetterBatteryStats] chamonix:
Facebook is waking up your phone at the average of twice a minute.
[BetterBatteryStats] chamonix:
That is not bad but you have still potential for optimizing almost 3 hours of awake only caused by Wifi being always on. If you are in a controlled environment you could try to use wireshark and find and heal the root cause, or turn off Wifi when not used (e.g. using BetterWifiOnOff)
[BetterBatteryStats] chamonix:
based on that profile no. You may take a new reading with idle only that may show potential though
[BetterBatteryStats] gbenj:
Thats a good point...I hadn't thought about all the other "stuff" google maps might be doing that I haven't outright enabled in settings but might have opted into by agreeing to the TOS.

I guess I'll give the steps from the first page re: google maps and autostarts a try and see if the SDcard usage goes away.

Thanks.
[BetterBatteryStats] mzaur:
I am still getting weird deep sleep percentages, like right now it's -25% -- attached dump and logcat. This is "since unplugged" -- reference created time looks correct.

If I use "since charged" reference, deep sleep % is 725.6%
[BetterBatteryStats] TecQuality:
I got a very annoying issue, every time i unplug my device from AC ,BBS starts ask me superuser rights (and i saved this many times) :rolleyes:

Sent from my GT-I9300 eating Jelly Bean
[BetterBatteryStats] chamonix:
Why whould I. 1.9.2.2 (on google play) fixed a packaging problem that happened when creating the signed package for google play (blame eclipse Juno). As google play forces every package to get a new release number the one there got a hotfix number (4th digit). As the package on xda is unsigned it didn't require that hotfix so it's 1.9.2.1 (same).

But be reaussured: I'm working on the next version 1.10 now. As there are some major changes it may take a while but I'll keep you posted
[BetterBatteryStats] chamonix:
It's in the FAQ: http://xdaforums.com/showpost.php?p=15869904&postcount=3
[BetterBatteryStats] M.A.K:
I've been having a problem with 'SyncManagerHandleSyncAlarm' partial wakelock. I saw earlier in this thread that this wakelock can be associated with whatsapp's persistant sync so I tried removing the sync write permissions from whatsapp and it seems to be working well so far.

You can find instructions here.
[BetterBatteryStats] Nightshadow931:
I'm losing 7-8% over night, so I wonder what's causing that..
[BetterBatteryStats] Cloaker:
I have an interesting issue that I've been googling for the last 3 days with no avail...

I'm on an EVO 3d CDMA running DevilToast 0.7.4 with Anthrax kernel.

My phone stays awake 100% of the time according to this app, but the android battery stats show my phone does sleep.

Any ideas? It's like android knows it's sleeping but BBS doesn't. I have nothing suspicious in wake locks either.
[BetterBatteryStats] Mullicious:
Anyone have any idea why my phone is starting awake for so long?

Edit: I'll be back with a new log. I messed this one up!
[BetterBatteryStats] chamonix:
Please provide a dumpfile
[BetterBatteryStats] Karpfenhai:
3g watchdog, sync, location service, maps and Facebook are your main culprits, read the faq for maps, try to reduce sync and disable location services.

Greets from the isle Ruegen!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chrone:
maps and facebook (disabled all notification and sync) are still running in the background but just one process on each.

i also disabled all location services and youtube, earth, google now, google+, browser, email, exchange for email. never or seldom usage of those apps though.

and only enable sync on gmail, contact, and whatsapp.
[BetterBatteryStats] xpanmanx:
Hey, I turned off Sync and my Exchange mail accounts continue to pull mail. Why's this so?

Using BBS, working hard on reducing drain with Blazer 0.1.5, FG20 and Agat 4.2 (default clock, governor and scheduler). I'm seeing >8 hours on the OEM battery with ~66% deep sleep and not much screen time.

---------- Post added at 06:18 PM ---------- Previous post was at 06:11 PM ----------

Oh yeah....its 83° ambient, and the battery is at 108° averaging ~700ma draw.
[BetterBatteryStats] meaxx88:
Hi, I posted a bbs log could someone please check it? The first One, there was still a usb cable in it.. Though not connected to a power source. I must say, with wifi battery live is Better data.
[BetterBatteryStats] tigerphil:
I am just wondering if anyone knows a way of configuring Kik messenger using Autostarts?

I rebooted my phone 40mins ago, did the process of plug/unplug then started to monitor things going on, mainly in the Raw Alarms section. Keeping in mind my Wi-Fi, GPS, SYNC 2G, Data are all switched off and the only apps I have actually opened are Titanium Backup and BBS, I have noticed that,

android has woken my phone 37 times

kik has woken my phone 29 times

I can supply a dump file if needed.....Thanks in advance

This is a link to the dumpfile (i hope) any advice would be much appreciated.

https://www.dropbox.com/sh/i4dctm44tgaqn6w/hyDF8d657A
[BetterBatteryStats] alexinna:
According to the dump file kik is not your biggest problem but still problematic. It looks like FB app is a bigger problem. You can probably change refresh interval and maybe even refresh manually when you need. Also I see goSMS is waking up your device as well. I personally don't have kik or goSMS so can't advise on actual settings but try different app for example I'm using Handcent SMS and it does the job without additional battery drainage.

"Screen On (): 41 m 26 s (2486 s) Ratio: 33.2%"

I would also suggest to keep phone idle when you do the test. It will show better picture.
[BetterBatteryStats] tigerphil:
Thanks for the input, i have changed my facebook refresh interval to never, locations and contact sync are both off, my msgs are pushed through as i use facebook, kik, whatsapp etc for work as well as personal use.

Also i think the problem with the GoSMS was that it had a chat part installed which i never use but it would constantly sign itself in, i have since found out how to disable that so hoping these problems drop soon :)

i'm hoping for enough battery life tonight so i can leave it on all night without charging so i can check things again after i wake up, my phones usually in constant use with work bookings or my son texting so its difficult to leave it idle but hopefully i'll have a better view of things tomorrow :)
[BetterBatteryStats] alexinna:
Both logs are only for 2s. Please get log after 1-4h idle time.
[BetterBatteryStats] chamonix:
After analyzing tons of logs and make lots of tests I think I have found the reason (at least one) for the "no reference since unplugged".

I did the tests on CM10 as most support cases we have had lately come from there and I started from a blank install of BBS. What I found:

- At the first save action for any ref su may be waiting for user input, not creating any file and finally timing out: https://github.com/asksven/BetterBatteryStats/issues/230

- At following occurences and if SuperUser keeps asking for su rights the ref may never get written (basically same issue)

Now this leads to:

- when rights are not granted (explicitely) BBS behaves as it handles "permission denied" properly

- when the rights are requested for (user input) the timeout depends on the su app and its settings; we can't rely on that

What I will try to do about it: always write a ref with the part not requiring root first, the rest being null. After that re-write (attempt to) with all data. If this fails because the user fails to answer or if the su app does not properly remember that at least the reference will contain wakelocks, other and cpu states.

Edit: confirmed with SuperUser on CM10: where SuperSU always counts down and finally rejects the request if the user does not answer SuperUser just hangs there and BBS stops. As this happens in a service it will finally time out, causing the reference writing to fail.

I then need to find some kind of warning telling the user that the phone is rooted but proper rights are not granted for BBS.
[BetterBatteryStats] chamonix:
Those dumpfiles contain 2 seconds of data. Please refer to the first posts of this thread to learn how to provide an idle dump
[BetterBatteryStats] pmd5700:
I'm having a bit of a wakelock issue. I've posted the dump below. Any ideas?

Thanks in advance for the help.

http://pastebin.com/EtBDmE81
[BetterBatteryStats] chamonix:
As this reading was taken in mixed more (15 minutes screen on) it is hard to say how much of the awake was caused by data traffic but you problem is definitely related to wakeups (see alarms for the apps you want to check)
[BetterBatteryStats] weirddan455:
I'm having a problem with Superuser prompting me for root privileges every time I unplug my phone from a charger or USB even though I clicked remember. Sometimes it even prompts me 2 or 3 times in a row. It also prompts me every time I click for the Alarms or Network stats. I'm using Cyanogenmod 9 Stable on a Verizon Galaxy Nexus. Got a fix for me? Maybe switching to SuperSu? Everything else appears to work. It's just annoying especially every time I unplug my phone.
[BetterBatteryStats] agh1701:
CM9 includes superuser 3.2 beta. install the 3.1.3 zip from http://androidsu.com/superuser/ and don't forget to clear data for the superuser app. This fixed the problem for me.
[BetterBatteryStats] Simba501:
This or switch to SuperSU, then remove Superuser.
[BetterBatteryStats] chamonix:
Please refer to post #3, it's all in the FAQ
[BetterBatteryStats] shawnaye:
I was wondering could anyone help me analyze this bbs log.

Just wanna find out if I can improve my phones sleep. Saw alot of Wakeups but can't interpret them all.

http://pastebin.com/Rd0iqfNq
[BetterBatteryStats] Osyx:
I'm losing 24% over night, why is that? Here is a screenshot and dump file :) Seems like it's in deep sleep almost the whole time, but even though that it takes 24% of battery like Wtf?

Dump file:

http://min.us/mxMauGXg0/1

The dump file starts after the last charging part on the screenshot ;)

Sent from my Samsung Galaxy SII on ParanoidAndroid latest hybrid ROM on Tapatalk 2
[BetterBatteryStats] meaxx88:
Strangely enough the bbs keeps saying that time after unplugged is 0 seconds :s

Looks like it thinks the usb is still in it.. Is the following log useful? I took one since charged in stead of universiteit plugged because of this. Thanks