yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] nativesmiley:
Can anyone tell me if these are good or bad? This is new to me and I have read through the help links. Just like someone else opinion
[BetterBatteryStats] kmetek:
help? :(
[BetterBatteryStats] valsacar:
Could someone give me some advice here. Stock of the E210S (SGS3 Korean LTE version) with tegrak kernel installed. Juicedefender also installed, not sure how much it's helping atm.

http://pastebin.com/TBbayR5r
[BetterBatteryStats] chantoine:
You could shut off kakao talk, and get a dump over several hours rather than minutes...

Envoyé depuis mon GT-N7000 avec Tapatalk
[BetterBatteryStats] Osyx:
Can some one please help me to understand what's draining the battery under night?

Thanks:)

http://min.us/mhiT1hB38/2
[BetterBatteryStats] willembos:
According to Stileth I rebooted my phone and I put my phone unplugged at night. When I woke up I saw that the battery lost 16 procent in 11 hours. Is this normal battery life when using CM10 built 15/9?

Can someone have a look at my dump file to see what is waking up my phone?
[BetterBatteryStats] chantoine:
You could tweak some Google services and uninstall 3g Watchdog Pro, both known to eat batteries...

Envoyé depuis mon GT-N7000 avec Tapatalk
[BetterBatteryStats] willembos:
Wich Google services should I tweak and what do you mean with tweak?
[BetterBatteryStats] valsacar:
I will redo it tomorrow when I have time, but Kakao talk is the app I suspect as the problem... I just can't find a solution. The damn thing won't turn off, I used geminii to remove all auto-start functions, removed auto restart from it's own settings page, but the damn thing keeps coming back.

I do use it, I was attempting to use Tasker to start and stop it periodically when the phone isn't in use, but once started it seems impossible to kill. It just keeps restarting on its own (tried pkill via terminal, comes back in less than a minute, same if killed through android taskman).
[BetterBatteryStats] chamonix:
MIUI is known to tamper with the batteryinfo service so that would be a userland incompatibility rather than a kernel incompatibility. Could you please provide a logcat to confirm and maybe have a look in the settings to see if there is a toggle to turn batteryinfo on/off (there used to be one).
[BetterBatteryStats] chamonix:
Users are always right: https://github.com/asksven/BetterBatteryStats/issues/277
[BetterBatteryStats] Tungstwenty:
sven,

Perhaps you could insert in a future version a decorator on the KWLs to indicate whether they are truly created from within the kernel, of it they are reported by the /sys/power/wake_(un)lock userland interfaces.

I don't know if DPRAM is indeed kernel or userland-originated, but querying those files would clear that doubt.

The permissions on those files are:

# [COLOR="DarkRed"][B]ls -l /sys/power/wake_*lock[/B][/COLOR]
-rw-rw---- 1 radio system 4096 Sep 15 02:42 /sys/power/wake_lock
-rw-rw---- 1 radio system 4096 Sep 15 02:42 /sys/power/wake_unlock

Which seems to suggest that it's more strongly biased for radio stuff (altough any of the android services could use it to, such as the well-known PowerManagerService).

Since the (arbitraty) entries will hop back and forwards between each of the 2 interface files as they are locked / unlocked (by the processes that write a single name to each of them), ideally they should be queried in quick succession, or perhaps even twice to reduce the probability of double counting or not catching a certain name. Unfortunately a transactional way to get it doesn't appear to exist. I suggest something like:

# [COLOR="DarkRed"][B]echo "__BBS__locked__"; cat /sys/power/wake_lock | xargs -n 1 echo; echo "__BBS__unlocked__"; cat /sys/power/wake_unlock | xargs -n 1 echo; echo "__BBS_end__"[/B][/COLOR]
__BBS__locked__

__BBS__unlocked__
ApmCommandThread
AudioOutLock
KeyEvents
PowerManagerService
client-interface
gps-lock
radio-interface
secril_fd-interface
secril_fmt-interface
secril_rfs-interface
__BBS_end__

