yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] megosu:
I'm going to run this fully charged battery until the phone switches off by itself :)

(I did it when I add stock 4.0.4 but it didn't help, I can try again now that I have calibrated the battery and installed a new ROM).

on a side note, when I save a dump file, it now saves a 0B file... (dmesg and logcat works fine, but TXT is empty).

ok restarted the phone and now I can save again.

I don't know if it was caused by this, but before I tried to Share to GMAIL, and I received an email without any BBS attachment, then I tried to "save" and the TXT file was 0B.
[BetterBatteryStats] razen_kain:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Are you still wanting dump files for the time percentage problem I was experiencing or has that been fixed? I never got a response from my post this morning...
[BetterBatteryStats] jeremysherriff:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Not true? Deleted wakelocks are a sum of any ended application or an overflow of the wakelock information in the android framework, is my understanding. For instance, touchdown for exchange is notorious for causing high "deleted" counts, even if it isn't used over WiFi. I could be wrong.

Sent from my Nexus 4
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

This is after the 4.1.2 update on tmobile galaxy note 2. The first few days following the update my battery was normal. Then about 3 days ago it started draining much faster. Here is my dump http://db.tt/N7xFFGFv

I also have screen shots of before my battery drain issues showing battery stats. Not on BetterBatteryStats jusr the built in one.

Thats with about 4 hours on screen time and now im getting about half that. Ill grab a screen shot later with the new stats.

Note 2, yeah son!
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

These screen shots are current. There are far more things running than before.

Note 2, yeah son!
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Okay, let's negotiate this :p

It's not entirely true but, I wrote "it points" to the usual... I didn't say it's the only possible reason...

Furthermore the discussion was about Wi-Fi and how to see which symptoms may lead to Wi-Fi caused drain, so deleted wakelocks are a pretty good indicator in context with a bbs dump (Wi-Fi on most of the time) if no wlan_rx_wake / wlan_ctrl_wake is visible.

Of course you're right to but it's unlikely (in my experience) to see a high amount of deleted_wakelock where Wi-Fi is not the main reason.

Known conditions of occurence:
The Wifi driver is one known source for kernel wakelocks that are destroyed whenever the driver is unloaded (when Wifi is disabled manually or as part of the turn-off policy). Wakelocks such as wlan_rx_wake and wlan_wake, when the driver is unloaded, will no longer show up in the list and their stats be added to the deleted_wake_lock previous values.

Source: https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/deleted_wake_locks

Btw, in my understanding, it occurs upon kernel driver unload, I wonder which driver could be triggered in case of exchange and touchdown?

Regards.

Tapatalked from my Galaxy SII
[BetterBatteryStats] kozmo21:
You are using an old version, please update to newest stable 1.12.4 or the RC ... V1.13RC1. Also, provide an idle dump as described in the 1st post ...

"Before posting a dump please make sure that the references for kernel wakelocks and alarms were processed correctly. Reading a dump takes a few minutes and it would be great if you could not waste the time of whowver studies in, aiming at helping you.

Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:

- plug/unplug the charger

- leave the phone alone 1-4 hours

- save a dump and check that the chapters "Kernel wakelocks" and "alarms" (if you have root) are populated

- Post the dump as attachement"

If you have more than ~1 minute of screen on time, you did it wrong.

It looks like you have bad signal, 1 bar, that can be a battery drainer.

I'm running stock rooted on note 2 and usually have 0-3% loss overnight (8 hours)... this is with the newest update MB4.

1 more thing, having motion on will drain battery quite a bit (saw you have it in your screenshot)

Attached my latest dump to show you what you can have with a Note2 with reading tips from this thread.
[BetterBatteryStats] knorde:
Before i go to sleep i charged my phone to 100% and now (when i wake up) it is 13%.

Can anyone see something in the dumpfile?
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Kozmo im not rooted. I will update to the latest version and try again. Motion isnt on just smart stay the icon stays on since update. I like it. Seems better since I deleted mms backup.

Note 2, yeah son!
[BetterBatteryStats] psydex:
I might exported the dump file after restart (i can't remember) , i'm sorry - i'll post another later today. Thanks for looking at my issue.
[BetterBatteryStats] jeremysherriff:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Nicely written up. You have some really good understanding of this. It could be more to do with a module unload than necessarily a driver unload, so that could be something like a module for encryption or activesync?

Sent from my Nexus 4
[BetterBatteryStats] knorde:
Someone?
[BetterBatteryStats] jeremysherriff:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I'd suggest that if 1hr of awake time drops your battery that fast, your battery is f$%#ked.

Sent from my Nexus 4
[BetterBatteryStats] megosu:
ok, this is interesting...after wiping everything and flashing a new ROM (Jellybam 7.1, supposed to be very stable and battery friendly), I have removed my SD, switched off wifi, gps, put my mobile in flight mode and left the mobile during the night. This morning, same again:

Level lost [%]: Bat.: -19% (84% to 65%) [3.1%/h]

I have attached my BBS dump file and a screenshot of the battery graph.

1 thing is very weird.. even if BBS says I have 99.8% deep sleep, I can see on the battery graph long period of Awake...

If I check the same with GSAM, the Awake is not displayed... so it is like the default android app see something more or is simply wrong...
[BetterBatteryStats] knorde:
It is 10 procent in a hour.

I have tested a new one last week.

But because the new one has the same problem i sent it back...
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Does the drain persist in flight mode?

According to your dump it's clearly your Wi-Fi..

Some pages back Sven wrote a brief description how to avoid such overhead.

Regards.

@Jeremy, you made a good point, I think this should be visible in dmesg.

Tapatalked from my Galaxy SII
[BetterBatteryStats] knorde:
I will try it in flight mode.

But when i turn wifi off the same problem exist.

Is that possible?

EDIT

1 hour further and there is not even 1 percent from gone.

In flightmode the problem is gone.

Well it is only the question, how to fix this :)

Btw can't find the post of sven?
[BetterBatteryStats] dirtyreturn:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Good morning all. The BBS: Watchdog processing... toast stays on screen for quite a long time here. The watchdog settings panel / all options are checked using latest market version. In logcat there is only a warning about sqliteconnectionpool. Every other +comment+ is debug or info. An idea?

Edit- I have the widget placed on a home screen etc. Everything is working I guess(no dev here). Again, the BBS: Watchdog processing... toast .
[BetterBatteryStats] Freshi87:
AW: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Hey there!

Could some one evaluate my attached dump?

I would like to do it myself, but I don't know much about.

I post this, because it feels like my phones battery is draining....

Thanks for every lityle help

Regards

http://db.tt/51sThQTw
[BetterBatteryStats] megosu:
@Chamonix: do you know why can we see awake in the default Android battery app but nothing in BBS ?

Another user, Pi-xel, has the exact same issue (battery drain of 3% / hour overnight in flight mode, showing in android battery app but nothing showing in BBS).

I have uploaded a screenshot showing the awake periods, but as far as I can tell, I don't see them in BBS. is it a bug ?
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I hope this dump is better. I updated to a newer version and did as suggested. Plug/unplug device and let it sit for 4 hours maybe longer. I am at this time unrooted.

http://db.tt/kTcJHp8p

Note 2, yeah son!
[BetterBatteryStats] retared01:
Thanks
[BetterBatteryStats] Tungstwenty:
As Karpfenhai mentioned, this is a well-known situation for Wifi. The driver module is loaded and unloaded from the kernel as the setting is enabled or disabled, which makes wakelocks be initialized and destroyed and this 2nd operation directs all stats collected till that point to be aggregated under the "deleted" pseudo KWL (it's just a stats placeholder).

I was curious about any other possibilities and searched a bit within the code for my device's kernel.

WiFi is a particular case since the entire module (external to the kernel, in /lib/modules/dhd.ko of the initramfs) is loaded and unloaded from memory even without rebooting the device. Upon unload, it naturally releases the KWLs it uses - wake_lock_destroy - which triggers the mentioned stats behavior.

There aren't many more modules that are loaded and unloaded under those conditions, so what I searched for was invocations of wake_lock_destroy that occurred in places other than module unloads, which will only happen at device shutdown.

The bluetooth driver, which is bundled within the kernel instead of a separate .ko file, could behave the same way. It doesn't, at least not for me.

But I did find 1 such situation on the S2 - the OTG driver:

- s5pc110_stop_otg destroys an initialized wakelock.

- it is called from c210_otghost_stop

- called from detach_otg

- called from handle_detach, from detect_dev, and finally from the IRQ handler max8997_muic_irq

Having the IRQ handler being able to trigger the otg stop code means it can happen in response to hardware signals, even without any sort of module unload. It's part of the process of connecting and removing an OTG cable.

And having a practical look at this matches the theory :)

Attaching an OTG cable with a USB pen brings the KWL "usb_otg" into existence and BBS visibility after a bit with screen off.

Removing it causes the KWL to vanish and "deleted" to absorve those values (in reality, I see it as "deleted: usb_otg" due to my tweak on the Siyah kernel)

As a bonus, after the unplug my rom presents me with a nice and warm permanent PWL "UsbStorageUnmounter" preventing deep sleep after I eject the device properly, but not if I just plug it out before pressing the "safe eject" option :rolleyes:

The bottom line is:

"deleted"

normally

means WiFi is very likely, as it appear to have that unloading behavior in most devices.

However, depending on the kernel implementation of each particular device, some other candidates might exist. On the S2, the other possibility is plugging in and out an OTG cable.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Tapatalked from my Galaxy SII

You might read these posts below :cool:

Tapatalked from my Galaxy SII
[BetterBatteryStats] cinciopillo:
Please tell me if the log posted here http://xdaforums.com/showpost.php?p=39873040&postcount=14997 is what you asked for.

It's the log of the phone during last night.

I left the phone alone, in a dark room, with a sweet music playing... :victory:
[BetterBatteryStats] JaylanPHNX:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I have something causing my phone screen to turn on at six hour intervals (noon, 6 pm, midnight, and 6 a.m.) and keeping it on. I just got better battery stats to try and track this down. What do I need to look at/for to see what's turning on my screen?

Sent from an N4 blessed with AOKP and sanctified by Faux123!
[BetterBatteryStats] It_ler:
No, not exactly.

With "doing nothing" I meant let the phone doing nothing ... not playing sweet music ;)

