Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 6 - Power Manager / Power Manager Reference
Power Manager Routines / Controlling the Idle State


EnableIdle

You can use the EnableIdle procedure to enable the idle state.

PROCEDURE EnableIdle;
DESCRIPTION
The EnableIdle procedure cancels the effect of a call to the DisableIdle procedure. A call to the EnableIdle procedure enables the idle state only if the user has not used the Portable or PowerBook control panel to disable the idle state and if every call to the DisableIdle procedure has been balanced by a call to the EnableIdle procedure.

ASSEMBLY-LANGUAGE INFORMATION
The MPW development system provides an assembly-language macro to execute the EnableIdle routine. That macro calls the _IdleState trap. To call the _IdleState trap directly, you must first put a longword routine selector in the D0 register. For EnableIdle, the routine selector is 0.

SEE ALSO
See "Enabling or Disabling the Idle State," beginning on page 6-15, for more discussion of EnableIdle.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996