Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Advanced Power Management
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|API for power management in IBM-compatible computers}} {{Infobox technology standard | title = Advanced Power Management | long_name = | image = | image_size = | alt = | caption = | abbreviation = APM | native_name = <!-- Name in local language. If more than one, separate using {{plain list}} --> | native_name_lang = <!-- ISO 639-1 code e.g. "fr" for French. If more than one, use {{lang}} inside native_name items instead --> | status = Deprecated | year_started = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | first_published = 1992 | version = 1.2 | version_date = 1996 | preview = | preview_date = | organization = [[Intel]], [[Microsoft]] | committee = | series = | editors = | authors = | base_standards = | related_standards = | successor = [[ACPI]] | domain = [[Power management]] | license = | copyright = | website = {{Web archive|url=https://web.archive.org/web/19961220165301/http://www.intel.com/IAL/powermgm/apmovr.htm|title=intel.com/IAL/powermgm}} }} '''Advanced power management''' ('''APM''') is a [[technical standard]] for [[power management]] developed by [[Intel]] and [[Microsoft]] and released in 1992<ref name="APM_spec_V12" /> which enables an [[operating system]] running an IBM-compatible [[personal computer]] to work with the [[BIOS]] (part of the computer's [[firmware]]) to achieve [[power management]].<ref>Intel Corporation, "NewsBit: Microsoft, Intel Develop Power Standard", Microcomputer Solutions, March/April 1992, page 1</ref> Revision 1.2 was the last version of the APM specification, released in 1996. [[Advanced Configuration and Power Interface|ACPI]] is the successor to APM. Microsoft dropped support for APM in [[Windows Vista]]. The [[Linux|Linux kernel]] still mostly supports APM, though support for APM CPU idle was dropped in version 3.0. ==Overview== [[File:APM-Layers.svg|thumb|The layers in APM]] APM uses a layered approach to manage devices. APM-aware applications (which include device drivers) talk to an OS-specific APM driver. This driver communicates to the APM-aware BIOS, which controls the hardware. There is the ability to opt out of APM control on a device-by-device basis, which can be used if a driver wants to communicate directly with a hardware device. Communication occurs both ways; power management events are sent from the BIOS to the APM driver, and the APM driver sends information and requests to the BIOS via function calls. In this way the APM driver is an intermediary between the BIOS and the operating system. Power management happens in two ways; through the above-mentioned function calls from the APM driver to the BIOS requesting power state changes, and automatically based on device activity. In APM 1.0 and APM 1.1, power management is almost fully controlled by the BIOS. In APM 1.2, the operating system can control PM time (e.g. suspend timeout). In 1997, [[Phoenix Technologies]] released "APM 2.0" which is a kernel [[device driver]] compatible with an APM 1.2 BIOS.<ref>{{Cite news |title=APM 2.0: BIOS independent power management under Windows NT 4.0 or 3.51 |url=http://www.award.com:80/resources/apm-portables-ds.zip |url-status=dead |archive-url=https://web.archive.org/web/20051109023014/http://www.award.com:80/resources/apm-portables-ds.zip |archive-date=2005-11-09 |work=[[Phoenix Technologies]]}}</ref> == Power management events == There are 12 power events (such as standby, suspend and resume requests, and low battery notifications), plus [[Original equipment manufacturer|OEM]]-defined events, that can be sent from the APM BIOS to the operating system. The APM driver regularly [[Polling (computer science)|polls]] for event change notifications. Power Management Events:<ref name="APM_spec_V12">{{cite web|title=Advanced Power Management (APM) BIOS Interface Specification Revision 1.2 February 1996 Intel/Microsoft|url=http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/APMV12.rtf|access-date=27 December 2006|archive-url=https://web.archive.org/web/20120206030045/http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/APMV12.rtf|archive-date=6 February 2012|url-status=dead}} 090429</ref> {| class="wikitable" |- ! Name !! Code !! Comment |- | System Standby Request Notification || 0x0001 || |- | System Suspend Request Notification || 0x0002 || |- | Normal Resume System Notification || 0x0003 || |- | Critical Resume System Notification || 0x0004 || |- | Battery Low Notification || 0x0005 || |- | Power Status Change Notification || 0x0006 || |- | Update Time Notification || 0x0007 || |- | Critical System Suspend Notification || 0x0008 || |- | User System Standby Request Notification || 0x0009 || |- | User System Suspend Request Notification || 0x000A || |- | System Standby Resume Notification || 0x000B || |- | Capabilities Change Notification || 0x000C || Due to setup or device insertion/removal |} ==APM functions== There are 21 APM function calls defined that the APM driver can use to query power management statuses, or request power state transitions.<ref name="APM_spec_V12" /> Example function calls include letting the BIOS know about current CPU usage (the BIOS may respond to such a call by placing the CPU in a low-power state, or returning it to its full-power state), retrieving the current power state of a device, or requesting a power state change. {| class="wikitable" |- ! Name !! Code !! Comment |- | APM Installation Check || 0x00 || |- | APM Real Mode Interface Connect || 0x01 || |- | APM Protected Mode 16-bit Interface Connect || 0x02 || Avoids real or virtual86 mode. |- | APM Protected Mode 32-bit Interface Connect || 0x03 || Avoids real or virtual86 mode. |- | APM Interface Disconnect || 0x04 || |- | CPU Idle || 0x05 || Requests system suspend.<!--P42--> <BR>0) Clock halted until timer tick interrupt.<BR> 1) Slow clock<!--P29--><ref name="APM_spec_V12" /> |- | CPU Busy || 0x06 || Driver tells system APM to restore clock speed of the CPU. |- | '''Set Power State''' || 0x07 || Set system or device into Suspend/Standby/Off state.<!--P44--> |- | Enable/Disable Power Management || 0x08 || |- | Restore APM BIOS Power-On Defaults || 0x09 || |- | Get Power Status || 0x0A || Supports AC status "On backup power". And battery status. |- | Get PM Event || 0x0B || Checks for APM events. Shall be called once per second. |- | Get Power State || 0x0C || |- | Enable/Disable Device Power Management || 0x0D || |- | APM Driver Version || 0x0E || |- | Engage/Disengage Power Management || 0x0F || APM management for a specific device. |- | Get Capabilities || 0x10 || |- | Get/Set/Disable Resume Timer || 0x11 || |- | Enable/Disable Resume on Ring Indicator || 0x12 || |- | Enable/Disable Timer Based Requests || 0x13 || |- | OEM APM Installation Check || 0x80 || Tells if APM BIOS supports OEM hardware dependent functions. |- | OEM APM Function || 0x80 || Access to OEM specific functions. |} ==Power states== The APM specification defines system power states and device power states. ===System power states=== APM defines five power states for the computer system: * Full On: The computer is powered on, and no devices are in a power saving mode. * APM Enabled: The computer is powered on, and APM is controlling device power management as needed. * APM Standby: Most devices are in their low-power state, the CPU is slowed or stopped, and the system state is saved. The computer can be returned to its former state quickly (in response to activity such as the user pressing a key on the keyboard). * APM Suspend: Most devices are powered off, but the system state is saved. The computer can be returned to its former state, but takes a relatively long time. (Hibernation is a special form of the APM Suspend state). * Off: The computer is turned off. ===Device power states=== APM also defines power states that APM-aware hardware can implement. There is no requirement that an APM-aware device implement all states. The four states are: * Device On: The device is in full power mode. * Device Power Managed: The device is still powered on, but some functions may not be available, or may have reduced performance. * Device Low Power: The device is not working. Power is maintained so that the device may be 'woken up'. * Device Off: The device is powered off. == Hardware components == === CPU === The CPU core (defined in APM as the CPU clock, [[CPU cache|cache]], [[Front-side bus|system bus]] and system timers) is treated specially in APM, as it is the last device to be powered down, and the first device to be powered back up. The CPU core is always controlled through the APM BIOS (there is no option to control it through a driver). Drivers can use APM function calls to notify the BIOS about CPU usage, but it is up to the BIOS to act on this information; a driver cannot directly tell the CPU to go into a power saving state. === ATA drives === The [[Parallel ATA|ATA]] specification and [[SATA]] specification defines APM provisions for hard drives, which specifies a trade-off between spin-down frequency and always-on performance. Unlike the BIOS-side APM, the ATA APM and SATA APM has never been deprecated.<ref>{{cite web |title=linux - What do different values of hard drive's Advanced Power Management feature (hdparm -B) affect, except spin-down? |url=https://superuser.com/a/558622 |website=Super User |quote=The ATA Spec turns up this tidbit: Subcommand code 05h allows the host to enable Advanced Power Management. To enable Advanced Power Management, the host writes the Sector Count register with the desired advanced power management level and then executes a SET FEATURES command with subcommand code 05h.}}</ref> Aggressive spin-down frequencies may reduce drive lifespan by unnecessarily accumulating load cycles; most modern drives are specified to sustain 300,000 cycles and usually last at least 600,000. On the other hand, not spinning down the drive will cause extra power draw and heat generation; high temperatures also reduce the lifespan of hard drives.<ref>{{cite web |last1=bwDraco |title=linux - How much "Load_cycle_count" can my hard drive hypotethically sustain? |url=https://superuser.com/a/847431/ |website=Super User}}</ref> == See also == * [[Active State Power Management]] - hardware power management protocol for [[PCI Express]] * [[Green computing]] * [[BatteryMAX]] == References == {{reflist}} == External links == * {{Web archive|url=https://web.archive.org/web/19961220165301/http://www.intel.com/IAL/powermgm/apmovr.htm|title=Official website}} {{Firmware and booting}} {{Computer processor power management technologies}} {{CPU technologies}} {{DEFAULTSORT:Advanced Power Management}} [[Category:BIOS]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:CPU technologies
(
edit
)
Template:Cite news
(
edit
)
Template:Cite web
(
edit
)
Template:Computer processor power management technologies
(
edit
)
Template:Firmware and booting
(
edit
)
Template:Infobox technology standard
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Web archive
(
edit
)