What I can see, your main wakelocks seem to be:

Orange Backup

Tasker

Titanium Backup

WeatherUpdateService (com.cyanogenmod.lockclock.cLock)

Maps

BeautifulWidgets

What you don't need everyday, disable/uninstall/freeze or try to "greenify" (see Greenify app from Play store).

For Maps you can disable autostarts with Gemini Apps Manager (link to Karpfenhai's description is in post #3).

Your kernel wakelocks indicate that you had USB or charger plugged in.

You should reboot after disconnecting USB cable to get rid of the "l2_hsic" kernel wakelock.

And you have the Fast Dormancy wakelock. Change the FD setting on your phone to minimize this "secril_fd-interface" wakelock.

Good luck !
[BetterBatteryStats] knorde:
I will look at it, but when i manuelly turn wifi off the problem (drain) exist.

It is strange because my girlfriends phone (same phone, same rom, same provider) has no problems with drain.

Using kernel 2.6.38.6-cranium-build#2-sakindia123

root@sarthak #36

Is the tool BetterWifiOnOff different from manuel turning off wifi?

Is it possible that 2 same phones are different (1 drains and 1 not).

Tryed a new battery but same problem...
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

You confirmed the drain is gone in flightmode...

So, better Wi-Fi on off can help you if:

-You switch to 2g during the night (assuming you want to stay available for calls)

-You ensure your mobile network does not suck more battery than Wi-Fi.

If your phone is draining more than usual while Wi-Fi is off i recommend to "play" with modems until you find one which fits your needs. Try the good old ki4 or kh3.

Don't flash the ril files, just the plain modem.bin via Odin or mobile Odin and you are safe.

You got all what you need in terms of Wi-Fi, so good luck with that!

Tapatalked from my Galaxy SII
[BetterBatteryStats] kozmo21:
Don't see a lot here. Still think having weak signal is a big part of your problem.

You have fast dormancy wakelock, use Gokhanmoral's Fast Dormancy app from Play store to stop this. You can also try getting rid of Google search widget and just use long press of menu button instead if you need to use it.
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Kozmos thanks for looking. I dont have google search widget active. Its not on my screens. I want to search I use my browser. Do those apps require root access?

Note 2, yeah son!
[BetterBatteryStats] kozmo21:
Oh crap. Yeah, sorry, that does need root access. Not being rooted does limit the things you can do. Definitely recommend rooting if you can.
[BetterBatteryStats] knorde:
Many thanks for your help but can you explain littlebit more about the modems?

And how is it possible that the phone from my girlfriend (same phone, same rom, same provider) has no problems with drain (it use the same modem).

Sorry for my questions but i can't believe that my phone need other (drivers?) then the same phone of my girlfriend.

P.S. The problem is since a little weeks, it works good for many months...
[BetterBatteryStats] JaylanPHNX:
Here's a dump from earlier. I unplugged (starting the log) about five minutes before 6pm when my screen turned itself on. Is there anything in this dump that shows what may have turned my screen on all by itself? This is driving me nuts.
[BetterBatteryStats] geoffany:
My dump file

Hi,

Can anyone tell me what's draining my battery? I use to leave it overnight out of charge on full and by the time i wake up, the battery percentage should be around 96%. This was on the stock ROM. Now when I've rooted the phone and installed CM10.1 (nightlies) I've noticed that the battery has dropped to 89% or sometimes to 82%. I've had a look at the dump file but there isn't anything obvious.

Thanks! :)
[BetterBatteryStats] jiezhang0518:
Can anyone tell me what's draining my battery?
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Compare the phones briefly, really same hardware or is one newer?

