BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a computer system, and more particularly, to a computer system for managing power consumption and method.
2. Description of the Prior Art
In a nowadays computer system, a system or a workload condition of a central processor unit is displayed through an application software in an operating system. The workload condition is usually evaluated according to an amount of threads that is presently executed by the central processor unit and a usage degree of a memory. Therefore, system loading information is calculated by means of pure application software, but not measurement of a real hardware work condition. Therefore, the computer system of the prior art cannot completely reflect the system loading.
SUMMARY OF THE INVENTION
Therefore, the present invention provides a computer system for managing power consumption by sensing a system current with a hardware device of the computer system.
The present invention discloses a computer system for managing power consumption. The computer system further includes a power supply, a current detecting module, a power control module, and a feedback control module. The power supply device is used for outputting a system voltage according to a feedback signal. The current detecting module is used for sensing a system current of the computer system to generate system current information. The power control module is coupled to the power supply device and the current detecting module, and includes a calculating unit and a user interface.
The calculating unit is used for calculating a power consumption of the computer system according to the system current information or the system voltage. The user interface includes a plurality of power adjusting functions. The user interface is used for displaying the system current information and the power consumption of the computer system, and generating a voltage control signal according to a power adjusting function. The feedback control module, coupled to the power control module and the power supply device, is used for generating the feedback signal, and adjusts the feedback signal according to the voltage control signal.
The present invention further discloses a method of managing power consumption for a computer system. The computer system includes a power supply device for adjusting a system voltage according to a feedback signal. The method includes providing a plurality of power adjusting functions, sensing a system current of the computer system to generate system current information, calculating a power consumption of the computer system according to the system current information or the system voltage, generating a voltage control signal according to a power adjusting function, adjusting the feedback signal according to the voltage control signal, and displaying the system current information and the power consumption of the computer system.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a functional block diagram of a computer system according to an embodiment of the present invention.
FIG. 2 is a flow diagram of a process according to an embodiment of the present invention.
DETAILED DESCRIPTION
Please refer to FIG. 1, which is a functional block diagram of a computer system 5 for managing power consumption according to an embodiment of the present invention. The computer system 5 is operated in a Microsoft, a Mac or a Linux operating system, and includes a power supply device 12 for outputting a system voltage (VOUT) according to a feedback signal (SFB). In addition, the computer system 5 includes an electronic device 10, which displays a power consumption state of the computer system 5 and provides a plurality of functions for adjusting power consumption of the computer system 5. The electronic device 10 includes a current detecting module 100, a power control module 110, and a feedback control module 120. The current detecting module 100 is used for sensing a system current (Isys) flowing through the current detecting module 100 to generate system current information (Isys—info). The power control module 110 is coupled to a power supply device 12 and the current detecting module 100, and includes a graphic processing unit (GPU) 102, a calculating unit 104 and a user interface 106. The graphic processing unit 102 is used for receiving the system voltage (VOUT) and the system current information (Isys—info), and thereby outputting a voltage control signal (SVC) generated by the user interface 106 to the feedback control module 120. The calculating unit 104 is coupled to the graphic processing unit 102, and used for calculating a power consumption of the computer system 5 according to the system current information (Isys—info) or the system voltage (VOUT). The user interface 106 is coupled to the calculating unit 104 and the graphic processing unit 102, and used for displaying the system current information (Isys—info) and the power consumption of the computer. In addition, the user interface 106 includes a plurality of power adjusting functions, and generates a voltage control signal (SVC) according to a power adjusting function. The feedback control module 120 is used for generating the feedback signal (SFB) for the power supply device 12, and adjusts the feedback signal (SFB) according to signal of the voltage control signal (SVC). Therefore, the power supply device 12 adjusts the system voltage (VOUT) when the feedback signal (SFB) is adjusted, so as to control the power consumption of the computer system 5.
The user interface 106 displays the system current information (Isys—info) and instantaneous power consumption or average power consumption. Preferably, the system current information (Isys—info) and the instantaneous power consumption can be recorded continuously and displayed by a waveform diagram. The power adjusting functions of the user interface 106 include a voltage up function and a voltage down function. When the voltage up function is selected, the feedback control module 120 adjusts the feedback signal (SFB) according to the voltage control signal (SVC), so as to trigger the power supply device 12 to increase the system voltage (VOUT) according to the adjusted feedback signal (SFB) for increasing the power consumption. On the contrary, when the voltage down function is selected, the power supply device 12 decreases the system voltage (VOUT) according to the adjusted feedback signal (SFB), so as to lowering the power consumption. In addition, the power supply device 12 can include a plurality of power supplies, or a power supply whose power phase can be adjusted. In this condition, the power adjusting functions of the user interface 106 can be added with a special power saving function allowing the power supply device 12 to select the number of the power supplies or the number of power output phases according to the adjusted feedback signal (SFB), in order to change the power consumption of the computer system 5.
Therefore, through the user interface 106, a user can know the system current information (Isys—info) and a change condition of the power consumption and thereby select a proper power adjusting function. Or the computer system 5 determines the power adjusting function to use according to the system current information (Isys—info) or the power consumption.
Preferably, the current detecting module 100 senses the system current (Isys) according to variance of an input voltage that is not shown in FIG. 1. The input voltage is obtained by adjusting the feedback signal (SFB) through a voltage regulator and thereby adjusts the system voltage (VOUT) and affects the system current (Isys). In other words, the voltage regulator uses the feedback signal (SFB) as an input reference signal to change the input voltage of the current detecting module 100 and thereby generates the corresponding system current (Isys).
In electronic device 10, the current detecting module 100 is a hardware circuit which can sense a current intensity and variance more precisely than pure software applications, so the power consumption calculated by the calculating unit 104 is reliable.
FIG. 2 is a flow diagram of a process 20 according to FIG. 1. The process 20 is realized by the computer system 5 which is operated in a Microsoft, a Mac or a Linux operating system, for managing the power consumption of the compute system 5. The process 20 includes following steps:
Step 200: Start.
Step 202: Provide a plurality of the power adjusting functions through the user interface 106.
Step 204: Sense a system current (Isys) of the computer system 5 to generate system current information (Isys—info).
Step 206: Calculate a power consumption of the computer system 5 according to the system current information (Isys—info) or the system voltage (VOUT).
Step 208: Generate a voltage control signal (SVC) according to a power adjusting function.
Step 210: Adjust the feedback signal (SFB) according to the voltage control signal (SVC).
Step 212: Display the system current information (Isys—info) and the power consumption of the computer system.
Step 214: End.
According to process 20, the embodiment of the present invention generates the system current information (Isys—info) via constantly sensing the system current (Isys) and further calculates the power consumption according to the system current information (Isys—info) or the system voltage (VOUT). The system current information (Isys—info) and the power consumption of the computer system is displayed via the user interface 106, and preferably displayed via a waveform diagram. In addition, the voltage control signal (SVC) generated via the power adjusting function provided through the user interface 106is used for adjusting the feedback signal (SFB), so as to control the power consumption. Preferably, the power adjusting function is determined according to the system current information (Isys—info). From above, the system current information (Isys—info) affects the voltage control signal (SVC), and a change of the voltage control signal (SVC) causes changes of the system voltage (VOUT), the feedback signal (SFB), and the system current information (Isys—info). Since the process 20 is realized by computer system 5, the detailed operating process can be referred to the description in the FIG. 1.
In conclusion, the embodiments of the present invention utilize hardware device to sense the system current to precisely obtain the power consumption condition and thereby adjust the power consumption appropriately.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.