XO Troubleshooting Battery/lang-es
Traducción de XO_Troubleshooting_Battery | original |
english | español +/- | cambios |
- This is an on-going translation
Este es el parte de la Guia diagnóstico del laptop XO para diagnosticar problemas con la batería y energía en el laptop XO.
Empieza Aquí
{{Translated text| What problem are you experiencing with your laptop ? | display=none } Que problemas tiene con su laptop ?
El laptop no funcione de su batería
Si el laptop funcione bien con un batería conocido buena, la batería debe ser reemplazada.
Si el laptop no funciona con un batería conocido buena, ver el diagnóstico de problemas de batería.
{{anchor|The battery light is flashing red
El LED de batería está parpadeante rojo
Si la luz de batería está parpadeando roja, esto normalmente indica un error con la batería. Pruebe un restablecimiento completo. Si el problema persiste, entonces la batería debe ser reemplazada.
Si la batería de repuesto muestra la misma parpadea en rojo de la luz de batería, ver causas comunes de falta de presencia de batería, más adelante.
Es posible obtener más información acerca de la batería y, posiblemente, repararlo. Véase más abajo.
El laptop no puede cargar la batería
Si el laptop puede cargar una batería conocida buena, la batería debe ser reemplazada.
- Si la batería es una batería LiFePO4, con una etiqueta amarilla, véase el procedimiento de recuperación LiFePO4.
Si el laptop no puede cargar la batería conocida buena, ver el diagnóstico de problemas de batería.
El laptop no funciona usando el adaptador de alimentación
Si el laptop funciona bien usando un adaptador de alimentación conocido bueno, el adaptador debe ser sustituido.
Si el laptop no funciona usando un adaptador de alimentación conocido bueno:
- ¿El LED de batería todavía indicar el laptop piensa que tiene poder? Con un batería presente, el LED de batería debe iluminarse con amarillo o verde entra de un minuto. Si lo vea, es probable que tienes un problema de encendir el laptop.
- De lo contrario, es necesario sustituir la placa madre.
- Componentes sospechosos son el fusibles F1 (2A) y el diodo D21 (Schottky 3A) en la protección de la entrada DC de la placa madre. Si el fusible fue volado, comprobar diodo D123 (Schottky 3A) y el diodo D118 (38v zener) para ver si están bien.
The laptop emits a high pitched whine when using the power adapter
Working on this one
Diagnosing Battery Problems
Charging of the battery, and interpretation of the front panel buttons, is under the control of a separate microprocessor in the laptop, the Embedded Controller (EC). In order to ensure that battery communications are being properly handled, we must first establish that the EC is operating correctly:
Did the EC boot?
Follow the Full Reset procedure, and check to see if the battery LED flashes orange momentarily after reapplying power.
If it didn't flash at all, you probably have a broken motherboard. If it flashed another color (red or green), then you probably have a problem with the LED driver circuitry.
Does the EC recognize the battery?
When a battery is inserted into the laptop, the EC reads information about that battery from a integrated circuit inside the battery. If the EC does not receive valid information from this read, it will either assume that a battery does not exist, or report an error. The following tests tell if the EC is talking the battery correctly.
Does the battery light respond to changes in external power?
When you apply external power, the battery led should light up in one of four states:
- solid green - indicates a fully charged battery
- solid yellow - indicates a battery being charged
- solid red - indicates a battery in dire need of charging
- flashing red - indicates a battery error. See above and a detailed explanation below.
If the battery light does not indicate one of these states (e.g. nothing lights up) then the battery is not being recognized. If you get a solid battery light then the EC has successfully read the battery gauge. If the battery light stays unlit then either the battery is not recognized or the data read has confused the EC. Use one of the following methods to manually check for battery presence to determine the problem.
Checking for battery presence
The following methods may be used to manually check for battery presence.
Using Linux
Linux has an interface to the laptop's battery subsystem. Its available via sysfs at /sys/class/power_supply/olpc_battery/. The value of 'present' indicates if the EC thinks a battery exists. To check this value use the 'cat' command in the terminal app or at a vtty:
cat /sys/class/power_supply/olpc_battery/present
Using OpenFirmware
You will need a developer key for the laptop. Open Firmware has command that will talk to the EC and read the current battery info. This command is watch-battery. At the Open Firmware command prompt do:
ok watch-battery
If EC thinks a battery exists you should see a single line that gets updated with various pieces of battery information. If a battery does not exist then that will be indicated with a 'No battery' rather than battery status info.
Using OpenFirmware and batman.fth
You will need a developer key for the laptop. Batman.fth has comands that can interrogate the state machine of the EC's 1-wire interface. This allows you to see what's happening on the 1-wire bus. The command for this is see-bstate. If a battery is not detected the numbers printed will cycle between 0,1 and 2. Numbers other than that indicate the EC has detected a battery.
Common Causes for lack of battery presence
There are a number of possible causes for lack of battery presence. Here they are, in the order in which they should be checked.
Unplugged cable
Check to see that connectors CN21 and CN22 on the motherboard are firmly plugged in. There is a second connector, hidden in the bottom part of the laptop.
Broken Wire
If no batteries are detected, a break or bad connection between CN22 on the motherboard and the data pin on the battery connector results in no 1-wire communication (seen as this problem). Check continuity of the cable with an ohm meter.
add pictures
Bad data in battery EEPROM
Normally if the data in the EEPROM has been corrupted a flashing red LED error will result. However, depending on the corruption it may be possible to confuse the EC. Use a known good battery to ensure that the problem is with the battery and not the laptop.
A battery in this condition can be detected by watching the output of see-bstate.
One-wire Communication Error
The sensor inside the battery could be malfunctioning or the output from the EC could be corrupted from a manufacturing defect. If the laptop cannot communicate with the known good battery, and you have already checked for an unplugged cable or broken wire, then the error is in the laptop motherboard and it will need replacement.
Battery LED is flashing red
Flashing red LED indicates that the battery subsystem has detected an error. Open Firmware has a command that will read the error code from the EC. The command for this is 'ec-abnormal@'. At the Open Firmware use the following to view the error code.
ok ec-abnormal@ .
Note the '.' at the end. This is required to print the error code.
The error conditions should be listed...
Battery fails to charge?
Checking the actual charge level
olpc-pwr_log is a Linux bash script that allows you to measure the amount of charge delivered to or extracted from the battery. It can be used to determine if the battery is performing at its rated capacity.
Laptop abruptly shuts off before battery is capacity reaches < 10%
See above
Software Tools
olpc-pwr_log
Currently this tool is located at http://dev.laptop.org/~rsmith/olpc-pwr_log
To use olpc-pwr_log follow the following procedure:
- Copy (or download) olcp-pwr_log to the XO. It does not need any special priviledge
- Start it
The script will wait until it detects a battery and then begin to log various parameters via the olpc-battery subsystem. If you battery is really low and the EC is using trickle charge rather than main charge then the script will appear to be still looking for a battery even though the yellow charge light is on. Once the EC finishes trickle charging it will report that a valid battery is present and the script will continue.
The output of the script is both to the screen and to a file. The file name is 'pwr-<date>-<gauge ID>.csv'. Gauge ID is a unique ID number that is contained in the gas gague of each battery.
More details can be found here
batman.fth
Batman.fth is a forth script that is available from [1]. To use it you must load it at an Open Firmware (OFW) prompt. Getting to an OFW prompt requires a developer key. At the OFW prompt the script is loaded with the 'fload' command specifying the storage device where bathman.fth is located. Examples:
USB disk:
fload usb:\batman.fth
SD card:
fload sd:\batman.fth
Nand:
fload nand:\batman.fth
Once loaded you run the commands in the script just like any other OpenFirmware command.
Key tools in batman.fth
The following is a list of useful tools in batman.fth with a brief note how to use them. Some of these commands require that the EC be but in reset prior to running them so that the EC batter management system is disabled. The 1w-init command does this. After the 1w-init command is used all keyboard, touchpad and button activity is disabled. Including the power button. This means that any command requiring a 1w-init will require you to completely power off the XO by removing both external power and the battery.
- 1w-init
- Put the EC in reset and prepare the system so that openfirmware can talk directly to the gas gauge chip in the battery. All keyboard, touchpad and button activity is disabled after this command. Required prior so some of the other commands.
- see-bstate
- Continually prints the EC 1-wire communication state machine index. Useful for determining if the EC can talk to the battery gas gague.
- Does not need 1w-init.
ok see-bstate
- bat-recover
- Does PWM on the charge enable line resulting in a psuedo-current limited charge of the battery. Streams the battery temperature, currrent, voltage and net ACR to the screen.
- Automatically runs 1w-init
ok bat-recover
- bat-set-low
- Zeros out various values in the battery's gas guage EEPROM forcing the EC to resync with the state of the battery. Useful if your battery is marked as full when it really is not.
- Needs 1w-init
ok 1w-init bat-set-low
Linux battery subsystem
More information needed here