Download The UPS Howto
Transcript
The UPS Howto You have to build the following interface between these connectors: PC UPS #−−−−−−−−−−−−−−−−−− | 470 Ohm | #−−−−−#−−−−−#−−−−−#−−−−−#−−−−−#−−−−− ca. 9−12V | | | | | | 47 3.3 3.3 3.3 1 470 kOhm kOhm kOhm kOhm kOhm Ohm | | | | | | (8) −−−−−−−−−−−−−−−−−−−−−−−−# | | | | | | | (6) −−−−−−−−−−−−#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− | | | | (1) −−−−−−−−−−−−−−−−−−#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− | | | | C#−−−−−−−−−−−−−−−−−−−−−−−−− | −| | | B/ | (4) −−−−−−#−−−−−12kOhm−−−−−−−−−| | \>E | | | (5)−−−−−−−−−−−−−−−−−−−−−−−−−−−−−#−−−−−−−#−−−−−−−−−−−−−−−−−−− (8) (5) (3) (1) (4) −I use a "BC140" − transistor, but nearly any simple NPN−transistor should work ;−) −The transistor works as an "inverter". If you shutdown your PC, AND the power ist down, then pin 4(PC) goes low and 1(UPS) goes high. This shuts down the UPS for saving batteries power. 2) The powerd−Source: ======================= I patched the powerd−source very little (so it is really the source of Miquel). (a) Give an "alert" to the syslogd if 8(PC, CTS) is down (Cause the cable is not connected) (b) DCD droped to zero => power has failed => call powerfail(0) => Give INIT_CMD_POWERFAIL to the init−process (c) DCD comes up again => power is back => call powerfail(1) => Give INIT_CMD_POWEROK to the init−process APC Smart−UPS 700 58