Fix Clock/Background: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Created page with 'In understanding the fix clock problem, it is helpful to understand the power dynamic between the system, the coin cell battery, and the RTC chip. The XO must maintain power…')
 
(simplify language, change coin cell to clock battery, change rtc to clock)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
In understanding the [[fix clock]] problem, it is helpful to understand the power dynamic between the system, the coin cell battery, and the RTC chip.
In understanding the [[fix clock]] problem, it is helpful to understand the power dynamic between the system, the clock battery, and the clock.


The XO must maintain power to the RTC chip at all times, even when the system is powered off. When power is lost, the time and date will be forgotten, resulting in the problems described on this page. This is especially important to consider for XOs in storage, or XOs that will not be used for an extended period of time.
The XO must maintain power to the clock at all times, even when the system is powered off. When power is lost, the time and date will be forgotten, resulting in the problems described on this page. This is especially important to consider for XOs in storage, or XOs that will not be used for an extended period of time.


The coin cell battery acts only as a <em>backup</em>: when available, the main power source (AC power or the main system battery) is used to keep the clock ticking. When there is no other power available, the coin cell battery takes over.
The clock battery acts only as a <em>backup</em>: when available, the main power source (AC power or the main system battery) is used to keep the clock ticking. When there is no other power available, the clock battery takes over.


The coin-cell battery is somewhat rechargeable. On the XO-1, it will recharge from the main power source while the laptop is powered on and fully awake (not suspended). The XO-1.5 and XO-1.75 will charge the coin cell battery when the laptop is powered on and fully awake, and also when it is suspended. When recharging an empty battery, it is expected that the battery will reach normal voltage levels after around 30 minutes of charging, but will require potentially 24 hours for a complete recharge. However, the battery is only marginally rechargeable - it may stop working completely after 30 deep discharges.
The clock battery is somewhat rechargeable. On the XO-1, it will recharge from the main power source while the laptop is powered on and fully awake (not suspended). The XO-1.5 and XO-1.75 will charge the clock battery when the laptop is powered on and fully awake, and also when it is suspended. When recharging an empty battery, it is expected that the battery will reach normal voltage levels after around 30 minutes of charging, but will require potentially 24 hours for a complete recharge. However, the battery is only marginally rechargeable - it may stop working completely after 30 deep discharges.


A voltmeter can be used to perform some basic checks on the health of the battery. After 30 minutes of charging from empty, a reading of around 2.7v would be reasonable. After 24 hours of charging, when the battery should be fully charged, a reading of around 3.1v would be expected. However, these checks are inconclusive, 'bad' batteries may produce such readings. A real test would need to measure battery capacity, which is non-trivial.
A voltmeter can be used to perform some basic checks on the health of the battery. After 30 minutes of charging from empty, a reading of around 2.7v would be reasonable. After 24 hours of charging, when the battery should be fully charged, a reading of around 3.1v would be expected. However, these checks are inconclusive, 'bad' batteries may produce such readings. A real test would need to measure battery capacity, which is non-trivial.


When no other power is available, the coin cell battery is only able to power the RTC chip for a limited time before running out of power. Assuming the RTC battery is fully charged, the following table indicates the expected lifetime of the coil cell battery before it is unable to keep the RTC chip powered.
When no other power is available, the clock battery is only able to power the clock for a limited time before running out of power. Assuming the clock battery is fully charged, the following table indicates the expected lifetime of the coil cell battery before it is unable to keep the clock powered.


{| border="1" class="wikitable"
{| border="1" class="wikitable"
! Laptop model !! Coin-cell battery life
! Laptop model !! Clock battery life
|-
|-
| XO-1 || 4 months
| XO-1 || 4 months
Line 21: Line 21:
|}
|}


When placing XOs in storage or some other situation where they will not be used for a significant period of time, it may be worth considering inserting the main laptop battery and ensuring it has a high amount of charge, so that the RTC chip remains powered for an extended amount of time before the coin-cell backup takes over. According to tests done in Uruguay, the following table provides an indication of how long the main battery can keep the RTC chip powered before running out of charge, in the case where the battery initially had 80% charge:
When placing XOs in storage or some other situation where they will not be used for a significant period of time, it may be worth considering inserting the main laptop battery and ensuring it has a high amount of charge, so that the clock remains powered for an extended amount of time before the backup takes over. According to tests done in Uruguay, the following table provides an indication of how long the main battery can keep the clock powered before running out of charge, in the case where the battery initially had 80% charge:


