ACPI, the Advanced Configuration and Power Interface, is an open specification that defines how firmware describes a computer’s hardware to the operating system and how the operating system then controls power, sleep and device configuration. In operating systems, it sits at the boundary of boot & firmware: the firmware publishes ACPI tables during startup, and the kernel reads them to learn what the machine contains and how to manage it.
ACPI replaced the older Advanced Power Management (APM) and Plug and Play BIOS interfaces, which left power decisions inside the firmware. The central idea of ACPI is OS-directed power management, often abbreviated OSPM: the operating system, not the firmware, decides when a device sleeps, how fast a processor runs and when the machine shuts down.
How ACPI tables and AML describe the hardware
ACPI works by placing a set of in-memory description tables where the operating system can find them, starting from a pointer called the Root System Description Pointer (RSDP). On UEFI systems the firmware passes the RSDP through the EFI configuration table; on legacy BIOS systems the kernel scans a defined memory region for its signature.
Some tables are static data structures with fixed layouts, such as the list of processors and interrupt controllers. Others contain ACPI Machine Language (AML), a compact bytecode compiled from ACPI Source Language (ASL). The kernel runs AML in an interpreter inside the operating system, which allows firmware to describe board-specific behavior without the kernel knowing each motherboard in advance.
The following table lists the tables that matter most in practice.
| Table | Full name | What it provides |
|---|---|---|
| RSDP | Root System Description Pointer | Entry point that locates the XSDT or RSDT |
| XSDT | Extended System Description Table | 64-bit list of pointers to all other tables |
| FADT | Fixed ACPI Description Table | Power management registers and sleep control |
| DSDT | Differentiated System Description Table | Main AML namespace of devices and methods |
| SSDT | Secondary System Description Table | Additional AML, often per processor or device |
| MADT | Multiple APIC Description Table | Processors and interrupt controllers |
| MCFG | PCI Express memory-mapped configuration | Base address of PCIe configuration space |
Together, the DSDT and SSDTs build the ACPI namespace, a tree of device objects such as \_SB.PCI0 with methods like _STA (device status), _CRS (current resources) and _PS3 (power off). The kernel evaluates these methods when it enumerates devices or changes their power state.
ACPI power states and sleep levels
ACPI defines a hierarchy of power states for the whole system, for individual devices and for processors. The operating system moves the machine between them, and firmware AML performs the hardware-specific steps for each transition.
The system-wide states are the ones users notice most directly.
| State | Common name | Context kept | Typical resume time |
|---|---|---|---|
| S0 | Working | Everything running | Not applicable |
| S0ix | Modern Standby or low-power idle | Memory and network context | Under one second |
| S3 | Suspend to RAM | Memory powered, CPU off | About 1-3 seconds |
| S4 | Hibernate | Memory image saved to disk | Several seconds to a minute |
| S5 | Soft off | Nothing except wake logic | Full boot |
| G3 | Mechanical off | Nothing | Full boot after power returns |
Below the system level, device states D0 to D3 describe individual components, where D0 is fully on and D3cold removes power completely. Processor C-states (C0 active, C1 and deeper idle states) save energy while the CPU waits, and performance states P0 to Pn trade clock speed and voltage for lower power. Deeper states save more energy but add wake-up latency, which is the central trade-off of every ACPI power policy.
Where ACPI fits in the boot process
ACPI becomes active after firmware initialization and before device drivers load. During POST, the UEFI or BIOS firmware builds the tables from board data; the bootloader then hands control to the kernel, which locates the RSDP and parses the tables early in startup.
ACPI is often confused with neighboring firmware concepts, so the comparison below separates their responsibilities.
| Component | Main job | Relation to ACPI |
|---|---|---|
| UEFI | Initializes hardware and loads the bootloader | Publishes ACPI tables to the operating system |
| BIOS | Legacy firmware with the same basic role | Also publishes ACPI tables on older PCs |
| Device Tree | Static hardware description, common on ARM | Alternative to ACPI with no runtime bytecode |
| SMBIOS | Inventory data such as model and serial number | Informational only, no power control |
| APM | Firmware-driven power management | Predecessor that ACPI replaced |
On x86 PCs, ACPI is effectively mandatory for modern operating systems. On ARM servers, the Server Base Boot Requirements specify ACPI so that one kernel image can run on hardware from several vendors, while many ARM laptops, phones and embedded boards still rely on Device Tree.
Runtime functions beyond power management
Despite its name, ACPI covers far more than sleep and shutdown. The System Control Interrupt (SCI) notifies the kernel of hardware events, and the kernel answers by running AML methods that report what happened.
- Thermal management: thermal zones define trip points for passive cooling, fan activation and critical shutdown.
- Battery and AC adapter reporting through control method battery objects.
- Buttons and lid switches: power button, sleep button and laptop lid events.
- Hot-plug of PCIe devices, docks and, on servers, processors and memory.
- Embedded controller access, the small microcontroller that handles keyboards, fans and batteries on laptops.
- Platform error reporting through tables such as HEST and BERT on servers.
Common ACPI problems and how they are diagnosed
Most ACPI failures come from firmware tables that are buggy or written for one operating system. Vendors often test AML only against Windows, so methods may check the _OSI string and behave differently under Linux or other kernels.
| Symptom | Likely cause | Usual remedy |
|---|---|---|
| Laptop does not resume from sleep | Faulty S3 or S0ix AML, driver blocking a low-power state | Firmware update, driver update, sleep diagnostics |
| Battery drains in Modern Standby | Device prevents entry into S0ix | Identify the blocking device with a sleep study |
| Fans run at full speed | Broken thermal zone or embedded controller method | Firmware update or kernel quirk |
| Boot messages show AML errors | Namespace conflicts between DSDT and SSDTs | Often harmless; report to the vendor |
| Devices missing after boot | Incorrect _STA or _CRS results | Kernel parameter or firmware fix |
Diagnostics differ by platform. On Windows, powercfg /sleepstudy and powercfg /a show which sleep states are available and what blocked them. On Linux, the tools acpidump and iasl extract and disassemble the tables, and kernel parameters such as acpi_osi= can work around specific defects. A common warning applies: disabling ACPI entirely with acpi=off usually breaks multiprocessor support, interrupts and power control, so it is a diagnostic step, not a fix.
ACPI also carries security relevance. Because AML runs with kernel privileges and firmware can inject tables such as the Windows Platform Binary Table, a compromised firmware can influence the operating system. Measured boot and Secure Boot reduce this risk by verifying firmware components before the tables are trusted.
The idea in brief
ACPI is the shared language between the firmware and the operating system. When a computer starts, the firmware hands over a detailed description of the machine: which parts it has, how to switch them on and off, and how to put the whole computer to sleep.
The operating system reads that description and then makes the decisions itself. It is like a building manager receiving a full set of floor plans and switch labels from the builder. With them, the manager can turn off lights in empty rooms, adjust heating and lock up at night without calling the builder each time.
A practical scenario
An IT technician supports a fleet of 200 company laptops. After a Windows feature update, several users report that their laptops are warm and nearly drained after a night in a bag, even though the lids were closed.
The technician runs powercfg /a and confirms that the laptops use S0 low-power idle (Modern Standby) rather than classic S3 sleep. A sleep study report shows that a network adapter driver keeps the system out of its deepest idle state for most of the night, so the processor never reaches its low-power C-states.
The vendor publishes a firmware update with corrected ACPI tables and a new adapter driver. After both are deployed through the management system, overnight battery loss falls from roughly 40 percent to under 5 percent, and the laptops resume within a second when the lid opens.