-
Notifications
You must be signed in to change notification settings - Fork 9
/
howto.html
119 lines (106 loc) · 6.41 KB
/
howto.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<!-- see http://cssgrid.net/ -->
<html lang="en">
<head>
<title>Help</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- The 1140px Grid - http://cssgrid.net/ -->
<link rel="stylesheet" href="css/1140.css" type="text/css" media="screen" />
<!-- Your styles -->
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<!--css3-mediaqueries-js - http://code.google.com/p/css3-mediaqueries-js/ - Enables media queries in some unsupported browsers-->
<script type="text/javascript" src="js/css3-mediaqueries.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<h2>BetterBatteryStats How To</h2>
<div id="content">
This document provides an insight about how to use BetterBatteryStats to reduce the battery drain in a systematic manner.
<p>First you must select a reference (most of the time "unplugged" to "current" is the best way to start).</p>
<h1>Go to the [Other] view</h1>
<h2>Check the deep sleep, awake and screen on times</h2>
<p>
The <i>deep sleep to total time</i> 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
</p>
<p>
The <i>screen on vs. awake ratio</i> 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.
</p>
<p>
<b>Pro tip:</b> the 1x1 widget shows both ratios and gives the best overview on how optimal your phones runs</p>
<h2>Check the [Kernel wakelocks]</h2>
<p>
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
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.
</p>
<h3>The PowerManagerService wakelock</h3>
<p>
This wakelock shows as a sum of the partial wakelocks on many phones. If this wakelock is #1 go to the <i>Partial Wakelocks</i> to find out more.
</p>
<h3>The multipdp / svnet-dormancy wakelock</h3>
<p>
This wakelock indicates a high network usage. If this wakelock is #1 go to the <i>Network Stats</i> to find out more.
</p>
<p>
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.
</p>
<h2>Check the [Partial wakelocks]</h2>
<p>
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.
</p>
<h3>The AlarmManager wakelock</h3>
<p>
High times or count on the <i>AlarmManager</i> 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].
</p>
<h3>The Network Stats</h3>
<p>
Here you will find what apps / packages are responsible for high data transfers.
</p>
<h2>What's next?</h2>
<p>Some but not all wakelocks can be traced back to a specific app. In that case there are following options:
<h3>Check / change settings</h3>
<p>
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:
<ul>
<li>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</li>
<li>quantity: check for optional services like e.g. cloud backup, full sync etc. and ask yourself if you really need all that stuff</li>
</ul>
<h3>Deinstall or freeze</h3>
<p>
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.
Go back to the start and take another reading to see the effect of the action.
</p>
<p>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.</p>
<h2>Common tips</h2>
Following tips can help you reducing some causes of awake:
<ul>
<li>Turn your GPS off when not required to avoid apps using that expensive location source</li>
<li>When you are finished using an app close it with the "back" button. This will terminate it and avoid background management</li>
<li>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</li>
<li>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</li>
<li>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</li>
</ul>
</p>
<h2>Enjoy your successes</h2>
<p>
One basic rule in performance optimization is to check the results for each action taken and this applies here too:
<ul>
<li>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</li>
<li>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</li>
<li>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</li>
<li>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</li>
</ul>
</div>
<br />
<nav class="">
<ul>
<li><a href="help.html">Getting started</a></li>
<li><a href="howto.html">How To...</a></li>
<!-- <li><a href="/wakelocks.html">Wakelocks</a></li> -->
</ul>
</nav>
</div>
</div>
</body>
</HTML>