Occasionally, if I keep repeating the command, I'll get e.g. the "radio-interface" one on the locked file, or PowerManagementService, etc.

Another technique that might help mitigate the fact that you could miss one of the entries, is taking note of the names in a permanent list and always include those names in the KWLs marked as userland.

Once one of these KWLs is created by writing to /sys/power/wake_lock, no matter how many times they are locked/unlocked they will never stop existing.

Another potential problem is the possibility of different KWLs with the same name, but that's something always present independently of this.

With such a feature it would be more clear on the KWL list which entries are indeed kernel per-se and which ones come from the RIL, android services, etc. and are therefore not kernel-specific.
[BetterBatteryStats] chamonix:
In fact I started using those files in BetterWifiOnOff to implement wakelock detection (option to not turn off Wifi as long as there is a userland = PowerManagerService) wakelock active.

The question I ask myself is if the sum of both files keeps increasing over time (in that case a cat at time T would show all the wakelocks that are also present in KWL) or if entries get removed over time and making things more complicated and forcing me to build a dictionary.

Anyway interesting feature to refine things.

https://github.com/asksven/BetterBatteryStats/issues/278

Edit_ mentioned detection for BetterWifiOnOff: https://github.com/asksven/AndroidC...ndroid/common/kernelutils/Wakelocks.java#L190
[BetterBatteryStats] tc80tc80:
Could some kind body please have a look at my BetterBatteryStats file. My I9000 is waking up in the middle of the night by itself. I charged the mobile, turned off the screen and only looked at it a few times for mere seconds to see how the battery drain was progressing during the entire period. I have been reading everything I can, but can't seem to pin this one down. The OS is Cyanogenmod 9.1.

View attachment BetterBatteryStats-2012-09-16_064146295.txt
[BetterBatteryStats] Tungstwenty:
The list will keep increasing over time (provided new distinct values are written to wake_lock by some client app / service). There is no purging mechanism whatsoever - at least looking at several different kernel sources which aren't kernel-specific.

Building a dictionary (or a static Set) might be a good idea, though, only to have a steady place to check whether a certain KWL should be flagged as non-kernel generated or not.

In fact, you could just cat the contents of both files as a whole, to insert them into the Set, since you won't be interested in knowing which are active at that precise time, but rather whether they come from useland or not. All received names would go into the set (99% of the time they don't change anything as they are repeated), and use those names as the ones to be flagged on the KWL list.
[BetterBatteryStats] GoJo ^^:
I updated my room, still came issue,i can tell you without WiFi enabled the issue is apparently not happening... Please help!
[BetterBatteryStats] Painless001:
How to read BBS

Hi,

I'm new to BBS, and was hoping someone could help me read the stats in the screenshots below. I'm on CM9 with Galaxy Note, and battery drains 1% every 20 minutes with screen off and juicedefender running. This seems high to me, and I want to stop the drain or slow it down considerably.

Thanks very much!
[BetterBatteryStats] alexinna:
Can you also try different Wi-Fi networks if possible? I think it would be interesting to know if this issue is happening on home Wi-Fi or on any.

If only home it could be related to your home modem but if any of them problem is probably with the phone.

Last thing if you can try factory reset to stock ROM and see how it will work for you.

---------- Post added at 05:54 PM ---------- Previous post was at 05:52 PM ----------

Please disable juicedefender and provide dump file as explained in post #1.
[BetterBatteryStats] kmetek:
why nobody helps me? :D
[BetterBatteryStats] chamonix:
That's what I was thinking. I'll start doing this synchronously to reading the KWL as the distinct cat from both files would contain all occurrences generated by this mechanism
[BetterBatteryStats] chamonix:
A little thicker line (3px) and a green tone from the logo for example would look like this:
[BetterBatteryStats] chamonix:
Your phone has not slept one second and it's not wakelock related. Could you please post a dmesg, that is the place to look for what prevent the PM shutdown cycle from completing
[BetterBatteryStats] chrone:
oh okay, i will try it later. this is the first time i use MIUI, lots of unknown tweaking need to be learned. lol :D will post you later tomorrow night. :good:
[BetterBatteryStats] alexinna:
Looks good. :good:

Is it possible to add line after "since" as well if it's enough space over there?

---------- Post added at 07:43 PM ---------- Previous post was at 07:20 PM ----------

Before analyzing your dump I see that phone doesn't have any data connection.

No Data Connection (): 14 h 28 m 34 s (52114 s) Ratio: 99.9%
No or Unknown Signal (): 14 h 28 m 34 s (52114 s) Ratio: 99.9%

Maybe that is why you have

"PowerManagerService" (): 32 m 53 s (1973 s) Cnt:(c/wc/ec)450/0/0 3.8%
NetworkStats (Android System): 30 m 54 s (1854 s) Count:90 3.6%

Overall information in a dump looks OK. Please enable data and post new more realistic dump.
[BetterBatteryStats] coiledwire:
I get a blanket "no reference set" using any version greater than 1.09. I've tried clearing app data and this problem even persists between clean data wipe ROM flashes. The play store version also gives me this no reference set problem.

Currently running aosp jelly bean on epic 4g touch. Any recommendations?

Sent from my SPH-D710
[BetterBatteryStats] chamonix:
I assume you have plugged/unplugged your phone after boot. If no please do so, if yes please redo and post a logcat
[BetterBatteryStats] Karpfenhai:
Bad news, latest version still contains the no awake /no screen on bug.. :(

But the app now shows screen on at least!

I'm fishing right now with pretty bad network coverage..

Tapatalked from my Samsung GT9100
[BetterBatteryStats] GoJo ^^:
I can surely do that, but you have to tell me how. I dunno what is a DMESG...
[BetterBatteryStats] coiledwire:
Could of sworn I did this as part of troubleshooting, but I guess not. Installed 1.10.5 and all appears good. I'll grab a log if I run into additional problems. Thanks.

Sent from my SPH-D710
[BetterBatteryStats] GoJo ^^:
Ok found. Live dmesg, right? Well i installed it and i don't see anything at boot...
[BetterBatteryStats] chamonix:
Leave your phone alone let's say 15 minutes. After that check in BBS if as expected your phone does not sleep and save dmesg and the BBS dump at that point in time.
[BetterBatteryStats] alexinna:
Testing 1.11RC1

BBS still shows negative values. Dump and logcat attached.

Plus since value in a dump is "0" now. UI still shows "since" value. Something is not right:

Since 0 s
Deep Sleep (): 7 h 1 m 21 s (25281 s) Ratio: 100.0%
Phone On (): 5 m 50 s (350 s) Ratio: 1.2%
Screen On (): (-465 s) Ratio: -1.8%

Thanks.
[BetterBatteryStats] icepixie:
Testing the newest version as well.

After unplugging, I can't seem to get an awake reading both in the app and the widget.

Screen on shows up in the app, but not in the widget.
[BetterBatteryStats] GoJo ^^:
ok but as i said the dmesg live app didn't give anything. I didn't find anything related to that on the first page ago i dunno how to reboot the info you need to see... please just tell me! Thanks in advance.
[BetterBatteryStats] Painless001:
Thanks buddy - here's the dump file from last 2 hours without JD. Much appreciated....
[BetterBatteryStats] Karpfenhai:
Just type this into you're terminal app:

su

dmesg >/mnt/sdcard/dmesg.txt

Post the file here.

Btw, does the process part of bbs show the culprit? I'm keen for a screenshot.

Good luck!

Tapatalked from my Samsung GT9100

---------- Post added at 12:54 AM ---------- Previous post was at 12:52 AM ----------

Hey there, your kernel wl are missing, but from a quick glance, replace exchange with k9 set to pull if possible.

Its your main culprit!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] GoJo ^^:
When i do this, terminal says system/bin/sh: smash: not found and the dmesg file is empty...
[BetterBatteryStats] GoJo ^^:
Here's the screenshot of processes!
[BetterBatteryStats] Painless001:
I see - I have 4 email accounts with push notifications on exchange. I can see why that's keeping the phone awake even with JD... So K9 will behave better even with push, or do I need to disable that and make it update, say, every 15 minutes?