Murata chipset or Samsung (Wi-Fi)

Which bootloader are you on?

I'm still on GB bootloader I personally think this causes way less issues like SOD or boot loops than newer.

Good luck with that!

Tapatalked from my Galaxy SII

---------- Post added at 09:11 AM ---------- Previous post was at 09:08 AM ----------

Easy money plus exchange, but twelve percent in ten hours are not too bad with 3g enabled.

No dump no support.

Tapatalked from my Galaxy SII
[BetterBatteryStats] G1032:
Phone not entering Deep Sleep

All

Can someone please have a look at the log attached and help me figure out what it preventing my phone going into a deep sleep. Log is only for an hour or so this morning so hopefully there is enough info in it.

It does show "PowerManagerService" (): 1 h 1 m 13 s (3673 s) Cnt:(c/wc/ec)9/0/0 89.5% under kernel wakelock. Perhaps my issue is kernel related?

Any help appreciated. Thanks.
[BetterBatteryStats] Hilmesh:
@G1032, sorry friend nothing can be got from one hr of dump. From the log it looks like you were listening to music (AudioOut_2) usually corresponds to sound coming out of phone speakers. If i am not wrong powermanagerservice is not something to worry about. Please check posts 1-3 on how to get an ideal as well as idle dump. make it atleast 4 hrs without any operation. preferable will be during the night. Then post the dump here and I am sure you will get better analysis. Cheers :)
[BetterBatteryStats] AuronnBE:
Hi guys,

