Get ACPI Power State
更新时间: 2026/08/06
在Gitcode上查看源码Get ACPI Power State
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Querying the ACPI Power Supply Status
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 06h |
| CMD | 07h |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 0x0: The command is executed successfully. Other return codes: The command execution is abnormal. |
| 2 | ACPI System Power State [7] - reserved [6:0] - System Power State enumeration 00h S0/G0 working 01h S1 hardware context maintained, typically equates to processor/chip set clocks stopped 02h S2 typicall equates to stopped clocks with processor/cache context lost 03h S3 typically equates to "suspend-to-RAM" 04h S4 typically equates to "suspend-to-disk" 05h S5/G2 soft off 06h S4/S5 soft off, cannot differentiate between S4 and S5 07h G3 mechanical off 08h sleeping sleeping – cannot differentiate between S1-S3 09h G1 sleeping sleeping – cannot differentiate between S1-S4 0Ah override S5 entered by override 20h Legacy On Legacy On (indicates On for system that don't support ACPI or have ACPI capabilities disabled) 21h Legacy Off Legacy Soft-Off 2Ah unknown power state has not been initialized, or device lost track of power state |
| 3 | ACPI Device Power State [7] reserved [6:0] Device Power State enumeration 00h D0 01h D1 02h D2 03h D3 2Ah unknown – power state has not been initialized, or device lost track of power state |
Command Example
Query the ACPI power supply status.
Request:
bash
ipmitool raw 0x06 0x07Response:
text
0x00 0x00