All best!

- Galaxy Note N7000, ICS 4.0.4 CM9 -
[BetterBatteryStats] mzaur:
I am having same issue. If I reboot and unplug, it works OK. If I plug/unplug again (without rebooting), the screen on and awake values get screwed up.
[BetterBatteryStats] chamonix:
#279
[BetterBatteryStats] chamonix:
I obviously missed something and will do some more merging tonight
[BetterBatteryStats] Articudos:
Is this normal?

Google service wakes up a lot...

Is there any solutions?

Dump..

http://db.tt/mQFjLDor
[BetterBatteryStats] valsacar:
pastebin.com/3xYC6BD0

10 hour dump, 1 hour 40 minutes with screen on and almost 70% battery drained.

I know Kakao is a problem, but what else?
[BetterBatteryStats] chaitanya87:
Below is the link for my dump file ( more than 2 hours) . Kindly tell me where's the problem.

http://db.tt/25Lo33Rk
[BetterBatteryStats] GoJo ^^:
So tired of this ****!!
[BetterBatteryStats] chamonix:
Without dmesg no joy. You may want to download CommandCenter from google play, there is a set of logging actions, among other dmesg in there, ready to run and not requiring basic shell know-how
[BetterBatteryStats] chamonix:
Since 2 h 24 m 12 s
Deep Sleep (): 1 h 57 m 14 s (7034 s) Ratio: 80.8%
Awake (): 27 m 4 s (1624 s) Ratio: 18.8%
Phone On (): 13 m 44 s (824 s) Ratio: 9.5%
Screen On (): 10 m 41 s (641 s) Ratio: 7.4%

27 minutes awake - 13 screen on - 10 phone on = 0

This reading shows that your phone is awake when you are using it, nothing more
[BetterBatteryStats] hx179:
employer

any advice on this DPRAM thing?
[BetterBatteryStats] alexinna:
Dump also shows

"umts_multipdp" (): 58 m 34 s (3514 s) Cnt:(c/wc/ec)714/266/713 9.7%
"secril_fd-interface" (): 45 m 3 s (2703 s) Cnt:(c/wc/ec)1132/0/0 7.5%
"radio-interface" (): 17 m 37 s (1057 s) Cnt:(c/wc/ec)1337/0/0 2.9%
"umts_ipc0" (): 10 m 38 s (638 s) Cnt:(c/wc/ec)1392/20/1392 1.8%

They all show as kernel wakelocks so probably review in kernel discussion thread. I think they are related to network activities but I'm not sure. In a mid time you will benefit if you review location services (post #3 provides details), tasker and calendar.

net.dinglisch.android.tasker (): Wakeups: 112
com.android.providers.calendar (): Wakeups: 58
com.google.android.location (): Wakeups: 37

Good luck!
[BetterBatteryStats] GoJo ^^:
Chamonix, as i said, i used in terminal the command you have and it didn't work. Now i just installed command center and guess what, it fits not work either! Unless the file i should look for us boot the one in the root of sd card?
[BetterBatteryStats] chamonix:
The file is in /sdcard and is called dmesg_<timestsamp>
[BetterBatteryStats] chamonix:
News widget has been pretty bandwidth hungry with 6 MB. I can tell if it's normal but it is responsible for quite some awake time due to data transfer (about an hour in total)
[BetterBatteryStats] GoJo ^^:
File is EMPTY.
[BetterBatteryStats] chrone:
@chamonix, please forget what i posted about betterstats on miui official english rom 2.9.14, it works as it should be after unplugging usb cable data. as i recall, with newer version of betterbatterystats on vanilla jelly bean, i didn't even have to unplugged to get stats reading, it just fell back to since boot status. perhaps miui's built in "permission app" block the app and root access privileges at first time usage, but after twiddling around their permission app for awhile, i can read all stats perfectly with or without unplug (fall back to since boot).