I'm getting desperate here. I've been using my Samsung Galaxy S2 for months and everything went fine, I always easily got though the day with my standard battery. I used hotmail, facebook (without notifications), whatsapp, ... but always found out easy if there was a problem or something else. I also did always update my phone to the latest version available via Kies, did not root my S2.

Last week suddenly I had immense battery drain and started looking for the issue. Also my phone got pretty hot and charging the phone took ages in comparison with previous days/months. Since then I haven't been able to solve the problem. I ordered another battery from Samsung, the 2000mah with new cover that should add to my battery, no solution. I factory resetted the phone 5+ times, still a problem. I calibrated the battery a dozen times, I restarted 100+ times. I tried all the tricks. Going in airplane mode, shutting down the device, take out the battery, get it back on and disabling airplane mode. The only thing it did was yesterday my phone charged at a normal pace of 30%/h. But from the moment it was at a 100% and I started using it again it dropped 10%+/h (even when I had no apps installed at all). Almost have no apps installed. Now I installed Whatsapp and facebook again. No auto sync is on. I also use Wifi again, but have all the same problems with wifi off.

I know my phone pretty well and know what to do with issues, but now, I just can't find what's the problem and I would think it is hardware related. Read a 1000 posts online, no solution. I'm leaving for the US for 3 months in a week, so can't turn in my phone and wait 'till it comes back, so I hope you guys can maybe help me out here (but my hopes aren't high).

Thanks in advance.

