yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] nevzat74:
I'm facing with Android OS battery drain since I started to use Jelly Bean. I'm currently using SlimBean 2.7 with Semaphore kernel 2.4s.

I suspect whether it's related to an incompatible or buggy app (my daily, essential apps are : n7player, Alarm Clock Pro, Dolphin Browser)

I tried but could not understand the BBS stats. Could anyone help me to solve this strange bug please?

Note : I've taken the log file for the last hour where I did not use the phone, it supposed to be sleeping, however Android OS seems to be active.

Many thanks.
[BetterBatteryStats] Karpfenhai:
Ahh Sorry then, i misunderstood you, i thought Bluetooth is on at the device and the toggle to turn it off didnt work, mea culpa.

No such issue here ;(

Please post a logcat for sven to take care of it (if not already done).

Again, apologize.

---------- Post added at 09:49 AM ---------- Previous post was at 09:46 AM ----------

There may be a quick help, if you use Chrome, then go to settings, developer options and turn of Tilt Scrolling, should fix the Suspend Backoff mess immediately .

Good luck!
[BetterBatteryStats] nevzat74:
Thanks but I don't use Chrome :(

I'm currently researching "Suspend Backoff" thing. Meanwhile, what would be the culprit? Dolphin Browser? kernel bug? sync bug? any clue?
[BetterBatteryStats] Karpfenhai:
Unfortunately not but it should be an app using the Gyroscope, maybe a logcat could show the culprit?

Compass or navigation app are good candidates to look after.
[BetterBatteryStats] nevzat74:
I'm trying to examine it with Dalvik Debug Monitor on my pc. What keywords should I search for? wakelock?

I decided to freeze suspected apps one by one, until I stop battery leak.

12:10 : Unplug phone from PC, it has approx. 95% battery.

12:22 : 44% And.OS battery usage, freezed "Android Clock Xtreme" to find if it's the culprit.

12:42 : 66% And.OS battery usage, freezed "n7player" this time.

13:02 : 69% And.OS battery usage, freezed "Dolphin Browser" now.

13:22 : 70% And.OS battery usage, problem continues. I'm nearly giving up. I'll try searching the dump files on my phone as a last resort.
[BetterBatteryStats] xbiggyl:
Regarding THIS issue, I have attached the Logcat.

In order to replicate the problem:

- I rebooted

-Checked BBS if Bluetooth Appears to be ON (It doesn't)

-Switched ON BT

-Switched OFF BT

-Checked BBS, BT still appears to be running

-In native battery usage monitor BT is not running

- Dumped Logcat

Hopefully someone would take a look to see why BT keeps appearing to be ON when if fact it's switched OFF.

No need to apoligize :)

Maybe I didn't make it clear that it is only appearing in BBS
[BetterBatteryStats] nevzat74:
While analysing logcats, I realized this "com.google.android.gsf [Wakeups: 160]".

Is this Google Services Framework? Is this the culprit?

"D/StatsProvider(12542): Result [com.google.android.gsf [Wakeups: 160], android [Wakeups: 64], com.android.vending [Wakeups: 11], net.tsapps.appsales [Wakeups: 7], com.android.providers.calendar [Wakeups: 4], com.android.phone [Wakeups: 4], com.google.android.location [Wakeups: 1], com.twitter.android [Wakeups: 1], com.alarmclock.xtreme [Wakeups: 1]]"
[BetterBatteryStats] chantoine:
Hi,

You should first activate "root features" in advanced settings.
[BetterBatteryStats] brack11:
Why on 1.11 all stats disappear after reboot? It wasn't so in 1.10. Sorry if this was already answered but Tapatalk has bad search feature.
[BetterBatteryStats] os2baba:
ANRs on 1.11

I'm seeing a lot of ANRs on 1.11. Especially after turning the screen on after a while. But sometimes even otherwise. According to the change log, this was fixed in 1.9.0RC3. Anyone else still seeing this problem?
[BetterBatteryStats] yahyoh:
dude u didn't enable root permission in bbs :/

i suggest y to do full wipe then try without any apps installed ( if problem happened again its ROM or kernel related if not its problem with one of ur apps )

btw did u try to reboot ?
[BetterBatteryStats] bdclary:
Alright, this morning the plummet appeared to have started, so I set a custom ref and left the phone idle for about 2h 49m. When I woke up the phone to capture the dump file and logcat, the battery had dropped 34% (12.1%/h), so obviously something is going on. From the attached dump file and logcat, is it possible to determine the cause? Is it the 4G bug noted on the other thread (no excessive amount of wakelocks), or is it something else (e.g., an application not behaving nicely)?

Thanks again for your time and help!

Brian
[BetterBatteryStats] nevzat74:
* I've already enabled root in advanced options.

* I had already installed my current rom with full wipe, i've even formatted my int&ext sd cards prior to it. I don't want to do it again.

* Of course a restart solves the problem, but only temporarily. I want to find the cause and fix it permanently.
[BetterBatteryStats] Karpfenhai:
I think i might have an idea, is your Android system percentage way higher in your system battery monitor?

Post a screenshot please!

Could you do the following and prove whether the issue is gone?

pkill -TERM -f system_server

You're phone will do some kind of reboot.

Maybe there its a solution! I'm still investigating, could someone more skilled than me read the logcat too? Thanks!

Update:

@brian, please do the following:

Either use a tool like ghost commander or es file explorer for this or remount your system partition manually to rw and perform the following action:

move or rename /system/bin/gsiff_daemon to /system/bin/gsiff_daemon.not

Reboot.

The only possible disadvantage may be a less accurate gps afterwards but it should fix the battery plummet, its worth a try.

Cross my fingers, good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Maxxon2k:
Hello guys,

since i am not making any progress and nobody seems to be able to help me i am considering to just leave my issues, since i still not know if i really have any :eek:

My question is what statistic i can trust. Other Stats or Wakelocks? this is a snipped from a log (only important info)

from google help:

How can the times fit together? It does not make any sense to me!
[BetterBatteryStats] Karpfenhai:
Mate be patient, sometimes even Sven oversees something, I'm pretty sure he will study your logcat and give you a reliable answer soon.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Maxxon2k:
Sorry and thank you for your reply. I am a programmer myself and it just bugs me to not know whats going on.
[BetterBatteryStats] bdclary:
I don't have a screenshot handy - I've rebooted the phone which stops the plummet (1.3%/h drain since boot). I'll try to duplicate the plummet tomorrow (I think I've figured when it starts) and get the screenshot then.

