Difference between revisions of "Template:Battery Testing"

From FreekiWiki
Jump to navigation Jump to search
(Created page with "Waiting for 12.04 testing drives to complete article ~~~~ Category:Laptops")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Waiting for 12.04 testing drives to complete article [[User:Lynnae|Lynnae]] 01:05, 21 October 2012 (UTC)
+
__NOTOC__
 +
===Battery Charging and Testing===
 +
'''Confirm the Battery is Fully Charged''' <br>
 +
&#9744; Set the laptop on the testing shelf and make sure it is plugged in to a power outlet. <br>
 +
&#9744; To monitor the state of the battery, open a terminal and type: <br>
 +
<code>
 +
watch -n3 -d cat /proc/acpi/battery/*/*
 +
</code>
 +
*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
 +
</code>
 +
&#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>
 +
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.