Here you will find details about the views and options of BetterBatteryStatistics are organised. Further information about using BetterBatteryStats is located in the how-tos.
29 |
References
30 |
31 | BetterBatteryStats does not collect data in the background but uses references saved at specific times (on specific events):
32 |
33 |
Boot: is saved when your phone boots, deletes all other refrences
34 |
Unplug: is saved when you unplug your phone from the charger
35 |
Charged: is saved when your phone gets charged to 100%
36 |
Screen Off: is saved when the screen of your phone goes off (if watchdog activated)
37 |
Screen On: is saved when the screen of your phone goes on (if watchdog activated)
38 |
Custom: is saved when you select the option to save a custom reference from the menu
39 |
Current: is the current data sample
40 |
41 |
42 |
43 | As long as those events did not occur or after a reboot BBS will notify you about a missing reference. This is not a bug, it's the way BBS was designed
44 |
45 |
Views
46 |
These are the four statistics:
47 |
48 |
Other: shows sleep, awake and screen on as well as other important times
49 |
Kernel Wakelocks: shows the total time and the count of kernel wakelocks
50 |
Partial wakelocks: shows the total time and the count of partial wakelocks
51 |
Alarms: shows the wakeups caused by applications or services
52 |
Network: shows network stats
53 |
CPU states: shows CPU states and deep sleep
54 |
Processes: shows the cpu time (user and system) processes have consumed
55 |
Package info: shows rights and services for a given package (app): this view can be opened by clicking on any icon from any view
56 |
57 |
and these are the possible points in time for showing stats (selection "from" and "to" any of those points in time):
58 |
59 |
Charged: when the phone was 100% charged
60 |
Unplugged: when the phone was unplugged from A/C or USB
61 |
Custom reference: when a custom reference was set (from the "Actions" menu)
62 |
Screen off: when the screen was turned off (only when the watchdog is enabled)
63 |
Screen on: when the screen was turned on (only when the watchdog is enabled and the corresponding preference is set)
64 |
Boot: when the phone was booted
65 |
Current: the current point in time
66 |
67 |
68 |
69 |
70 | Please note that the data for the timespans gets deleted at boot. To use "From=unplugged" after a reboot you need to plug/unplug your phone.
71 |
72 |
73 |
Other
74 |
75 | Group of different indicators about what is consuming the battery. This statistic should always be checked first as it gives a good idea about the draining profile.
76 |
77 |
78 | A usual profile would show low "Screen on" times compared the "Awake" meaning that partial wakelocks are resonsible for the battery drain as those preventing the phone from going to deep sleep.
79 |
80 |
81 |
Deep Sleep: the total time the phone was sleeping
82 |
Awake: the total time the phone was not in deep-sleep
83 |
Screen On: the total time the phone was awake and the display was on
84 |
Phone On: the total time the phone was in a call
85 |
Wifi On: the total time Wifi was on
86 |
Wifi running: the total time Wifi was connected to a SSID
87 |
Bluetooth On: the total time bluetooth was on
88 |
89 |
Partial wakelocks
90 |
91 | The list shows the total time of partial wakelock that was held by an application or by a service during the timespan, the number of wakelocks and the impact in percent.
92 | The impact in percent is calculated against the total time on, the awake time or the awake time - screen on time depending on the settings.
93 | Usually the impact calculated against the awake time is the most representative as it shows the potential in terms of reducing the awake time.
94 | The graph bars show the percentage depending on the preferences (see above).
95 |
96 |
97 | Even if the total time is low it is important to check for high counts as well. A large number of short wake periods can have a huge impact on the awake time as the phone takes some time to wake up and some time to go back to sleep. This is not shown in this stat.
98 | For example let's assume the phone takes 1/2 second to wake up and sleep again. For a wakelock of 10 seconds the resulting awake time would be 11 seconds. For 10 wakelocks of 0,1 seconds the total wakelock time would be as low as 1 second but the awake time would be 11 seconds.
99 |
100 |
Kernel wakelocks
101 |
102 | Like for partial wakelocks as well long running wakelocks as wakelocks with a high count (large number of wakeups) should be taken into acount.
103 |
104 |
Alarms
105 |
106 | Alarms are events created by applications that may cause wakeups.
107 |
108 |
Network
109 |
110 | Shows the transfered Bytes per application and per network interface.
111 |
112 |
CPU States
113 |
114 | Shows the time spent in each CPU state (frequency) including the time spent in deep sleep.
115 |
116 |
117 |
Processes
118 |
119 | The list shows the processes and their CPU consumption during the timespan. CPU consumption is expressed in user CPU and system CPU and both times are shown in the total and in the bar graph with different colors.
120 |
121 |
The watchdog
122 |
123 | The watchdog is a feature to help you in analysing when happens when the screen is off. When the watchdog is on a reference 'screen off' is created when the screen turns off. You can also configure the watchdog to create a reference 'screen on' when the screen is turned on (or unlocked). Opionally the watchdog will notify you when screen is turned on and the awake ratio was bigger that the configured awake threshold. In order to avoid too much overhead in processing a duration threshold can be set to disable the watchdog for short screen off times.
124 |
125 |
126 |
Menu
127 |
128 |
129 |
Preferences
130 |
Refresh
131 |
Order By/li>
132 |
More
133 |
134 |
Dump to file: writes the statistics to /sdcard/BetterBatteryStats.log
135 |
Set Custom Reference: set a custom begin mark for a statitic
136 |
History: shows different graphs like battery usage or wakeups (starting from android 2.3)
Hier findest Du Details darüber wie die Ansichten und Optionen von BetterBatteryStatistics organisiert sind.
29 | Mehr darüfindest Du in der how-to Dokumentation.
30 |
Referenzen
31 |
32 | BetterBatteryStats sammelt keine daten im Hintergrund sondern nutzt sog. Referenzen um sich Daten zu merken. Diese Referenzen werden zu bestimmten Zeitpunkten bzw. zu bestimmten Ereignissen gespeichert:
33 |
34 |
Boot: wenn das Handy neu gestartet wird; löscht alle anderen Referenzen
35 |
Unplug: wenn das Handy vom Ladekabel abgesteckt wird
36 |
Charged: wenn das Handy zu 100% geladen ist
37 |
Screen Off: wenn der Bildschirm ausgeht
38 |
Custom: wenn die entsprechende Option aus dem Menü gewählt wird
39 |
40 |
41 | So lange diese Ereignisse nicht eingetreten sind bzw. nach einem Neustart des Handys informiert eine Meldung, dass eine Referenz fehlt darüber, dass das entsprechende Ereignis noch nicht eigetreten ist. Dies ist kein Fehler sondern BBS wurde so konzipiert
42 |
43 |
Ansichten
44 |
Es gibt fünf Ansichten:
45 |
46 |
Other: die deep-sleep-, Wach- und Bildschirm an Zeiten so wie andere wichtige Infos
47 |
Kernel Wakelocks: Zeiten und Anzahl von Kernel Wakelocks
48 |
Partial wakelocks: Zeiten und Anzahl von Partial Wakelocks
49 |
Alarms: Details über Applikationen und Services die das Handy zum Aufwachen brachten
50 |
Network: Netzwerk Statistik
51 |
CPU states: CPU Frequenzen und Deep Sleep
52 |
Processes: cpu Zeit (user and system) auf Prozess-Ebene
53 |
Package informationen: zeigt Rechte und Services zu einem Package: diese Ansicht wird bei Click auf einem Icon geöffnet
54 |
55 |
und möglichen Zeitpunkte:
56 |
57 |
Charged: Zeitpunkt an dem das Handy vollständig aufgeladen war
58 |
Unplugged: Zeitpunkt an dem das Handy vom Ladegerät oder USB-Kabel genommen wurde
59 |
Custom reference: Zeitpunkt an dem eine benutzerdefinierte Referenz gespeichert wurde(siehe "Actions" Menü)
60 |
Screen off: Zeitpunkt an dem der Bildschirm ausgeschaltet wurde
61 |
Screen on: Zeitpunkt an dem der Bildschirm eingeschaltet wurde
62 |
Boot: Zeitpunkt an dem das Handy neu gestatet wurde
63 |
Current: Der aktuelle Zeitpunkt
64 |
65 |
66 |
67 |
Other
68 |
69 | Übersicht der wichtigen Zeiten und Indikatoren über die Aktivität des Geräts.
70 | Diese Ansicht sollte immer der Startpunkt einer Analyse sein.
71 |
72 |
73 | Typischerweise sollte "Screen on" mit "Awake" vergleichbar sein. Dies bedeutet, dass das Handy im Schlafzustand keine wesentliche Aktivitäten aufweist.
74 |
75 |
Deep Sleep: die Zeit in der das Handy im Schlafzustand war
76 |
Awake: die Zeit in der das Handy nicht im Schlafzustand war
77 |
Screen On: die Zeit in der das Display an war
78 |
Phone On: die Zeit in der ein Anruf aktiv war
79 |
Wifi On: die Zeit in der Wifi an war
80 |
Wifi running: die Zeit in der Wifi verbunden war
81 |
Bluetooth On: die Zeit in der Bluetooth an war
82 |
83 |
84 | Anmerkung: alle Referenzen werden beim Neustart gelöscht, d.h. um "unplugged" als Startpunkt zu nutzen muss erst das Handy erst einmal an das Ladegerät.
85 |
86 |
87 |
Partial Wakelocks
88 |
89 | Diese Liste zeigt die Zeiten und Anzahl von Wakelocks die durch Anwendungen zu verantworten sind. Der Anteil in % wird je Wakelock ausgewiesen.
90 | Die Berechnung des Anteils wird je nach Option gegen die Gesamtzeit, die Wach-Zeit oder die Wach-Zeit - Zeit mit Bildschirm, je nach Einstellung.
91 | Uuml;blicherweise ist der Anteil, errechnet gegen die Wach-Zeit am repräsantivsten.
92 | Der Balken zeigt der errechnete Anteil.
93 |
94 |
95 | Auch wenn die Zeit gering erscheint ist es wichtig die Anzahl zu überprüfen. Eine hohe Anzahl kann auch mit einer kurzen Zeit in Summe eine hohe Auswirkung haben: jedes Aufwachen ist mit Zeit zum aufwachen und zum wieder einschlafen verbunden. Diese Zeiten werden dem Wakelock nicht angerechnet.
96 |
97 |
98 |
Kernel Wakelocks
99 |
100 | Analog der Partial Wakelocks werden hier Wakelocks gelistet die vom Kernel verantwortet sind.
101 |
102 |
Alarms
103 |
104 | Alarms sind Ereignisse die zu einem Aufwachen des Handys führen können.
105 |
106 |
Network
107 |
108 | Datentransfer nach Anwendung und Netzwerk-Typ.
109 |
110 |
CPU States
111 |
112 | Zeit in jedem CPU Zustand (Frequenz) einschl. die Zeit im Deep Sleep Zustand.
113 |
114 |
115 |
Processen
116 |
117 | Die Liste zeigt die Prozesse und deren CPU-Verbrauch. Der CPU-Verbrauch ist in Sekunden ausgedrückt (User und System).
118 |
119 |
Der Watchdog
120 |
121 | Der Watchdog ist eine Funktionalität die dabei unterstützen soll zu analysieren was passier wenn der Bildschirm aus ist. Ist er aktiv wird eine Referenz 'screen off' automatisch erzeugt wenn der Bildschirm ausgeht. Optional kann auch eine Referenz 'screen on' erzeugt werden wenn der Bildschirm angeht bzw. das Handy entsperrt wird. Der Watchdog kann so eingestellt werden, dass er automatisch meldet wenn der Wach/Schlaf Ratio eine Grenz überschritten hat. Damit der Watchdog nicht zu viel Overhead erzeugt kann eine Mindestzeit eingestellt werden unter der Watchdog nicht anspringt wenn der Bildschirm angeschlatet wird.
122 |
123 |
124 |
Menu
125 |
126 |
127 |
Preferences: Einstellungen
128 |
Refresh
129 |
Order By: Sortierung
130 |
More
131 |
132 |
Dump to file: schreibt eine Datei mit den wesentlichen Informationen nach /sdcard/BetterBatteryStats.log
133 |
Set Custom Reference: Legt eine benutzerdefinierte Referenz an
134 |
History: Grafische Darstellung der Statistiken
135 |
Raw Alarms: Alarms seit Boot
136 |
Raw Kernel Wakelocks: Kernel Wakelocks seit Boot
137 |
Raw network stats: die Netzwerk Statistiken seit Boot
138 | li>CPU states: die CPU Zustände seit Boot
139 |
140 |
28 | This document provides an insight about how to use BetterBatteryStats to reduce the battery drain in a systematic manner.
29 |
First you must select a reference (most of the time "unplugged" to "current" is the best way to start).
30 |
Go to the [Other] view
31 |
Check the deep sleep, awake and screen on times
32 |
33 | The deep sleep to total time tells you how much time your phone has spent in the most power saving mode: ideally the deep sleep time should be near to the total time
34 |
35 |
36 | The screen on vs. awake ratio tells you how much time your phone was in use vs. how long it has been awake. Ideally the screen on time should be equal to the awake time, meaning that the phone was only awake when in use.
37 |
38 |
39 | Pro tip: the 1x1 widget shows both ratios and gives the best overview on how optimal your phones runs
40 |
Check the [Kernel wakelocks]
41 |
42 | The list shows you what kernel wakelocks occured: a symbol on the right shows that there is a knowledge-base article on that specific wakelock
43 | In the first step we want to check for high times (minutes or more), once there are no hot spots left we want to look at the high counts.
44 |
45 |
46 |
The PowerManagerService wakelock
47 |
48 | This wakelock shows as a sum of the partial wakelocks on many phones. If this wakelock is #1 go to the Partial Wakelocks to find out more.
49 |
50 |
The multipdp / svnet-dormancy wakelock
51 |
52 | This wakelock indicates a high network usage. If this wakelock is #1 go to the Network Stats to find out more.
53 |
54 |
55 |
56 | If the PowerManagerService is not the highest wakelock check the online knowledge-base or use google search to find more information about the wakelock and its potential causes.
57 |
58 |
Check the [Partial wakelocks]
59 |
60 | The list shows you what partial wakelocks occured and for most of them what application caused them. See "What's next" for more details on how to reduce them.
61 |
62 |
The AlarmManager wakelock
63 |
64 | High times or count on the AlarmManager wakelock is a sign that either many wakeups were caused by alarms or that apps have added/modified alarms intensively. A detailed overview can be found under [Alarms].
65 |
66 |
The Network Stats
67 |
68 | Here you will find what apps / packages are responsible for high data transfers.
69 |
70 |
71 |
What's next?
72 |
Some but not all wakelocks can be traced back to a specific app. In that case there are following options:
73 |
Check / change settings
74 |
75 | Sometimes we really want the app / functionality causing the wakelocks and the good news is there is still hope. Many apps have settings that condition their behaviour so these should be checked:
76 |
77 |
frequency: having twitter check for new messages every 2 minutes is not something compatible with a long battery life. Once you know the cost of a functionality it may be easier to decide to use it on demand instead of let it running as a background scheduled task
78 |
quantity: check for optional services like e.g. cloud backup, full sync etc. and ask yourself if you really need all that stuff
79 |
80 |
81 |
Deinstall or freeze
82 |
83 | Once a cause for partial wakelocks has been spotted you have to ask yourself if you even use that app. If not disable/deinstall/freeze it.
84 | Go back to the start and take another reading to see the effect of the action.
85 |
86 |
In some cases it is not possible to attribute a wakelock to an app. In such cases use the knowledge-base and google search to find more information about potential causes.
87 |
Common tips
88 | Following tips can help you reducing some causes of awake:
89 |
90 |
Turn your GPS off when not required to avoid apps using that expensive location source
91 |
When you are finished using an app close it with the "back" button. This will terminate it and avoid background management
92 |
Don't use any auto killer apps. If there are apps you don't want to be started or cached freeze them or configure their auto-start properly
93 |
Don't use and power saving tools like Juice Defender or Green Power: most apps do not behave properly when they can't use the data connection and will generate overhead by trying
94 |
If you don't need Wifi turn it off: in some cases Wifi is known to cause wakeups and an overhead in e.g. location services
95 |
96 |
97 |
Enjoy your successes
98 |
99 | One basic rule in performance optimization is to check the results for each action taken and this applies here too:
100 |
101 |
don't make too many changes at once: once a hot spot has been removed you may have a completely different picture. This is why processing two or more findings at once may be a waste of time
102 |
switching kernel, ROM or modem during a round of optimization will probably distort your statistics, avoid running tests during this time as the results may be demotivating
103 |
consider external factors, in case of unexpected stats being reported by BBS, run the tests again to validate readings: our phones are not closed systems and conditions like network coverage may influence readings. In case of doubt, confirm results by repeating the readings under different conditions in order to correctly diagnose a problem
104 |
don't obsess: you want to enjoy your phone too so don't obsess by hunting down the last second of wakelock. Enjoy your results and come back to check the stats from time to time of if you feel battery life is getting worse
28 | Einblick in die Art und Weise wie BetterBatteryStats genutzt werden kann um Akku-Verbraucher systematisch zu identifizieren.
29 |
Als erstes muss eine Referenz gewählt werden (üblicherweise ist "unplugged" bis "current" die beste Wahl).
30 |
Gehe zur [Other] Ansicht
31 |
Prüfe die deep sleep, awake und screen on Zeiten
32 |
33 | Der Anteil von deep sleep zur Gesamtzeit sagt aus wie lange das Handy im strohmschondenden Schlafmodus verbracht hat: idealerweise sollte die deep sleep Zeit vergleichbar mit der Gesamtzeit sein.
34 |
35 |
36 | Der Anteil von screen on zu awake sagt aus wie viel Zeit das Handy in Nutzung war und wie lange es in Summe wach war: idealerweise sollten diese Zeiten identisch sein.
37 |
38 |
39 | Tip: das 1x1 Widget zeigt diese Anteile grafisch und gibt so der ideale Einstieg
40 |
Prüfe die [Kernel wakelocks]
41 |
42 | Diese Liste zeigt welche Wakelocks vom Kernel verantwortet waren: ist ein Symbol rechts angezeigt so gibt es in der Knowledge-Base eine ausführliche Dokumentation dazu.
43 | Im ersten Schritt sind hohe Zeiten zu überprüfen (Minuten oder mehr). Wenn keine Ausreisser mehr vorhanden sind geht es mit den Wakelocks mit hoher Anzahl weiter.
44 |
45 |
46 |
Das PowerManagerService wakelock
47 |
48 | Auf viele Geräte wird PowerManagerService als Summe für alle Partial Wakelocks angezeigt. Ist also dieser an erster Stelle so geht es gleich bei den Partial Wakelocks weiter.
49 |
50 |
51 | Sollte PowerManagerService nicht an erster Stelle sein kann die online Knowledge-Base oder Google Search genutzt werden um mehr Infos zu erlangen.
52 |
53 |
Das multipdp / svnet-dormancy wakelock
54 |
55 | Dieses wakelock bedeutet eine hohe Datennetz-Nutzung. Ist also dieses an erster Stellen gehe zu dem Network Stats um herauszufinden welche App dies verursacht.
56 |
57 |
58 |
Prüfe die [Partial wakelocks]
59 |
60 | Die Liste der Wakelocks die durch Anwendungen direkt oder inderekt zu verantworten sind.
61 |
62 |
Das AlarmManager wakelock
63 |
64 | Hohe Zeiten oder Anzahlen bei AlarmManager ist ein Zeichen dafür, dass entweder das Handy sehr oft aufwachen musste oder, dass eine App häufig Alarm Einträge angelegt und/oder entfernt hat. Details dazu sind in der Ansicht [Alarms] zu finden.
65 |
66 |
Die Network Stats
67 |
68 | Hier findest Du welche apps / packages fü hohe Datenmengen verantwortlich sind.
69 |
70 |
71 |
Und nun?
72 |
Einige aber nicht alle Wakelocks können einer App direkt zugeordnet werden. In dem Fall ist das Vorgehen einfach:
73 |
Prüfen / Ändern der Einstellungen
74 |
Deinstallieren oder einfrieren
75 |
76 |
Ein Wakelock kann aber nicht immer einer App zuzuordnen. In den Fällen ist die Knowledge-Base und Google Search gute Informationsquellen.
77 |
Allgemeine Tips
78 |
79 |
GPS sollte aus bleiben wenn nicht genutzt um zu vermeiden, dass andere Apps diesen teuern Location-Dienst nutzen
80 |
Apps mit dem "zurück Button schliessen: somit wird sie aus dem Speicher entfernt
81 |
Keine Task Killer nutzen: ungewü Apps sollte deinstalliert under eingefroren werden
82 |
Keine Power Saver wie Juice Defender oder Green Power nutzen: eine App kann nicht richtig laufen wenn die Datenverbindung ihr entzogen wird und erzeugen somit Overhead
83 |
Wifi sollte ausgeschaltet werden wenn nicht genutzt: Wifi ist u.a. in Verbindung mit Google Maps
84 |
85 |
86 |
Geniessen
87 |
88 | Eine wichtige Regel bei Optimierung ist immer die Ergebnisse einer Aktion zu überprüfen:
89 |
90 |
nicht zu viele Änderung auf einmal: nachdem ein Ausreisser beseitigt wurde ist oft das Gesamtbild ein komplett anderes
91 |
Kernel, ROM oder modem während einer Optimierung ist kontraproduktiv, kann seiteneffekte einführen und die Interpretation einer Messung unmöglich machen
92 |
Bedingungen beachten: unerklärbare Ergebnisse können auf veränderte Bedingungen zurückzuführen (Netzabdeckung, Cloud Dienste). Im Zweifel sollte die Messung wiederholt werden
93 |
Nicht Verbeissen: Du willst Dein Handy geniessen und Optimieren sollte nur ein Mittel zum Zweck sein. Geniesse gute Ergebnisse und komme zu BBS zurück wenn sich die Acculaufzeit negativ verändert.
Specific knowledge about partial wakelocks and kernel wakelocks is available inline in BetterBatteryStats. This information can also be accessed in the wiki