Do the other steps you've mentioned require root? I'm currently un-rooted.

Thanks again,

Brian
[BetterBatteryStats] brack11:
Anyone can help here?
[BetterBatteryStats] Karpfenhai:
Oh, yes they do.. But temporarily, root, remove the file, unroot, can be easily done by flashing a different kernel for a while.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] costinj1129:
Excessive Battery drain

I have had consistent issues with my battery draining on several different ROMS and honestly I'm just sick of it. I am running Cyanogenmod 10/12 nightly for Samsung Galaxy Nexus-Toro. I have no idea what to do anymore.

I've attached two files, the one ending in 135715784.txt has horrible battery drain, the other is pretty good. I don't understand the difference, Please help!
[BetterBatteryStats] prinzhernan:
Newest version works really well. All my android phones have this app. Thanks a lot Dev! :)
[BetterBatteryStats] sachilleas:
I'm using supersu 0.96 and bbs does not work at all. It doesn't ask me to grant permission to bbs at all so there is a "no reference yet" everywhere i look. Is there a solution ? Thanx !
[BetterBatteryStats] Karpfenhai:
Hmm, both of your dumps have similar awake / sleep proportions, so the drain cannot be explained by system wakelocks.

It must be something with the hardware then (Modem driver) Does this device already have LTE ?

Please post a logcat.

---------- Post added at 09:40 AM ---------- Previous post was at 09:37 AM ----------

Location services are the winner, disable them if not really needed.

Something seems to ask the system very often what the time is, i guess it could be this amazon app. try to freeze or prevent autostarts from it.

Did you plug / unplug after installing BBS ? Root Options enabled?

Try again ;)
[BetterBatteryStats] gabi11:
Well, just downloaded Gemini app and prevented Amazon Appstore from autorun.

Also configured TuneIn radio from autorun.

Don't know if tunein had any impact on the battery, but the the service was kinda annoying....

About the location service- Is it really needed to be on?

I mean, usually I leave it and the GPS enabled.

Should I turn off both of them?

If I enable the GPS, and disable the location service-It suppose to be better?(battery and usability).

Sorry about the questions but this Location service issue was never really clear for and why is it need to be on?:confused:

Thanks!!
[BetterBatteryStats] lightosx:
Battery Optimization

