代码仓
中
Get ACPI Power State
更新时间: 2026/08/06
在AtomGit上查看源码

Get ACPI Power State ​

Change History ​

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information ​

Function Description ​

Querying the ACPI Power Supply Status

Privilege ​

ReadOnly

Command Information ​

Request Information ​

ByteData Field
NetFn06h
CMD07h

Response Information ​

ByteData Field
1Completion Code
0x0: The command is executed successfully.
Other return codes: The command execution is abnormal.
2ACPI 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
3ACPI 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 0x07

Response:

text
0x00 0x00

Back to Index ​