TIMER-CONTROLLED COMPUTER SYSTEM SHUTDOWN AND STARTUP

Abstract: A system for managing power levels for a general purpose computer having a standby and a full-power mode of operation has means for monitoring times of user input (25) and control routines (TCPM) for using the times of user input (25) to calculate optimum times for initiating full power operation and standby mode. The control routines (TCPM) are configured to provide the optimum times to a real time clock (26) that remains powered in the standby mode, which triggers switching elements to initiate full power and standby mode. In one embodiment of the system, startup and standby may be initiated either by the user input (25) or automatically by the power management system. Startup and standby initiation times may be different for different days and time periods based on both preprogrammed and calculated values.

Description: TIMER-CONTROLLED COMPUTER SYSTEM SHUTDOWN AND STARTUP Field of the Invention The present invention is in the area of power control methods and apparatus for computer systems and pertains more specificaliy to automatically timed startup and shutdown of such systems. Background of the Invention In a society increasingly dependent on computer systems, power conservation has become an important issue. Personal computers are therefore being" designed to minimize power consumption. In a power-saving computer there may be as many as four or more operating modes with greatly varying power consumption. A first mode, which may be called peak mode, provides the power-on surge, which may be, for example, 90 watts. A second mode, which may be called normal mode, supports routine computer operations with full expansion capabilities at, for example, about 50 watts. A third mode, which may be called suspend mode, powers down computer processing activity but retains random access memory (RAM) at a lower power level, which in this example may be about 10-15 watts. A fourth mode, which may be called standby mode, powers down everything except a wakeup circuit, in this example about 1-2 watts. To work at optimum efficiency the ratio of minimum to maximum load for a power supply in a personal computer should not exceed about 1:6. But, as described above, a power-saving computer may consume as little as 1-2 watts in standby mode and 90 watts or more during power-on, a ratio of as much as 1:90 or higher. As a power conservation measure, simple timer switches can be used to automatically turn computers off alter hours and turn them back on at the start ot the next business dav. But the use of such automatic timer-switch controls is not without problems. Workers may not always be readv to save their work before the designated shutdown time and important data may be lost. Also, πgidly lmposed shutdown times mav have an adverse effect on worker creativity. Often having 'just a tew more minutes' is just what is needed to finish a job. In addition, workers who may come in early or are authorized to work on other-than-normal business hours may find they cannot access their computer systems. What is needed is an automatic timer-controlled system that is both flexible and energy-eftlcient. Such a svstem should track individual computer activity throughout the work day and automatically adjust startup and shutdown times to use'rs schedules. Continuous tracking and adjustments would allow companies to provide reasonable and comfortable time boundaries for each employee. Also adjustments could easily be made tor variables such as shift work, holidays, and Daylight Savings Time. Summar-y of the Invention In a preferred embodiment of the present invention, a system for managing power levels for a general-purpose computer is provided having an electrically operable power switching means for switching power between a full-power mode and a standby power mode drawing less than full power. The system includes a real time clock remaining powered in the standby power mode, and control means including logic routines operable in the full-power mode tor providing initiation times for the startup and the standbj power modes to the real time clock. The real time clock provides a first signal to the power switching means to initiate standby mode and a second signal to initiate full-power mode based on specific times provided to the real time clock by the control means. In some embodiments of the invention standby and full-power modes may be initiated either by the real time clock with times provided by the control means, or alternatively by user input, such as by specific keystroke signals at a keyboard or use of a pointer device. In other embodiments, time of user activity is used by the control means through logic routines to calculate optimum initiation times for full-power and standby modes. Brief Description of the Drawings Fig. 1 is a block diagram for a system configuration according to an embodiment of the present invention. Fig. 2 is a logic flow diagram of timer-controlled shutdown according to the embodiment of Fig. 1. Fig. 3 is a logic flow diagram of timer-controlled startup according to the embodiment of Fig. 1. Description of the Preferred Embodiments Fig. 1 is a block diagram of a system con iguration for an embodiment of the present invention. The power supply configuration in this embodiment comprises a highly efficient power supply subsystem using two power supplies for supporting greatly varying power consumption in four operating modes as described in the Background section above. It is known to the inventors to provide such a configuration comprising a dual power supply unit 11 having power supplies A and B. Power supply A in this configuration is termed a Command supply, and power supply B, a Main supply. The configuration of Fig. 1 supports an arbitrary total peak power consumption of about 90 watts in this example with power being divided between the two units, which allows optimal equalized distribution not possible with a single-source power supply. Command supply A provides regulated voltages on line 13 of -5, +12, and -12 volts to system peripherals 19 at a peak of about 45 watts, and is connected in addition by line 13 to the operating element of a solid-state switch 27 which supplies power to system board 21 through normally open contacts from power supply B. Main supply B provides regulated voltage on path 15 of +5 volts and +3.3 volts, also with a peak capacity of 45 watts. Main supply B in this embodiment powers system board 21 through switch 27 as described above, which in turn operates all related bus, memory, and microprocessor power requirements, and also powers keyboard controller (KBC) 23, keyboard 25, and real time clock (RTC) 26. Power supplies A and B are provided with primary power originally through a manual switch not shown in Fig. 1, but after original power up, control is through the present startup and shutdown control system. In this hardware configuration, the power subsystem goes to standby mode by a signal on line 40 from KBC 23, which operates a solid-state switch to turn off primary power to power supply A. In standby mode only command supply A is shut down while main supply B remains active. KBC 23, KBD 25, and RTC 26 remain powered by line 15 from power supply B, and system board 21 loses power because switch 27 opens when line 13 loses power. Although not shown in Fig. 1, in systems using a pointer device, the pointer device is also active in standby as is the KBD. A suspend mode, as described in the Background section, may ¬ be supported through a separate signal on line 18 from KBC 23, bypassing the usual supply to the system board through switch 27. In some embodiments the hardware configuration may include a ring indicator (RI) 10 for a fax system or other modem-type device. RI 10 may be powered from line 15 as shown in Fig. 1, or may be separately powered, and has an output to KBC 23 as do KBD 25 and RTC 26 on line 12. In these embodiments, an incoming call or fax wakes up the system, which may then respond by receiving and processing the incoming data. After the incoming data is processed, the system may be programmed to return to a standby or suspend mode. It will be apparent to those with skill in the art that there are many other hardware configurations useful for providing a standby mode and other less-than-full- power modes. One may, for example, switch individual components on and off between a single power supply and each individual component, or similarly switch groups of components. In standby mode with the hardware configuration of Fig. 1, KBD 25 (and a pointer, if used), RTC 26, KBC 23, and RI 10 (if used) constitute a wake-up circuit. Upon system activity at KBD 25 (or a pointer device) signalled on line 12, or on signal from RTC 26 also on line 12, or on signal from RI 10, also on line 12, KBC 23 may signal power supply A on line 40 to power up, restoring full power to the system. In the embodiment of the invention shown in Fig 1, timed shutdown to standby level and subsequent startup of the system is provided by RTC 26, which, although shown as powered by power supply B, may also be battery powered to maintain function when all power is lost. Shutdown and startup times are provided to RTC 26 by power management control routines represented in Fig. 1 by routines 20 associated with system board 21. The power management control routines in this embodiment, referred to as Timer- Controlled Power Management (TCPM) routines, may reside in system BIOS, as a separate system controller, or as a peripheral on the system expansion bus that is wired to the real time clock. The TCPM routines only run when the power system is fully powered or in a suspend mode; that is, when system board 21 is powered. The TCPM routines are configurable to set startup times for normal business days, for weekends, for holidays, and also may be tailored in various embodiments to provide automatic adjustment of startup and shutdown times according to specific events. As an example of an automatic adjustment, in one embodiment the TCPM routines have an ability to extend the shutdown time incrementally according to user activity. In this embodiment, assuming a particular day and default shutdown time, at shutdown time minus 5 minutes, the system begins to monitor user activity. If no input activity is monitored, the shutdown time in the RTC remains the default time, and the RTC signals the system at that time to go to standby mode. If user input is recorded within the 5 minute window before default shutdown time, the TCPM routines add 5 minutes to the default, send that time to the RTC, and continue to monitor for user input. Shutdown only then occurs if a period of time passes greater than 5 minutes without user input. In this manner, a user is less likely to be surprised when the system automatically goes to standby. It will be apparent to those with skill in the art that the 5 minute example is arbitrary, and other times, and variable times, could also be employed. As another example, the TCPM routines may be programmed to start the system from standby each morning at a programmed default time, such as at 7:00 a.m. for a business day. The system will also start before 7:00 a.m. if user input is detected. In one embodiment the TCPM routines record the startup time each day if activated by a user, and over a period of record a new default time is calculated tailored to the particular usage pattern of the individual user. It will be apparent to one with skill in the art that an embodiment of the invention configured to shut down based on periods of inactivity, and to start based on logged data of user activity, need have no direct input for setup. In most cases, however, means is provided for an administrator to access the TCPM routines and make certain default settings, and in some cases to select specific management routines in preference to others available, or even to tailor new management routines. Fig. 2 is a logic flow diagram of the basic shutdown function described above, where shutdown actually is standby mode. A shutdown time window as described above, being a certain number of minutes before a default shutdown time, is programmed into the real time clock's addressable program registers by the TCPM routines. In full-power mode 29 the real time clock continually monitors the time at function 30. When real time enters the shutdown time window at decision point 31, an onscreen shutdown warning message is optionally issued at function 32 so the user can do an orderly closure of files for the day. Throughout this shutdown time window, user activity is monitored at decision point 33. If no user activity is detected within the shutdown time window and shutdown time is reached at function 37, operations are shut down to standby mode at function 41. If any user activity is detected within the shutdown time window at function 33, shutdown is delayed at function 35 by extending the shutdown time beyond the default shutdown time. Delay shutdown looping" continues until no user activity is detected within the latest delayed time window, at which time the system is shut down to standby mode. Fig. 3 is a logic flow diagram of startup in an embodiment as described above. While the computer is in standby mode at function 43, the KBD (and pointer), KBC and RTC remain powered. The RTC monitors at function 44 whether time is in a programmed startup window at function 45. There may either be a programmed startup window, or all the time in standby may be considered a startup window. If time is in the startup window and user activity is detected at decision point 46, the computer starts in full-power mode at function 55. As soon as the computer is started in full-power mode, the TCPM routines start running. The TCPM routines monitor system activity and record all shutdown and startup times. If there is a consistent trend of earlier or later startups or shutdowns over a number of days, the routines automatically adjust the startup initiation time. If user activity is not detected prior to clock time reaching the startup default time at decision point 48, the computer starts in normal mode at function 55 at the default startup time. In an alternative embodiment of the invention, an onscreen menu interface adds flexibility to the TCPM functions described in Figs. 2 and 3 by allowing the user to specify timing control conditions and parameters while the system is operating in normal mode. The format of such an interface and the functions it performs may vary widely, and the mechanisms by which such onscreen inputs may be made are well known in the art, and need not be fully described here. In a further embodiment, the TCPM routines may provide secured access control for networked computer users through an onscreen menu interface. Varied degrees of control can be maintained by a system administrator, from free access for selected computer users to strictly regimented shutdown and startup schedules and security access procedures across the entire network. It will be apparent to one skilled in the art that there are a relatively large number of changes that may be made in the embodiments described without departing from the spirit and scope of the present invention. There are, for example, a number of equivalent ways that several alternatives may be implemented to expand the functions and improve the efficiency of timer-controlled shutdown and startup of computer systems. There are similarly a variety of vehicles where the TCPM routines may reside and operate, and it is only needed for purposes of embodiments of the invention that the RTC for a controlled svstem or systems be accessible to set the startup and shutdown times.