First of all I want to thank chamonix for creating such an awesome app; I haven't been able to stop looking at it and trying to analyze every little thing since I installed it. I've already made some optimizations which increased my battery life, but I wanted to post some screenshots to find out if there is anything unusual or suspicious which may be draining my battery more than necessary. Some things that come to my attention are Wifi On 100% and Wifi Running 40% when I set it to off when sleeping and No Data Connection and No or Unknown Signal both at 29.6%, when my signal seems to be great all the time. Any help is appreciated!
[BetterBatteryStats] Vahooli:
hi again Karpfenhai :D can u analyse my dump again ? in 5hrs just 4min screen on. hope its enough clear :o ( my problem is networkstats eating battery even i changed my modem with getril )
[BetterBatteryStats] Hilmesh:
You have backup running in the background. have you disabled the google backup? It is a major battery drainer. Further you have a contact list sync? do you absolutely need it? Facebook is said to be another drainer. but sorry cannot say much as i dont use it. Then Multipdp, Secril_Fd, L2_hsic are all related to Data usage. See if you really need FD i.e. fast dormancy or disable it. Also your RILJ count looks high. Whoosh i have tried to help out you will have to wait for Sven / Karpfenhai to look into it further.

All the best.
[BetterBatteryStats] Karpfenhai:
Yes, turn out off if you don't need it!

Freeze also google now.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] gabi11:
Thanks a lot mate!

One last question... :o

I have beautiful widgets, which updates weather (and location) every 3 hours) .

In its settings I unticked the checkbox which says "force gps for location" or something like that....

So it means that if I use beautiful widgets that way, I need the location service on...?

Thanks again.
[BetterBatteryStats] costinj1129:
Attached the logcat. It does have LTE. Do you not see any wakelock or alarms that look attrocious? It
[BetterBatteryStats] ole12:
Can someone take a look at my BBS dump file's.

One is from yesterday, and the other on is for today (both is discharge/recharge (not full charge) in between)

I do have high kernel wakelocks.

I have frozen Talks, and exchange service (seems they wake alot)

For widgets I use 3 UCCW, one is for clock and battery, one is for weather, and the last one is for weather forecast.

And for the last days, Wifi have been constantly on, and I've only used the phone for Tapatalk, and some chrome browsing.
[BetterBatteryStats] Karpfenhai:
If you don't change your location to often just set a manual location to your weather.

Tapatalked from my Samsung GT9100

---------- Post added at 06:58 PM ---------- Previous post was at 06:16 PM ----------

Hey there,

The NetworkStatsService wakelock is only held while collecting and recording statistics from the kernel, and it should only be held for a short period of time.

Since all wakelock usage in NetworkStatsService is wrapped in blocks, I'm wondering if one of the /proc files is hanging.

To help investigate, could you pull stack traces when in this state by running "systemstack" (defined in envsetup.sh). If those traces confirm it's blocked on a read() for a long time, reboot and turn on logging on the kernel side to investigate further:

adb shell "echo 8 > /sys/module/xt_qtaguid/parameters/debug_mask" adb shell cat /proc/kmsg | grep "qtaguid"

My question is, how did you set your wifi sleep policy?

Of when sleep or always on?

Maybe this causes the overhead?

Please grant root to bbs and post a complete dump. (including network)

Regards

Tapatalked from my Samsung GT9100

---------- Post added at 07:03 PM ---------- Previous post was at 06:58 PM ----------

Hmmm, this file looks incomplete, does the plummet appear during this timeline?

@Sven do you see something obvious?

Post a longer reading if possible.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] cool1007:
Hello,

After upgrading to RootBox 2.9 (from 2.8), I am having problems with deep sleep (or rather the lack of it, according to BBS). I did a full wipe (because it was an Android version upgrade, from 4.1.1 to 4.1.2), wipe/factory reset, wipe cache, format system, wipe delviak and fix permissions. I am also running the latest GAPPS, gapps-jb-20121011-signed.zip

I am attaching my logcat and BBS log. This problem seems to happen right after completing a full battery charge and seems to get fixed after a reboot.

Anyone experiencing the same? Hope you can take a look at it and offer some help

Regards,

JC
[BetterBatteryStats] Karpfenhai:
Either your phone receives / sends data all the time or you have a wifi problem.. :D

The logcat is useless btw...

I recommend to install shark for root to find the reason for the noisy network.

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] cool1007:
If this is true, it shouldnt be fixed with a reboot. I do keep my phone with wifi on all the time, but it should not be doing this. It's also weird it only started after switching to RB 2.9 :(

I'll check out Shark for root and see what i find. I'll post with news. I am not tech savvy so, I might need help figuring out what I find with this app.

