1. Technical Field
Embodiments of the present disclosure relate to power supply system management systems and methods, particularly to a method for obtaining the power states of a computer.
2. Description of Related Art
The advanced configuration and power interface (ACPI) defines six power states S0-S5. Presently, to obtain the a power state of the ACPI, an engineer may connect three general purpose input output (GPIO) signal wires of a north bridge with a baseboard management controller (BMC). In such a manner, obtaining the power states depends the north bridge, however, different north bridges may provides different GPIO signals. In additional, three GPIO signal wires are needed to detect the power states.
The disclosure is illustrated by way of examples and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The computer 1 includes an operating system 13. The operating system 13 includes system management software (SMS) 130. The SMS 130 obtains the power states from the BMC 12. The SMS 130 provides an interface (not shown) for users to obtain the power states.
The ACPI 100 defines six different power states ranging from S0 (the computer 1 is completely powered ON and fully operational) to S5 (the computer 1 is completely powered OFF) and the power states (S1, S2, S3 and S4) are referred to as sleeping states, in which the computer 1 appears OFF because of low power consumption and retains enough of a hardware context to return to a working state without a system reboot.
The BMC 12 detects the power states S0 and S5 of the ACPI 100 according to a power signal from the power supply system 10. The SMS 130 sends an obtaining command to the BMC 12. In one embodiment, the obtaining command is a command/signal that may be used to obtain the power state of the ACPI 100 from the BMC 12. The BMC 12 sends the power states S0 or S5 to the SMS 130 in reply to receiving the obtaining command. The BIOS 11 detects the power state S1, S2, S3, or S4 of the ACPI 100 and sends the detected power state to the BMC 12. The users can obtain the power state from the interface provided by the SMS 130. Therefore, the BMC 12 and the operating system 13 can synchronously obtain the power states S0 or S5 of the ACPI 100. The BIOS 11 and the BMC 12 can synchronously obtain the power states S1, S2, S3, or S4 of the ACPI 100.
In block S20, the BMC 12 starts up after the power supply system 10 is powered on.
In block S21, the BMC 12 obtains a power signal from the power supply system 10. In one embodiment, the power signal may be a power good signal.
In block S22, the BMC 12 detects if the power signal is high level or low level. In one embodiment, the high level may be 5 volts and the low level may be 0 volts. If the power signal is high level, block S23 is implemented, the BMC determines that the ACPI 100 is in the power state S0. If the power signal is low level, block S24 is implemented, the BMC determines that the ACPI 100 is in the power state S5. After block S23 or block S24 has been implemented, the procedure goes to block s25.
In block S25, the SMS 130 sends the obtaining command to the BMC 12. In one embodiment, the obtaining command may be a “get ACPI power state command.”
In block S26, the BMC 12 sends the power state of the ACPI 100 to the SMS 130. The users obtains the system power state of the ACPI 100 through the interface provided by the SMS 130.
In block S30, the operating system 13 is started up after the power supply system being powered on.
In block S31, if the BIOS 11 detects the system power state of the ACPI has changed, the operating system 13 executes a system management interrupt (SMI) handling procedure.
In block S32, the BIOS 11 sends an informing command to the BMC 12. The informing command includes a current power state of the ACPI 100. In one embodiment, the informing command may be a “set ACPI power state” command.
The current power state may be power state S1, S2, S3, or S4.
In block S33, the SMS 130 sends the obtaining command to the BMC 12.
In block S34, the BMC 12 sends the current power state of the ACPI 100 to the SMS 130. The users obtains the current power state of the ACPI 100 through the interface provided by the SMS 130.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010551174.9 | Nov 2010 | CN | national |