Previous Book Contents Book Index Next

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


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

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.

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 "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