Many personal computers are powered directly from the local utility company, and as such are subject to instantaneous dips in voltage, or complete loss of voltage for an indeterminate length of time. Notwithstanding existing hardware and software that may detect an imminent loss of power and gracefully shut down the computer, loss of data occurred due to power fluctuations/outages results in loss of time and money. In many cases, the response time of computer components such as hard drives precludes the ability to save unsaved data when power is lost. In other scenarios, data may be destroyed or hardware may be physically damaged.
Approaches to preventing loss of data when input power to a computer is lost include power management systems including external battery backup systems that provide power to one or more computers and/or computer components when the normal source of power fails. There are, in the industry today battery backup systems that include battery chargers and inverters that convert an input alternating current (AC) line voltage to a direct current (DC) voltage to charge a battery. The DC voltage of the battery is used to generate a stable AC voltage which supplies a connected computer or other AC driven device.
Furthermore, some portable computers, e.g., laptop and notebook computers, are powered via a DC voltage from a power adapter, wherein circuitry integral to the portable computer both charges an internal battery as well as supplies the computer's components, which may include a processor board, a display device, memory and storage devices through one or more DC to DC voltage regulators. When the DC voltage supplying the computer fails, such as due to a loss of local AC power, the computer detects the condition and switches the inputs of the voltage regulators to the internal battery, supplying power to all computer components to thereby allow a user to continue operation until power is restored, or until the battery is exhausted.
Desktop computers are used throughout the world in power environment that are less than ideal, risking the loss of critical data. Depending upon the power requirements of the particular desktop computer and connected display device, providing an uninterruptible power system (UPS) to a computer and display device may be prohibitively expensive for a single computer user. Even for small businesses, adding a separate, external UPS is an additional expense.
One or more embodiments are illustrated by way of example, and not by limitation, in the figures of the accompanying drawings wherein elements having the same reference numeral designations represent like elements throughout and wherein:
The apparatus and methods described herein relate to a computer power management system comprising a computer with an integral uninterruptible power system (UPS) that allows a predetermined subset of computer components to operate for a time sufficient to save data in the event of an interruption to primary input power.
In at least some embodiments, power down logic 162, may be embodied directly in hardware, in a set of executable instructions stored in one or more memory modules 158, or in a combination thereof. Furthermore, in at least some embodiments, power down logic 162 is integral to CPU 156. In other embodiments, CPU 156 and power down logic 162 may reside in an application-specific integrated circuit (ASIC).
DC to DC converter module 118 delivers an array of DC output voltages matched to the DC input requirements of a computer system. In at least one configuration, user input devices, e.g., keyboard 122 and mouse 124, interface with motherboard 116 via data signals 144, 146, respectively. At least one disk drive 120 communicates with motherboard 116 over signal lines 148 deriving power from motherboard 116 via cable 150. An output device, e.g., display 126, receives AC input power from an AC source over cable 154, and receives display data via cable 152 from motherboard 116.
AC power is supplied to housing 102 by means of an AC input cable 130 electrically conducting local AC power to AC to DC power supply 104. In at least one embodiment power supply 104 converts a 120 VAC input signal to a low voltage DC signal 132, e.g., 12-18 volts DC. According to some alternate embodiments, AC to DC power supply 104 is a standalone module external to housing 102 and supplies power to housing 102 via a cable. In other embodiments, power supply 104 is mounted internal to housing 102.
Low DC voltage signal 132 is electrically connected to UPS module 106, which comprises power sensing unit 108, a battery charger 112, battery and power regulator 114, a switching unit 110, and control logic 160. Control logic 160 monitors the status of UPS module 106, including, but not limited to sensing unit 108, battery and regulator module 114 and switching unit 110. Control logic 160 interfaces with motherboard 116 via a bi-directional control interface 142, e.g., a universal serial bus (USB) or RS232 connection, and provides status of UPS module 106 to motherboard 116. In some embodiments UPS module 106 provides status upon request. In other embodiments, UPS module 106 generates an interrupt signal in response to a change of state of UPS module 106, e.g., a power interruption of DC input 132 or failure of a logic module.
Power sensing unit 108 monitors DC input voltage 132 and based upon characteristics of DC input voltage 132, e.g., voltage level and ripple, outputs data signal 134 to control logic 160. Based upon status information from power sensing unit 108 and from battery and power regulator module 114, control logic 160 determines whether to supply motherboard 116 with power over cable 140 from AC to DC power supply 104 or from battery and power regulator 114.
Battery and power regulator module 114 comprises a rechargeable battery, e.g., a Lithium Ion battery, and a power regulator that in some embodiments controls both the charging and output power characteristics of module 114. Furthermore, in some embodiments, battery and power regulator module 114 comprises an interface 166 to control logic 160 that in addition to providing status that may be communicated to motherboard 116, allows control logic 160 to determine the operational state of battery and power regulator 114 prior to switching to the battery and power regulator should primary input power 132 experience an interruption of power. In at least one disclosed embodiment, switch 110 includes a solid state switch to eliminate moving parts and to increase response time and reliability.
In addition to supplying low voltage DC to switch 110 and power sensing unit 108, low DC voltage signal 132 provides power to battery charger 112. Charger 112 is configured to provide a predetermined voltage and current to battery and power regulator module 114 in order to prevent overcharging the battery.
Unlike other UPS systems that allow a user to continue to operate computer 100 and output to an output device, e.g., display device 126, in the absence of AC input power for as long as possible, UPS 106 is sized to provide power to a predetermined subset of elements of computer system 100 for a predetermined amount of time necessary to save open files to disk 120 and then initiate a controlled shutdown of computer 106. In at least some embodiments, this subset comprises only motherboard 116 and disk drive 120. Furthermore, in some embodiments, power to drive 120 and other components, for example, user input devices e.g., keyboard 122 and mouse 124, is controlled through motherboard 116, whereby power down logic 162 is configured to enable or disable power to the connected devices. In other embodiments, a subset that receive power when computer 100 is placed in battery mode may include any connected device internal or external to housing 102 that derives power from motherboard 116.
In some embodiments, and depending upon the characteristics of the specific subset of components, the battery and power regulator module 114 is sized to provide up to approximately 10 minutes of power. In other embodiments wherein battery size and cost is of paramount importance, battery and power regulator 114 is sized to provide less than five minutes of power. Accordingly, the physical size and cost of UPS module 106 may be designed based upon available physical space, battery cost, and user backup requirements.
When motherboard 116 receives an indication from UPS 106 over interface 142 that DC voltage 132 has failed or has dropped below some predetermined threshold, power down logic 162, implemented in at least one of hardware or software, is configured to save zero or more files, e.g., open files, on disk drive 120 and initiate an orderly shutdown of computer 100. Alternatively, power down logic 162 is configured to place computer 100 in a hibernation state requiring a minimum amount of power. The file saving operation may be accomplished under control of the operation system (OS), the computer's BIOS, a separate hardware device, or a software program part of, or separate from, power down logic 162. In this manner, in one embodiment, computer 100 can reactivate itself when power is restored.
Furthermore, in at least some embodiments, the user is precluded from continuing to make use of the computer during file saving and other sequences of power down logic 162. Accordingly, in some embodiments, user input interface devices, e.g., keyboard 122 and mouse 124, are disabled, and/or have power removed therefrom to preclude their use by a user and to minimize power drain.
Returning to determination functionality 202, based upon a determination that DC input voltage 132 is below one or more predetermined threshold, switch 110 is configured to switch the output 138 of battery and regulator module 114 to motherboard 116 over cable 140. In some embodiments, switch 110 is controlled by control logic 160. In other embodiments, power sensing unit 108 controls switch 110 directly. Furthermore, in some embodiments, a subset of computer components configured to receive battery power include: motherboard 116 and drive 120.
Disabling functionality 206 is operable to disable at least one of user inputs e.g., keyboard 122 and mouse 124, and/or outputs, e.g., display 126, to preclude the user from interfering with file saving functionality 208 performed by power down logic 162.
In one embodiment, power down functionality 210 is operable to place computer 100 in either a shutdown state, whereby the user may power up computer 100 once primary power has been restored. In other embodiments, power down functionality 210 is operable to place computer 100 in a state of hibernation that may be reactivated automatically when primary power is restored, or may require user initiation to power up the computer.
In some power environments, power interruptions of one or two seconds are common and to initiate a file saving process in these situations would be counterproductive. Accordingly,
If, after the timer is initiated at functionality 506, but before it is allowed to time out, a subsequent UPS status message is received indicating that power has been restored, functionality 508 resets the timer so as not to implement functionalities 512 and 514.
After power down logic 162 has saved all open files, or based upon a preset voltage threshold level detected by the battery and power regulator module 114, power down functionality 210 is operable to cause power down logic 162 to power down computer housing 102 or place motherboard 116 in a hibernating state.
File save functionality 306 operates to determine zero or more files to save. In some embodiments, determination is based upon applications actively running on the computer as determined by the operation system of the computer. In at least some embodiments, power down logic 162 operable in conjunction with the computer operating system and/or BIOS determines open files and save them to drive 120. In other embodiments, open files unassociated with a storage medium, new data residing only in random access memory, is stored to drive 120 based upon a predetermined naming schema.
In some embodiments, after file saving functionality 306, power down functionality 308 is operable, based upon power down logic 162, to place CPU 156 in hibernation mode. In other embodiments, power down logic 162 is operable to power down one or more of motherboard 152, UPS 106, and AC to DC power supply 104.