Difference between revisions of "Template:Battery Testing"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Battery Charging and Testing=== | ===Battery Charging and Testing=== | ||
'''Confirm the Battery is Fully Charged''' <br> | '''Confirm the Battery is Fully Charged''' <br> | ||
Line 33: | Line 7: | ||
watch -n3 -d cat /proc/acpi/battery/*/* | watch -n3 -d cat /proc/acpi/battery/*/* | ||
</code> | </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> | + | *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> | '''Test Battery Life'''<br> | ||
− | ☐ When the battery is fully charged, open a terminal and run | + | ☐ When the battery is fully charged, open a terminal and run: <br> |
<code>batterytest</code><br> | <code>batterytest</code><br> | ||
− | + | ☐ Open a second Terminal ('''hint:''' press '''Super''' + '''T''' to quickly open a new terminal window) and run: | |
<code> | <code> | ||
while : ; do stress-test ; sleep 300 ; done | while : ; do stress-test ; sleep 300 ; done | ||
</code> | </code> | ||
☐ Disconnect the AC adapter from the power outlet, but keep it with the laptop for later. <br> | ☐ Disconnect the AC adapter from the power outlet, but keep it with the laptop for later. <br> | ||
+ | ☐ Get a '''Battery Testing''' label from the wall next to the testing shelf and stick it to the palm rest of the laptop. | ||
<blockquote> | <blockquote> | ||
'''How it works'''<br> | '''How it works'''<br> | ||
− | The laptop will run | + | 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> | </blockquote> | ||
[[Category:Laptops]] | [[Category:Laptops]] |
Latest revision as of 13: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 ofstress-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 calledbat_mon
. When battery test is run again, the script checks for thebat_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.