Regards,

JC
[BetterBatteryStats] Articudos:
Removed
[BetterBatteryStats] Davec223:
Hi,

I am new the site and am having real problems with getting any battery life from my s2. I am going through this thread and have got to the bbs part and wondered if someone could look at it for me and let me know if there are an issues and what I need to do.

Many thanks in advance
[BetterBatteryStats] Karpfenhai:
Mate, that's not an idle dump...

But you have only 20 mins total overhead, mostly caused by juice defender, go sms and network (dhcp)

Set your device to static IP, get rid of jd and post another reading.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Davec223:
OK I will dump JD, how do I set aa static ip?

Many thanks for help
[BetterBatteryStats] ole12:
Setting - Wifi - long click ur wifi network - modify - ip setting: static.
[BetterBatteryStats] AestenD:
Combined with settings in your router.
[BetterBatteryStats] sasikumardr:
Any idea why BBS used this much data. It's kinda weird..
[BetterBatteryStats] costinj1129:
Attached a new dump and corresponding logcat. Let me know if it still doesnt look right.
[BetterBatteryStats] Kipp34:
First of all, just wanted to say thanks for the app!

I recently installed Rootbox 2.9 nightly (followed the flashing instructions). This is my 3rd cycle after installing the rom. I have attached some screen shots and the dump. I guess my question is why is the Android OS usage so high, and if you guys can see any areas in which I can improve my battery life.

I had GPS enabled for the whole time since unplugged. I have Google set to sync contacts/mail/calendar/browser and tasks.The only other things that I had set to auto sync during this time was twitter (every hour), Whatsapp syncing contacts and Haxsync syncing once per day.

The big drop in battery life near the end was from playing games haha.

Thanks again for the help!
[BetterBatteryStats] azrash:
Take an idle dump. Before you go to bed, plug it to the charger, unplug and get the dump file the following morning. That is the proper way of producing a dump file.
[BetterBatteryStats] shijuuni:
Hi,

could anyone have a look at my file? I think it doesn't look that bad when it's idle, but when I use my phone other then for making calls it's nearly in freefall :( Maybe you can help me with that. As an explanation for the Tasker wakeups:I'm using tasker to cut the mobile data, when the screen is off. Every 15 minutes the connection is re-enabled to synchronize.

Do you have any hints for me to optimize the battery time?

Another point is, that "where is my droid power" shows a very high percentage on system-ui. It's increasing by time. At the momnet it's 15% but in some time I expect it to be nearly 30%. I already re-flashed the rom, installing all apps again.

I'd really appreciate your help.

Thanks in advance
[BetterBatteryStats] Karpfenhai:
As a guess, your Tasker settings are causing the Syncloopwakelock, therefore AOS usage increases, i would disable Calendar sync and set K9 to manual pull every 15 mins, and disable tasker.

Furthermore, disable google now and tell maps to behave (Post 3)

All others are looking quite good.

Just my 2 cents.
[BetterBatteryStats] xbiggyl:
Could anyone please take a look at my Logcat.

Posted it a few days ago but I guess you guys missed it, or "missed" it ;)

Just kidding.. Really, if it's any trouble I understand.

Cheers
[BetterBatteryStats] shijuuni:
Thanks for your response. I will give it a try and have done my "homework". Let's see if tasker is causing the problems with the system-ui
[BetterBatteryStats] Kocai:
Hi guys, I was wandering if this post is still valid before I purchase Autostarts from the market. And yesterday I got a realy high count of SyncLoopWakeLock (1m 15s and 1641 counts) even though I disable sync. I rarely sync. Sometimes not even once a day I turn on sync. What could be the cause of this high count besides sync?

I attach my stat from 2 days ago. Airplane mode for 7 hours. Is it somewhat good? Thank you in advance.
[BetterBatteryStats] villain_allain:
Hello xda. I have a china mid tablet. I buy this for my sister so she can play it.

One problem i encounter is the battery. I installed betterbattery stats to check what causing the drain.

Found out one thing and cannot search google about it.

The 'wifishutdownlock' causes the battery to drain.

Can anyone point me what is this. Thank you. :)
[BetterBatteryStats] Vahooli:
its always on , but networkstats get awake when i went out from home and my wifi was off .

and u know when i have networkstats awake, in battery graph shows my phone get awake very ordered for example every 10 or 15 mins networkstats awakes my phone !

do u think is it better to install again my cm rom ?
[BetterBatteryStats] Karpfenhai:
Honestly, no clue on that...

