Difference between revisions of "Template:Battery Testing"

From FreekiWiki
Jump to navigation Jump to search
(create page, first draft)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
☐ Charge the battery completely
+
__NOTOC__
*Check the '''Start''' box next to Battery Charge on the Keeper label.
+
===Battery Charging and Testing===
*Charge the laptop with the AC adapter on the testing shelf.
+
'''Confirm the Battery is Fully Charged''' <br>
*To see if the battery is charged, hover over the battery icon on the Desktop toolbar.
+
&#9744; Set the laptop on the testing shelf and make sure it is plugged in to a power outlet. <br>
&#9744; Start <code>batterytest</code><br>
+
&#9744; To monitor the state of the battery, open a terminal and type: <br>
*Open a Terminal. Type
+
<code>
  batterytest
+
watch -n3 -d cat /proc/acpi/battery/*/*
and hit enter.
+
</code>
*Open a second Terminal, and type
+
*If the battery seems like it is healthy and charging normally, check the '''Start''' box next to Battery Charge on the Keeper Label and let it finish charging. <br><br>
 +
 
 +
'''Test Battery Life'''<br>
 +
&#9744; When the battery is fully charged, open a terminal and run: <br>
 +
<code>batterytest</code><br>
 +
&#9744; Open a second Terminal ('''hint:''' press '''Super''' + '''T''' to quickly open a new terminal window) and run:
 +
  <code>
 
  while : ; do stress-test ; sleep 300 ; done
 
  while : ; do stress-test ; sleep 300 ; done
&#9744; Disconnect the AC adapter from power
+
</code>
*Keep the AC adapter with the laptop
+
&#9744; Disconnect the AC adapter from the power outlet, but keep it with the laptop for later. <br>
 +
&#9744; Get a '''Battery Testing''' label from the wall next to the testing shelf and stick it to the palm rest of the laptop.
 +
<blockquote>
 
'''How it works'''<br>
 
'''How it works'''<br>
The laptop will run the stress-test in a loop until it runs out of power. For every minute the laptop is on during battery testing, a line of text is logged in a file called <code>bat_mon</code>. When battery test is run again, the script counts up the number of lines of text in the <code>bat_mon</code> file, and outputs the number as the number of minutes the battery lasted.
+
The laptop will run 3 minutes of <code>stress-test</code>, then 5 minutes at idle, in a loop until it runs out of power and shuts off. For every minute the laptop is on during battery testing, a line of text is logged in a file called <code>bat_mon</code>. When battery test is run again, the script checks for the <code>bat_mon</code> file and counts up the number of lines of text in the file, then outputs the number as the number of minutes the battery lasted.
 
+
</blockquote>
 
[[Category:Laptops]]
 
[[Category:Laptops]]

Latest revision as of 14:51, 12 October 2013

Battery Charging and Testing

Confirm the Battery is Fully Charged
☐ Set the laptop on the testing shelf and make sure it is plugged in to a power outlet.
☐ To monitor the state of the battery, open a terminal and type:

watch -n3 -d cat /proc/acpi/battery/*/*

  • If the battery seems like it is healthy and charging normally, check the Start box next to Battery Charge on the Keeper Label and let it finish charging.

Test Battery Life
☐ When the battery is fully charged, open a terminal and run:

batterytest

☐ Open a second Terminal (hint: press Super + T to quickly open a new terminal window) and run:


while : ; do stress-test ; sleep 300 ; done

☐ Disconnect the AC adapter from the power outlet, but keep it with the laptop for later.
☐ Get a Battery Testing label from the wall next to the testing shelf and stick it to the palm rest of the laptop.

How it works
The laptop will run 3 minutes of stress-test, then 5 minutes at idle, in a loop until it runs out of power and shuts off. For every minute the laptop is on during battery testing, a line of text is logged in a file called bat_mon. When battery test is run again, the script checks for the bat_mon file and counts up the number of lines of text in the file, then outputs the number as the number of minutes the battery lasted.