Claims: What is claimed is: 1. A system for managing power levels for a general- purpose computer, comprising: electrically operable power switching means for switching power between a full-power mode and a standby power mode drawing less than full power; a real time clock remaining powered in the standby power mode; and control means including logic routines operable in the full-power mode for providing initiation times for the startup and the standby power modes to the real time clock; wherein the real time clock provides a first signal to the power switching means to initiate standby mode and a second signal to initiate full-power mode based on specific times provided to the real time clock by the control means. 2. A system for managing power levels for a general- purpose computer as in claim 1 further comprising input means including a microprocessor-based controller remaining powered in standby mode, wherein the microprocessor-based controller signals the power switching means to initiate standby mode and full-power mode in response to signals from one of the real time clock and the input means. 3. A system for managing power levels for a general- purpose computer as in claim 2 wherein the input means comprises a keyboard and the microprocessor-based controller is configured to initiate standby power mode and full-power mode in response to specific keystroke signals input by a user. 4. A system for managing power levels for a general- purpose computer as in claim 2 wherein the logic routines of the control means are configured to monitor user input events and to adjust startup and shutdown times based on the user input events. 5. A system for managing power levels for a general- purpose computer as in claim 1 wherein the electrically operable power switching means comprises switching means for switching primary power on and off selectively to two or more power supplies, providing power to separate groups of components of said general-purpose computer. 6. A general-purpose computer comprising: electrically operable power switching means for switching power between a full-power mode and a standby power mode drawing less than full power; a real time clock remaining powered in the standby power mode; and control means including logic routines operable in the full-power mode for providing initiation times for the startup and the standby power modes to the real time clock; wherein the real time clock provides a first signal to the power switching means to initiate standby mode and a second signal to initiate full-power mode based on specific times provided to the real time clock by the control means. 7. A general-purpose computer as in claim 6 further comprising input means including a microprocessor-based controller remaining powered in standby mode, wherein the microprocessor-based controller signals the power switching means to initiate standby mode and full-power mode in response to signals from one of the real time clock and the input means. 8. A general-purpose computer as in claim 7 wherein the input means comprises a keyboard and the microprocessor- based controller is configured to initiate standby power mode and full-power mode in response to specific keystroke signals input by a user. 9. A general-purpose computer as in claim 7 wherein the logic routines of the control means are configured to monitor user input events and to adjust startup and shutdown times based on the user input events. 10. A general-purpose computer as in claim 6 wherein the electrically operable power switching means comprises switching means for switching primary power on and off selectively to two or more power supplies providing power to separate groups of components of said general-purpose computer. 11. A method for managing power levels including a standby mode and a full-power mode for a general-purpose computer, comprising steps of: monitoring user input through a control means having logic routines for determining" startup initiation and standby initiation times based on times of the user input; providing the startup initiation and standby initiation times to a real time clock remaining powered in standby operating mode; signalling a power switching means for initiating standby mode and full-power mode by output from the real time clock.

Inventors: DORNIER PASCAL, KIKINIS DAN, DORNIER, PASCAL, KIKINIS, DAN
Applicants: OAKLEIGH SYSTEMS INC, OAKLEIGH SYSTEMS, INC.
Application year: 1994
Main classification: G06F1
IPC codes: G06F1