I guess its an app but i cannot prove it..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chinedooo:
Can somebody help me figure out why I get bad battery life on my Galaxy S III? I did a dump and its attached. Thanks.
[BetterBatteryStats] It_ler:
Location service seems to be enabled ... and Maps is using it :p

So diabled all location services (via Settings menu) and try again.

Good luck !
[BetterBatteryStats] icepixie:
bumping this up. I had the same issue as well. I have an HTC Amaze, wonder if it's an HTC phone anomaly?
[BetterBatteryStats] Noed:
Stupid phone... No need to respond, I know what to do... Just wanted to show this 56k count
[BetterBatteryStats] GoJo ^^:
Sorry but what do you mean by 56k here..? How do you change the background look like this?
[BetterBatteryStats] adamdelozier:
Can anyone help...not getting any stats. Running CM10 nightly for the epic 4g.
[BetterBatteryStats] erew1:
You should plug your phone to the charger to create a reference.
[BetterBatteryStats] adamdelozier:
I will try that...I swear I already did... but I will try it again. Thanks.

---------- Post added at 11:00 PM ---------- Previous post was at 10:46 PM ----------

That worked...I'm an idiot! Thanks.
[BetterBatteryStats] villain_allain:
Can someone help? Please. Thanks
[BetterBatteryStats] azrash:
Use better Wifi on/off or clean your network. Assign a static ip/find the DHCP reservation setting in the router and reserve one for the phone.

Mine is still quite high after that, but better Wifi on/off does the trick

---------- Post added at 11:43 AM ---------- Previous post was at 11:33 AM ----------

Post an idle dump, update the app, unplug the phone from the charger before you sleep, take a dump file in the morning and put it here either as an attachment, or a link via Dropbox.

Battery monitor widget pro produces high wakelocks. Disable the history logging, or increase the history update intervals to a longer period. I disabled the history logging in mine.
[BetterBatteryStats] GoJo ^^:
Ok I'll do a new log, but as said, battery manager is not causing this, 100% sure.
[BetterBatteryStats] Noed:
Thanks, already did that, I was at work and I can't change router settings there, and getting a static IP is hard since everytime I connect that may be taken by someone else.
[BetterBatteryStats] brack11:
What is wrong with my phone or myself, I write this third time and get no feedback - reflashed the phone, charged 100%,installed version 1.11 all stats are working, then I reboot the phone and widget became empty and on click it shows this:
[BetterBatteryStats] Casanoaa:
After charge pull of the charger and let the phone be on the table for 2-3 hours and then enter the app and see what is going on.
[BetterBatteryStats] anthony001:
should i uninstall previous version whenever I will install a newer version?
[BetterBatteryStats] It_ler:
Try to install the new version "over" the existing one ... should work.

If it does not work, uninstall the old version first and install the new one afterwards.

Very easy !
[BetterBatteryStats] brack11:
The issue only comes after reboot, so, if I charge the stats are there, unplug and stats are working, then I can use phone for whole day and stats will work, but as soon as I reboot stats are empty.
[BetterBatteryStats] Karpfenhai:
So, why do you reboot then?

If you wouldn't bother to read the thread, then you would know, since bbs is a passive tool, Android does erase the source files bbs is depended on by default. Not resetting the bbs references after a reboot would lead to inconsistent calculations. (and had in earlier version of bbs) Therefore bbs looses all references except since boot.

Just to prevent other users complaining about wrong figures.

If you wanna change this, talk to google about changing Android design. :D

Or..as stated initial, stop rebooting.

Question answered?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] brack11:
Question is almost answered, the other half is why version 1.8 and 1.9 doesn't loose data on reboot. Why I reboot? Well, sometimes I do this, but of course, not every day.
[BetterBatteryStats] chamonix:
The data wasn't lost but was inconsistent what is even worse. The decision to erase stats are boot wasn't easy and costs lots of support effort as well as bad ratings bit there is really nothing I can do about it except explain, explain and explain again. Karpfenhai explained it perfectly and as clearly as the release notes, the FAQ and the 'getting started' in-app help
[BetterBatteryStats] universed:
Whatsapp Question

Is Whatsapp a known battery drainer? I like the app because of the free INTL text messaging capability.

I read a bit of this thread and also searched the thread and saw the app mentioned a few times but with no clear discussion on running the application. I have Autosync turned off for Whatsapp but i know it still needs to continuously poll the net to check for new messages.

Anyone having battery issues with it...