do you still need the logcat?

thanks! :)
[BetterBatteryStats] chamonix:
no, if you get data then it's fine, thank you for the feedback!
[BetterBatteryStats] chamonix:
Try harder.... there is nothing we can do for you at this stage. All suggestions would work for anyone so the problem is at your end, on the phone or on the other end of your arms
[BetterBatteryStats] chamonix:
Release 1.11RC2

New version is up with a fix in the caculation of "since" time plus a small change in UI (delimiters).

Please provide dumpfile AND logcats in case of problems with times.

I'd like to get some feedback on the new package view introduced in RC1 as well.
[BetterBatteryStats] chamonix:
To me it is pretty clear that when airplane mode if off your phone barely sleeps:

Awake (): 7 h 59 m 34 s (28774 s) Ratio: 75.3%
Deep Sleep (): 2 h 37 m 7 s (9427 s) Ratio: 24.7%

One reason could be:

"unknown_wakeups" (): 1 h 50 m 51 s (6651 s) Cnt:(c/wc/ec)13504/0/13504 17.4%

The time does not fit but due to the high count it could sum up.

The big question is, why is it called "unknown" and where is it coming from?

Have you checked your favorite ROM/Kernel thread for similar experiences? are there any public kernel sources we could check? have you tried different radio versions?

I know, more questions than answers but it's not hopeless.

You also may want to enable the root features (advanced prefs) so we can see alarms and network traffic.
[BetterBatteryStats] Stileth:
Thanks for the delimiters, much better readability. :thumbup:

Odoslané z GT-I9100 cez Tapatalk 2
[BetterBatteryStats] Karpfenhai:
Well, that's not entirely true, check within your kernel thread how to enable logging and kernel messages or flash another kernel with logging enabled!

Some kernel devs (like hardcore) do disable all kernel loggins for battery savings.

So its up to you now, again.. :D

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chamonix:
I mentioned it may be at one end or the other didn't I? :p
[BetterBatteryStats] Karpfenhai:
Dunno what you did, but finally the values are shown again! :thumbup::thumbup::thumbup:

Right after unplugging screen on and awake appears, in the app and the widget, nicely done!

Delimeters are good, but why it has to be green? If not blue, imho a shiny grey would fit better or?

Thx for your hard work!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] chamonix:
I feld like the logo green but wth, I'll do some screenies and submit for vote (I don't feel like adding prefs for that).

And :D I am happy we have a progress on that times thing. Changes are up on github if you are interested, it's in StatsProvider.getSince()
[BetterBatteryStats] GoJo ^^:
i selected run as su, dunno what more can i do..? !
[BetterBatteryStats] Karpfenhai:
So you wrote a little private function for this..

What about a customizable graphic file for the delimiter colour?

Just searching for it to adjust it by myself.. :)

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Tungstwenty:
You might be running a kernel that is compiled (or dynamically configured) not to output any kernel logging information. It's common that some of them don't store android logger info (logcat), but the same can also be done for the kernel logger (/proc/kmsg file, or dmsg command).

Check on your kernel support thread if that is the case.

---------- Post added at 10:44 PM ---------- Previous post was at 10:25 PM ----------

The list delimiters look pretty good. My only suggestion would be to vertically align the app icons in each list entry, when they exist, and perhaps extend the hotspot for opening app details to that entire area on the left to be easier to open it.

As for the package view, IMO the info is a bit clogged, with the 2 non-separated views and all.

