Background of the Invention
(1) Field of Invention
The present invention relates to a hibernation system for a computer, in which the previous operating condition is initiated by input from a peripheral device such as a keyboard. Particularly, in a hibernation system which cuts off power automatically when one does not use the computer for a period of predetermined duration, the present invention relates to a power control device which can retrieve the operating environment to the previous state by supplying the power again if a key-signal input by a user or a signal from a modem or other peripheral device is input.
(2) Description of Prior Art
With the progression of computer functionality, and in consideration of energy conservation, power-saving functions of computers have been improved so as to include hibernation systems.
A desirable hibernation system includes a function that in case electrical power is cut off through either sudden power failure or a mistake made by a user, the computer stores the present operation condition in an auxiliary storage unit such as a hard disk and once power is on again, restores the computer's memory to the pre-power-off state. Another desirable function is that in case a user does not use the computer for a predetermined time when the computer is in a power-on state, the hibernation system cuts off the power automatically while storing the present operating condition in the auxiliary storage unit. Electrical power is economized, until work is resumed by retrieving to the computer's memory the operating condition stored in the auxiliary storage unit to that of the pre-power-off state when the user turns on the power again.
Among conventional personal computers, hibernation systems equipped with automatic retrieving functions for emergency or power saving use are increasingly popular.
Korean Patent Application No. 93-3116, filed on Mar. 4, 1993 relates to a power supply control system for peripheral equipment of a computer, and Korean Patent Application No. 92-14590, filed on Aug. 13, 1992 relates to a power cut off generating circuit for peripheral equipment of a computer.
However, these prior hibernation systems reduce a power-supply to below certain voltages when the computer receives no input from a user for a predetermined time. Therefore, the user must turn-on power the switch twice to supply electrical power again and retrieve their work to its previous condition. This creates an inconvenience in operating the computer.
Summary of the Invention
A principal object of the invention is to provide an improved hibernation system to solve the problems of the prior art. In accordance with the invention, to facilitate retrieving the previous work, this hibernation system cuts off power to the devices when the power fails or is turned off or when a user does not use the computer for a predetermined time. Then it resumes supplying power if a signal is input again from a peripheral device by a user.
To fulfill the above the apparatus of the present invention in its preferred form comprises:
a keyboard controller, which inputs an appropriate signal to the operating condition based on the key selected by a user;
a power management system, which outputs a wake-up signal if the signal is inputted from the keyboard or one of the other input devices;
a data back-up power unit, which supplies DC voltage in case the power is cut-off suddenly or a user does not use the computer for a predetermined time;
a power supplying unit in which a switching-mode power supply SMPS converts the external source AC power at line voltage into DC power at a desired voltage and supplies that power to each device on the main board of the computer. If a power cut-off signal is input, the power supplying unit cuts off the power-supply to the main board simultaneously with supplying to a keyboard controller and the power management system, and outputs the corresponding power cut-off signal.
In order to fulfill the above object, a method of this invention in its preferred form comprises the steps of:
determining if the hibernation interrupt is generated during computer operation;
outputting a signal initiating a hibernation state of a computer system if the interrupt signal is generated when an event does not occur for a predetermined time, and outputting a signal to cut-off power supplied to the main board to a power supplying unit;
determining if the hibernation is ended with the level condition of the read power supplying signal after reading more than one time the power supplying condition signal which is output by the power supplying unit according to the hibernation operation;
resuming the power supply condition by outputting the wake-up signal in case the signal is inputted after determining the signal-input responsive to the data receiving by the key input and modem after the hibernation operation is ended; and
ending the operation in case the power supply signal displays the resumption of the power supply on the main board after reading the power condition signal outputted from the power supplying unit.
Brief Description of the Drawings
FIG. 1 is a block diagram of a computer having a peripheral device input-initiated resume feature for its combined hibernation system and back-up power supply, according to a preferred embodiment of the invention;
FIG. 2 is a block diagram illustrating the power supply condition of the computer system according to the preferred embodiment of the invention; and
FIG. 3 is an operating flowchart for the system according to the preferred embodiment of the invention.
Detailed Description of Tee Preferred Embodiments
With the drawings annexed hereto, hereinafter is described the preferred embodiment of the present invention.
As illustrated in FIGS. 1 and 2, a retrievable hibernation system by key-inputting in accordance with the preferred embodiment of the present invention comprises a system unit 10, a power supplying unit 20 which supplies an inputted AC power or battery power to the system unit 10 on the main board, a keyboard controller 30 for outputting appropriate signals due to operating of a keyboard key or keys selected by a user, a modem 50 which is installed in an extended slot in the main board of the computer, and a power management system 40 connected to the output terminal of the keyboard controller, the modem and the power supplying unit.
The power supplying unit 20 further comprises a data backup power unit 21 supplying DC power of the battery in case AC power is cut off and a switching mode power supply 22 supplying the inputted AC power and DC power.
The system unit 10 comprises a central processing unit CPU, a random access memory RAM, a read only memory ROM, a basic input/output system BIOS, a DMA controller, and an auxiliary controller such as an interrupt controller.
The switching mode power supply SMPS 22 supplies the applied external power with converting into a DC power and the DC power outputted from the data backup power unit 21 to every system on the main board.
As illustrated in FIG. 2, the computer system according to the preferred embodiment of the invention comprising the power supplying unit 20, the mother board, and the keyboard controller 30, wherein the power supply 22 converting an AC power into a DC power and a data backup power supply 21 supplying a backup power in case the AC power is not supplied.
The mother board comprises a system unit 10, a power management system 40, a keyboard port 73, a keyboard power terminal 72 and a system power terminal 71. The keyboard controller 30 is constructed to receive power from the keyboard port 73 of the mother board. The power supplying unit 20 supplies power to the keyboard terminal 72 and the system power terminal 71 in case of power saving state, so that the power is supplied only to the power management system 40 and the keyboard port 73.
As illustrated in FIG. 2, the system unit 10, the power management system 40 and the modem 50 are installed in the mother board, the power outputted from the power supplying unit 20 is supplied via the system power terminal 71 to the system unit 10, and a power cut off signal inputted in order to perform a hibernation cuts off the power to the system power terminal 71 and applies the power only through the keyboard power terminal 72 via the keyboard port 73 to the keyboard 30 and the mouse 60.
The functions of the system in accordance with the preferred embodiment of the present invention will be described hereinafter with reference to FIG. 3.
If a user connects the power terminal of the computer to an external power source, i.e.: AC line current, the external power is applied to the power supplying unit 20. The data backup power unit 21 starts charging to supply power needed to backup the data during power-off state. The switching mode power supply 22 converts the AC voltage into DC voltages and supplies the system unit 10 or every system on the main board. As described above, in case of a sudden power-off condition, or in case of no data being input by a user driving working of the computer, the PMS (Power Management System) 40 generates an interrupt or hibernation signal to the system unit 10 (S120-S130). Once the PMS 40 outputs a hibernation signal, the BIOS (Basic Input Output System) in the system unit 10 checks for hibernation setup flag in the non-volatile memory and if a hibernation support mode is not set up, the BIOS ignores the hibernation interrupt signal, and the computer continues working. However, if the hibernation support mode has been set up, in order to perform a suspend process, the BIOS stores the condition of the present PC hardware and all memory data onto the auxiliary storage unit, e.g. a hard disk drive unit in the system unit 10.
The PMS 40 outputs a power cut-off signal to the power supplying unit 20 to cut off the power supplied to the main board and the external power if the hibernation is ended.
The switching mode power supply 23 in the power supplying unit 20 supplies the DC voltages KM-Vcc from the data backup power unit 21 in case of power-off to the keyboard controller 30 and the PMS 40 according to the power cut-off signal POW-OFF, and supplies DC power to the keyboard controller 30 and the PMS 40 after converting the external AC voltages into DC voltages in case of normal state.
The power supplying unit 20 outputs the power supplying condition signal POW-OK displaying the condition of the power supplying to the main board to the PMS 40 when the hibernation is proceeded. The PMS 40 reads the level of the POW-OK and determines if the hibernation is ended (S140-S150).
When the POW-OK is at a low level, the PMS 40 determines firstly that the hibernation is ended, delays the operation for a predetermined period of time and detects the level of the POW-OK again (S160-S170).
When the level of the POW-OK remains low, the PMS senses the hibernation mode and determines if the keyboard signal or other signal is inputted (S180-S200).
The reasons for sensing the level of the POW-OK signal two times more as described above is to enhance the reliability of sensing the signal correctly.
The keyboard controller 30 is operated according to the DC voltage KM-Vcc supplied from the power supplying unit 20 in the hibernation state and outputs the corresponding signal to the PMS 40 if the key-initiated signal by user is inputted. If the signal according to the key-selecting operation is not inputted from the keyboard controller 30, the PMS determines if the signal in accordance with receiving the data is inputted from the modem 50 installed on the motherboard or an additional input device such as the mouse or a device in the extended slot (S200).
In the above step, the PMS 40 determines that a user intends to use the computer again, in case a keyboard signal or a modem signal is input, and performs a resume process and outputs the power supplying signal WAKE-UP to resume the operation by supplying the power to the system unit 10 installed on the main board (S210).
Once the power supplying signal WAKE-UP at a high level, is output from the PMS 40, the power supplying unit 20 cuts off the power output from the data backup power unit 21, supplies the external power to the system unit 10 on the main board and outputs the power supplying condition signal POW-OK at a high level to the PMS 40 to display being resumed from the hibernation state.
The PMS 40, when the power supplying condition signal POW-OK is output at a high level from the power supplying unit 20, performs a hibernation resume mode by outputting the signal to the system unit 10 and loads the memory contents into RAM (Random Access Memory) and retrieves the work environment of the computer to the previous state, i.e. the one which existed immediately prior to hibernation.
In the preferred embodiment of the invention described above, a retrievable hibernation system by key inputting can be provided to retrieve the previous work again by cutting off power of all devices, once the power is off or when a user does not use the computer for a predetermined time, and supplying the additional power only to the MICOM(Micro Computer) or keyboard controller in the state that a hibernation mode is performed. Then the system repeats supplying power if a signal is input again by a user, and consequently helps a user to use the computer more easily with this hibernation state by retrieving the work to the previous state.