Download Apcupsd is a UPS control system that permits orderly shutdown of

Transcript
Smart UPSes internally compute the remaining runtime, and apcupsd uses
the value supplied by the UPS. As the batteries age (after say two or three
years), the runtime computation may no longer be accurate since the batteries no longer hold the same charge. As a consequence, in the event of a
power failure, the UPS and thus apcupsd can report a runtime of 5 minutes remaining when in fact only one minute remains. This can lead to a
shutdown before you might expect it, because regardless of the runtime remaining that is reported, the UPS will always correctly detect low batteries
and report it, thus causing apcupsd to correctly shutdown your computer.
If you wish to have the UPS recalibrate the remaining runtime calculations,
you can do so manually as the current version of apcupsd does not support
this feature. To do so,
• Shutdown apcupsd
• contact your UPS directly using some terminal program such as minicom, tip, or cu with the settings 2400 8N1 (2400 baud, 8 bits, no
parity, 1 stop bit). Be extremely careful what you send to your UPS
as certain characters may cause it to power down or may even cause
damage to the UPS. Try sending an upper case Y to the UPS (without a return at the end). It should respond with SM. If this is not the
case, read the chapter on testing. If you fat finger the Y and enter
y instead, no cause for alarm, you will simply get the APC copyright
notice.
• when you are sure you are properly connected send an upper case D
(no cr). This will put the UPS into calibration mode, and it will drain
the battery down to 25% capacity (35% for a Matrix) at which point it
will go back on the mains. In doing so, it will recompute the runtime
calibration.
• If you wish to abort the calibration, enter a second D command.
• When you are done, restart apcupsd.
In principle, you should be able to do this with the computer powered by the
UPS, but if you wish to be completely safe, you should plug your computer
into the wall prior to performing the runtime calibration. In that case, you
will need to artificially load the UPS with light bulbs or other means. You
should supply a load of about 30 to 35% but not more than 50%. You
can determine the load by looking at the output of the apcaccess status
command while apcupsd is running.
You should not run the recalibration command more than once or twice per
year as discharging these kinds of batteries tends to shorten their life span.
146