{| border="1" class="wikitable"
{| border="1" class="wikitable"
Line 34: Line 34:


Note that the above numbers should be used as indications only; the real numbers will vary based on environmental conditions such as the temperature of the storage area, the exact model of the laptop and the RAM included, firmware version, etc.
Note that the above numbers should be used as indications only; the real numbers will vary based on environmental conditions such as the temperature of the storage area, the exact model of the laptop and the RAM included, firmware version, etc.

== Unpowered Storage - XO-1 ==

If the deployment security policy can permit the clock to be unpowered during storage, then disassemble, remove, and then replace the clock battery. Reassemble and store the laptop. This loses the date and time, but does not start the clock until the laptop is next turned on. The storage time is increased.

== Unpowered Storage - XO-4 ==

If the deployment security policy can permit the clock to be unpowered during storage, then get to the [[Ok]] prompt and type this:
ok select /rtc 80 0 rtc! power-off
The laptop will turn off. Store the laptop. According to the IDT1338 datasheet<!-- VBAT Current (OSC ON) (SQR/OUT ON) 1025nA vs VBAT Data-Retention Current (OSC OFF) 10nA -->, the storage time should increase by 100 times. The clock will be cleared and restarted when the laptop is next turned on. The clock should be set as part of redeployment.

Latest revision as of 01:47, 12 December 2013

In understanding the fix clock problem, it is helpful to understand the power dynamic between the system, the clock battery, and the clock.

The XO must maintain power to the clock at all times, even when the system is powered off. When power is lost, the time and date will be forgotten, resulting in the problems described on this page. This is especially important to consider for XOs in storage, or XOs that will not be used for an extended period of time.

The clock battery acts only as a backup: when available, the main power source (AC power or the main system battery) is used to keep the clock ticking. When there is no other power available, the clock battery takes over.

The clock battery is somewhat rechargeable. On the XO-1, it will recharge from the main power source while the laptop is powered on and fully awake (not suspended). The XO-1.5 and XO-1.75 will charge the clock battery when the laptop is powered on and fully awake, and also when it is suspended. When recharging an empty battery, it is expected that the battery will reach normal voltage levels after around 30 minutes of charging, but will require potentially 24 hours for a complete recharge. However, the battery is only marginally rechargeable - it may stop working completely after 30 deep discharges.

A voltmeter can be used to perform some basic checks on the health of the battery. After 30 minutes of charging from empty, a reading of around 2.7v would be reasonable. After 24 hours of charging, when the battery should be fully charged, a reading of around 3.1v would be expected. However, these checks are inconclusive, 'bad' batteries may produce such readings. A real test would need to measure battery capacity, which is non-trivial.

When no other power is available, the clock battery is only able to power the clock for a limited time before running out of power. Assuming the clock battery is fully charged, the following table indicates the expected lifetime of the coil cell battery before it is unable to keep the clock powered.

Laptop model Clock battery life
XO-1 4 months
XO-1.5 2.5 months
XO-1.75 12 months (expected, needs testing)

When placing XOs in storage or some other situation where they will not be used for a significant period of time, it may be worth considering inserting the main laptop battery and ensuring it has a high amount of charge, so that the clock remains powered for an extended amount of time before the backup takes over. According to tests done in Uruguay, the following table provides an indication of how long the main battery can keep the clock powered before running out of charge, in the case where the battery initially had 80% charge:

Laptop model Main battery longevity
XO-1 73 days
XO-1.5 174 days
XO-1.75 164 days

Note that the above numbers should be used as indications only; the real numbers will vary based on environmental conditions such as the temperature of the storage area, the exact model of the laptop and the RAM included, firmware version, etc.

Unpowered Storage - XO-1

If the deployment security policy can permit the clock to be unpowered during storage, then disassemble, remove, and then replace the clock battery. Reassemble and store the laptop. This loses the date and time, but does not start the clock until the laptop is next turned on. The storage time is increased.

Unpowered Storage - XO-4

If the deployment security policy can permit the clock to be unpowered during storage, then get to the Ok prompt and type this:

ok select /rtc 80 0 rtc! power-off

The laptop will turn off. Store the laptop. According to the IDT1338 datasheet, the storage time should increase by 100 times. The clock will be cleared and restarted when the laptop is next turned on. The clock should be set as part of redeployment.