Even willing to pay something if someone finds the solution ;), that's cheaper then buying a new phone.

PS: I will let my phone discharge more today and maybe post a new dump file. Btw, yes, I have used it a little bit this morning to check stats etc and install, so awake time of 10% doesn't seem wrong. But it shouldn't drain so fast. It didn't do it earlier...
[BetterBatteryStats] apfelstyle:
AW: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Can somebody please tell me what these wake locks could cause?

Kernel wakelocks:

"Deleted-wake-locks"

"L2_hsic"

"Sec-battery-monitor"

"Umts-ipc0"(I only had WiFi on)

Partirial wake locks:

"Audio out_1c9"

And the g-talk sync (sync was off and I deleted gtalk with tb!

Dump: http://db.tt/BKqaSys3
[BetterBatteryStats] G1032:
Thanks. I'll get a better log tonight. Wasn't listening to any audio though? Strange.
[BetterBatteryStats] gaich:
Does anybody with latest leankernel experience no kernel wakelocks displaying (meanwhile in the raw stats everything displays well)?:confused:

Edited-they appeared after some 15 minutes after boot...
[BetterBatteryStats] pi-xel:
What is your battery consumption in airplane mode? If it's ~3% or more, then you could be a member of our new club for unexplainable battery drain on SGS2 :) (http://xdaforums.com/showthread.php?t=2218300). At least your stats look similar to mine.
[BetterBatteryStats] AuronnBE:
I'm convinced it will be. I'll try to test it tonight, now I'll let my battery drain for better stats. Lost 40% in 4 hours now with a better capacity battery. It is not unworkable you would think, but it is so much more compared to the past. And only 20% installed of the apps I had then...
[BetterBatteryStats] knorde:
How can i see the chipset?

I have the htc explorer.

My girlfriends phone is the same but 1 month newer.

I use stock rom with signed_cranium-kernel_build kernel.
[BetterBatteryStats] It_ler:
[KIDDING]

Shut down the phone.

Open the phone's case/body.

Look into it. There is the chipset. ;)

[/KIDDING]

EDIT:

I am using CPU Adjuster app from Play store on my rooted SGS2.

It shows many system/kernel/chipset information. (Device info > CPU Information)

Maybe it works on your HTC Explorer too.

Good luck !
[BetterBatteryStats] megosu:
Hi,

not sure if we are in the same case... but have a look at my thread and let me know if you have the same behavior (~3%/hour battery drain in flight mode) and if the fix from t-pip does the trick.

http://xdaforums.com/showthread.php?t=2218300
[BetterBatteryStats] AuronnBE:
I'll look into it thx, had a quick read already in the topic.

For completeness I have a new dump file and will now charge my phone again as I need it tonight.

Thanks for the help. If any one else has a suggestion, please let me hear it.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Hold on, I'm talking about galaxy s2 phones, but there is a webpage where you can enter your Mac address, it will show you the manufacturer.

Tapatalked from my Galaxy SII
[BetterBatteryStats] cinciopillo:
You're right.

That's because my Note take nandroid backup (Orange Backup) and Titanium backup during the night.

Tasker is used to determine which connection is the best depending on where I am in every moment.

So I'll repeat the test, freezing those apps during the night (I really need it daily).

Many thanks for the Greenify app suggestion.

So far I used Rom Toolbox Pro to manage autostarts.

But Greenify seems to be better

I made the test with the Note unplugged.

To disable fast Dormancy I used this https://play.google.com/store/apps/details?id=com.gokhanmoral.fastdormancytoggle.i9300&hl=en that seems to work also on the Note.

EDIT

I can confirm that: it works on tne Note too

EDIT 2

It seems that rebooting the phone after unplugging from USB cable has no effect: l2_hsic is always there
[BetterBatteryStats] chamonix:
I'd like to see both side by side. In your previous post there was a screenshot too so I assume in that other post the dumpfile and the screenshot were the same. Of course they also must cover the same time interval.
[BetterBatteryStats] chamonix:
Long staying toasts mean long processing times. As the most complex operation is root access (that is a blocking operation) this would suggest that there may be a problem with your superuser app settings or the su binary. Do you have root operations enabled? if yes does disabling them change anything?
[BetterBatteryStats] chamonix:
Are you on 4.2.2 and is daydream enabled?