I'd suggest having multiple tabs:

- 1st tab with the info such as: package name, icon, app label, version, link to app settings

- Tab for permissions. A small change here: when you click an item to expand to the description, it would be nice allowing to click another one and expand it immediately. Currently it will first collapse the 1st item, even if you click outside its area and directly on another one.

- Tab for services: i'm not sure which part of the Settings/Applications/Running views (running services + cached processes) could be inserted here in the future. But at least the current list of existing services could be shifted to its own tab

- Possible tab for autorun info, in the future. One example would be the kind of info provided by Gemini App Manager.
[BetterBatteryStats] xeonyxorich:
https://www.dropbox.com/s/f7wayybbyjuwbsf/BetterBatteryStats-2012-09-17_150449402.txt

Left my phone in my pocket around school, 7 hour dump. Even after following the instructions to help freeze maps, I still get wake ups from it. Besides maps, i get it from other apps. Any help is appreciated, Thanks
[BetterBatteryStats] AestenD:
You will ALWAYS have wake ups of some sort. It's when they get out of hand that you need to start figuring **** out.
[BetterBatteryStats] valsacar:
I'll double check, but I did follow that guide on post 3 about location services. Calendar, I assume that has to do with sync?

---------- Post added at 01:01 AM ---------- Previous post was at 12:58 AM ----------

News widgit, is that the BBC one or some bloat I forgot to get rid of? AFAIK The BBC one is manual sync only, it does use up a bit of bandwidth but only when I'm actually using it.
[BetterBatteryStats] sizzlingtycoon:
Need it - help me...!!!

Dude...

Your post's really interesting... :good:

Would be grateful if you could guide me to have those tweaks on my device too... :rolleyes:

Thanks in advance... :fingers-crossed:

God bless...!!! :angel:
[BetterBatteryStats] alexinna:
Now BBS shows values and I hope correctly. :good:

Is package view requires root? I think so but decided to check.

Delimiters look good but maybe you can try the same color as you use for font or the same blue like around drop downs. It might look better specially if view without graphs. Green looks a beat strange there in my opinion.
[BetterBatteryStats] kevindd992002:
Sir, I don't know what I'm missing here but how does 27-13-10 equate to 0?
[BetterBatteryStats] chamonix:
OK I admit, I didn't sum the seconds but honestly this reading shows nothing else than you using the phone. Read the first posts for providing an idle dump and we can analyse further
[BetterBatteryStats] chamonix:
No it uses plain old api and does not require root
[BetterBatteryStats] Freddy1X:
I got 'BBS WAKELOCK WHILE SAVING REF'..

what is that? heheh..
[BetterBatteryStats] kevindd992002:
Oh no worries, I was just curious on the post of another person. Anyway, are there still known bugs with the latest release of bbs?

Also, are live wallpapers (specifically city at night live wallpapers) known to cause battery drain?
[BetterBatteryStats] chamonix:
That is a wakelock bbs uses while saving references, at boot, on unplug and on screen off if you use the watchdog
[BetterBatteryStats] chamonix:
If you are talking about RC2 well, it's a release candidate and it is a little early to tell but it is supposed to fix bug rather than adding new ones.

Live wallpapers, if properly designed will cause a little higher drain while screen is on but not when it is off. If it is poorly designed it is another story
[BetterBatteryStats] kevindd992002:
Oh ok. How do I know if it is poorly designed or not? Can bbs detect this?
[BetterBatteryStats] alexinna:
I didn't realize that I need to click on the icon. I was clicking on a row itself :o

Overall screen looks busy. "App Settings" screen shows permissions in more readable or I would say more common format. If you want to continue to keep everything on one screen it would require more formal sections. Also maybe screen should have user friendly (not so technical) look but show more detail information when user clicks on a record or allows to dump to the file. Interesting idea but requires better implementation.

Edit: may be collapsible sections will work better on this screen.