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


DisableIdle

You can use the DisableIdle procedure to disable the idle state.

PROCEDURE DisableIdle;
DESCRIPTION
The DisableIdle procedure disables the idle state, even if the user has used the Portable or PowerBook control panel to enable the idle state. Every call to the DisableIdle procedure must be balanced by a call to the EnableIdle procedure before the idle state is reenabled.

ASSEMBLY-LANGUAGE INFORMATION
The MPW development system provides an assembly-language macro to execute the DisableIdle 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 DisableIdle, the routine selector can be any value that is greater than 0.

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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996