Difference between revisions of "Laptop Testing"
m (Added Category) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
After a laptop has been deemed fit for building out, we want to ensure the memory installed is still good. Hence, Memtest. | After a laptop has been deemed fit for building out, we want to ensure the memory installed is still good. Hence, Memtest. | ||
− | A laptop successfully completes Memtest if it makes ''' | + | A laptop successfully completes Memtest if it makes '''2''' passes without error. Periodically check on the systems running Memtest to see if any errors are reported. If so, make note of where in memory the errors occurred. Occasionally, you can infer which stick is bad based on where the error occurred, and save a stick of RAM. Consult your Instructor if you have any questions. |
{| border="1" fontname="Nimbus Sans" fontsize="12" cellpadding="5" cellspacing="1" | {| border="1" fontname="Nimbus Sans" fontsize="12" cellpadding="5" cellspacing="1" | ||
Line 16: | Line 16: | ||
* FG-PDX | * FG-PDX | ||
− | |||
* Low-end | * Low-end | ||
* Mid-grade | * Mid-grade | ||
Line 37: | Line 36: | ||
# Confirm that Memtest is actively running and reporting the correct amount of memory and update the '''Keeper Label'''. | # Confirm that Memtest is actively running and reporting the correct amount of memory and update the '''Keeper Label'''. | ||
===Boot from LiveCD=== | ===Boot from LiveCD=== | ||
− | If the laptop you're working on doesn't support network booting and there isn't a hard drive available, you can try booting off of a LiveCD. There are a few available on the workbench, sometimes even a dedicated Memtest Boot CD. In general, once you boot from the CD, you should be presented with a list of boot options. Try and find '''Memory Test (memtest86+)''' in that list. If it's not there, try another boot CD. As always, if that | + | If the laptop you're working on doesn't support network booting and there isn't a hard drive available, you can try booting off of a LiveCD. There are a few available on the workbench, sometimes even a dedicated Memtest Boot CD. In general, once you boot from the CD, you should be presented with a list of boot options. Try and find '''Memory Test (memtest86+)''' in that list. If it's not there, try another boot CD. As always, if that doesn't work, consult your Instructor. |
|- | |- | ||
|'''Troubleshooting Memtest''' | |'''Troubleshooting Memtest''' | ||
| | | | ||
+ | |||
===Memtest Freezes=== | ===Memtest Freezes=== | ||
Sometimes you'll get Memtest loaded onto a machine, blue screen and all, but it won't indicate any activity. The newer versions of Memtest are incompatible with certain older chipsets in laptops. The work-around we have available is to use an earlier version. Unfortunately, this is only available on the Network at the moment. | Sometimes you'll get Memtest loaded onto a machine, blue screen and all, but it won't indicate any activity. The newer versions of Memtest are incompatible with certain older chipsets in laptops. The work-around we have available is to use an earlier version. Unfortunately, this is only available on the Network at the moment. | ||
Line 74: | Line 74: | ||
|'''Make sure the Battery is Charged''' | |'''Make sure the Battery is Charged''' | ||
|You can either hover your mouse over the '''Battery Icon''' on the top panel or, more reliably, type the following into a terminal: | |You can either hover your mouse over the '''Battery Icon''' on the top panel or, more reliably, type the following into a terminal: | ||
− | $ cat /proc/acpi/battery/ | + | $ cat /proc/acpi/battery/*/* |
− | Note that some manufacturers use odd names for the batteries (e.g., C167A). If you get an error with the previous command, either | + | Note that some manufacturers use odd names for the batteries (e.g., C167A). If you get an error with the previous command, then the system you are working either doesn't have a battery installed, or cannot recognize the battery. |
This will tell you how much charge the battery is rated to keep, as well as how much charge it had the last time it was full and what its current charge is at without attempting to guess how long the battery will last (Ubuntu is notoriously ''optimistic'' in its estimations). Here's some example output: | This will tell you how much charge the battery is rated to keep, as well as how much charge it had the last time it was full and what its current charge is at without attempting to guess how long the battery will last (Ubuntu is notoriously ''optimistic'' in its estimations). Here's some example output: | ||
Line 86: | Line 86: | ||
design capacity warning: 2460 mWh | design capacity warning: 2460 mWh | ||
design capacity low: 200 mWh | design capacity low: 200 mWh | ||
− | cycle count: | + | cycle count: 0 |
capacity granularity 1: 1 mWh | capacity granularity 1: 1 mWh | ||
capacity granularity 2: 1 mWh | capacity granularity 2: 1 mWh | ||
Line 101: | Line 101: | ||
Here you can see the '''remaining capacity''' is just a little bit below the '''last full capacity''', but that the battery is reporting '''charging''' at a rate of '''0'''. This can be attributed to the natural degradation of the battery, and so this should be good to test. | Here you can see the '''remaining capacity''' is just a little bit below the '''last full capacity''', but that the battery is reporting '''charging''' at a rate of '''0'''. This can be attributed to the natural degradation of the battery, and so this should be good to test. | ||
+ | |||
+ | Battery information will be represented with one of two units of measure: '''m'''illi'''w'''att '''h'''ours (mWh), or '''m'''illi'''a'''mp '''h'''ours (mAh). The difference is approximately a factor of 10. You can expect measurements in mAh to be four digits long, and measurements in mWh to be five digits long. | ||
+ | |||
+ | As batteries will frequently have maximum capacities far below their '''last full capacity''', it is sometimes useful to try and infer how close to being fully charged the battery is. The GUI can be especially bad at predicting this, particularly with certain manufacturers (Dell, HP/Compaq, Toshiba). Usually, you can tell if a battery is nearing its maximum charge by virtue of it's '''present rate''' of charge: | ||
+ | *If measured in mAh, a battery is nearing its maximum charge when its present rate falls below '''800 mA''', | ||
+ | *If measured in mWh, a battery is nearing its maximum charge when its present rate falls below '''10000 mW''', | ||
Bear in mind that sometimes the firmware will lie, and represent numbers that are not at all accurate. The above is primarily meant to be a way of gathering clues as to the health of the battery. Remain vigilant! | Bear in mind that sometimes the firmware will lie, and represent numbers that are not at all accurate. The above is primarily meant to be a way of gathering clues as to the health of the battery. Remain vigilant! | ||
Line 121: | Line 127: | ||
# Open another terminal, and type the following: | # Open another terminal, and type the following: | ||
$ while true ; do stress-test ; sleep 300 ; done | $ while true ; do stress-test ; sleep 300 ; done | ||
− | This will tell the computer to run a <code>stress-test</code> for 3 minutes, and then rest for | + | This will tell the computer to run a <code>stress-test</code> for 3 minutes, and then rest for 5 minutes until the battery dies. |
Make sure that you leave the '''AC Adapter''' with the laptop on the shelf. This makes it easier to check the results of the battery test and move it along the production line. | Make sure that you leave the '''AC Adapter''' with the laptop on the shelf. This makes it easier to check the results of the battery test and move it along the production line. | ||
Line 137: | Line 143: | ||
|It is ''imperative'' that we not boot from the hard drive before it has been wiped. The first thing to do is boot the laptop and set the '''Optical drive''' and, if available, '''Network device''' first in the boot order. | |It is ''imperative'' that we not boot from the hard drive before it has been wiped. The first thing to do is boot the laptop and set the '''Optical drive''' and, if available, '''Network device''' first in the boot order. | ||
|- | |- | ||
− | |'''Boot into a Live environment''' | + | |'''Method 1: Disktest (a la Hardware Testing)''' |
+ | | | ||
+ | *Boot to the network and choose '''LTSP -> Floe (disk testing)''' | ||
+ | *A console environment will load on the machine and run some initial [http://en.wikipedia.org/wiki/S.M.A.R.T. S.M.A.R.T.] tests. Eventually, it will prompt you to confirm the serial and model numbers of the attached machine. Enter '''yes''', then '''no''', then '''yes, I want to test 1 drive(s)'''. Bear in mind, you have to enter the above answers exactly in order to begin the disktest. | ||
+ | *Disktest should now begin <code>badblocks</code>ing the hard drive. If it fails at any point, the error output will appear on the screen and prompt you to hit '''Enter''' in order to shutdown the machine. See [[Hard Drive Testing]] for more information. | ||
+ | |- | ||
+ | |'''Method 2: Boot into a Live environment''' | ||
| | | | ||
*If a '''Network Boot''' is available, you can select '''Debian Rescue''' at the bottom of the Netboot menu. This will load a console version of Debian onto the systems memory, | *If a '''Network Boot''' is available, you can select '''Debian Rescue''' at the bottom of the Netboot menu. This will load a console version of Debian onto the systems memory, | ||
*If you can't get the system to boot from the Network, try using a '''LiveCD''' (with an external Optical drive, if necessary). We only need a commandline, so as soon as the environment is loaded, drop to a console with '''Ctrl + Alt + F1''', | *If you can't get the system to boot from the Network, try using a '''LiveCD''' (with an external Optical drive, if necessary). We only need a commandline, so as soon as the environment is loaded, drop to a console with '''Ctrl + Alt + F1''', | ||
− | + | *Once you have a console up, type the following: | |
− | |||
− | |||
$ sudo badblocks -wvvf /dev/sda -c 1024 | $ sudo badblocks -wvvf /dev/sda -c 1024 | ||
− | This will start writing arbitrary data to every sector of the harddrive, making five full passes with different patterns each time. Note that this procedure will take a ''long'' time (somewhere along 3-5 hours). | + | *This will start writing arbitrary data to every sector of the harddrive, making five full passes with different patterns each time. Note that this procedure will take a ''long'' time (somewhere along 3-5 hours). |
|} | |} | ||
− | [[Category:Laptops]] | + | [[Category:Laptops Archive]] |
Latest revision as of 19:43, 6 November 2013
The Laptop Testing shelf is located in the far corner of the room from the entrance. There are a handful of ethernet cables for booting to the network, as well as a few long power strips for charging batteries. When you put a system on the Testing shelf, MAKE SURE YOU KEEP ITS AC ADAPTER WITH IT (even for Battery tests)!
Memtest
After a laptop has been deemed fit for building out, we want to ensure the memory installed is still good. Hence, Memtest.
A laptop successfully completes Memtest if it makes 2 passes without error. Periodically check on the systems running Memtest to see if any errors are reported. If so, make note of where in memory the errors occurred. Occasionally, you can infer which stick is bad based on where the error occurred, and save a stick of RAM. Consult your Instructor if you have any questions.
STEPS | NOTES AND DETAILED DESCRIPTION |
Install the proper amount of RAM | Check the specs on the whiteboard and confirm with your Instructor that the appropriate amount of RAM is installed. You should only be running Memtest on the following types of laptops:
As-Is machines go straight to the Store after being outfitted. |
Run Memtest | Depending on the system, there are a couple approaches we can take:
Boot from Network
Boot from HDDIf you've already installed an imaged hard drive, then Memtest is available on the local disk. Follow these steps:
Boot from LiveCDIf the laptop you're working on doesn't support network booting and there isn't a hard drive available, you can try booting off of a LiveCD. There are a few available on the workbench, sometimes even a dedicated Memtest Boot CD. In general, once you boot from the CD, you should be presented with a list of boot options. Try and find Memory Test (memtest86+) in that list. If it's not there, try another boot CD. As always, if that doesn't work, consult your Instructor. |
Troubleshooting Memtest |
Memtest FreezesSometimes you'll get Memtest loaded onto a machine, blue screen and all, but it won't indicate any activity. The newer versions of Memtest are incompatible with certain older chipsets in laptops. The work-around we have available is to use an earlier version. Unfortunately, this is only available on the Network at the moment.
Misreported Available Memory
|
Battery Test
Once an imaged hard drive has been installed in a laptop, we can test its battery. This can happen either before or after the laptop has been built out, but needs to occur before its QC.
STEPS | NOTES AND DETAILED DESCRIPTION |
Adjust the Power Settings | These steps are covered under the Laptop Build Checklist:
|
Make sure the Battery is Charged | You can either hover your mouse over the Battery Icon on the top panel or, more reliably, type the following into a terminal:
$ cat /proc/acpi/battery/*/* Note that some manufacturers use odd names for the batteries (e.g., C167A). If you get an error with the previous command, then the system you are working either doesn't have a battery installed, or cannot recognize the battery. This will tell you how much charge the battery is rated to keep, as well as how much charge it had the last time it was full and what its current charge is at without attempting to guess how long the battery will last (Ubuntu is notoriously optimistic in its estimations). Here's some example output: present: yes design capacity: 56160 mWh last full capacity: 49200 mWh battery technology: rechargeable design voltage: 10800 mV design capacity warning: 2460 mWh design capacity low: 200 mWh cycle count: 0 capacity granularity 1: 1 mWh capacity granularity 2: 1 mWh model number: 42T5262 serial number: 35098 battery type: LION OEM info: SANYO present: yes capacity state: ok charging state: charging present rate: 0 remaining capacity: 47800 mWh present voltage: 11243 mV Here you can see the remaining capacity is just a little bit below the last full capacity, but that the battery is reporting charging at a rate of 0. This can be attributed to the natural degradation of the battery, and so this should be good to test. Battery information will be represented with one of two units of measure: milliwatt hours (mWh), or milliamp hours (mAh). The difference is approximately a factor of 10. You can expect measurements in mAh to be four digits long, and measurements in mWh to be five digits long. As batteries will frequently have maximum capacities far below their last full capacity, it is sometimes useful to try and infer how close to being fully charged the battery is. The GUI can be especially bad at predicting this, particularly with certain manufacturers (Dell, HP/Compaq, Toshiba). Usually, you can tell if a battery is nearing its maximum charge by virtue of it's present rate of charge:
Bear in mind that sometimes the firmware will lie, and represent numbers that are not at all accurate. The above is primarily meant to be a way of gathering clues as to the health of the battery. Remain vigilant! |
Running Batterytest | There are two ways you can run a Battery Test:
Method 1: Playing a CD
Method 2: While loop
$ while true ; do stress-test ; sleep 300 ; done This will tell the computer to run a Make sure that you leave the AC Adapter with the laptop on the shelf. This makes it easier to check the results of the battery test and move it along the production line. |
Badblocks
Occasionally we'll get a laptop (especially netbooks) where it is exceedingly difficult to remove the hard drive, or the hard drive has an incompatible adapter with our imaging stations. When this happens, we can wipe the hard drive while it is inside of the computer and then install Ubuntu on it.
STEPS | NOTES AND DETAILED DESCRIPTION |
Adjust the Boot Order | It is imperative that we not boot from the hard drive before it has been wiped. The first thing to do is boot the laptop and set the Optical drive and, if available, Network device first in the boot order. |
Method 1: Disktest (a la Hardware Testing) |
|
Method 2: Boot into a Live environment |
$ sudo badblocks -wvvf /dev/sda -c 1024
|