Inside Macintosh: Devices / Chapter 6 - Power Manager / Power Manager ReferencePower Manager Dispatch Routines
Application-Defined Routines The Power Manager allows you to define a sleep procedure that is called at various stages of the sleep and wakeup processes. You install a sleep procedure by calling the SleepQInstall procedure.
SleepQInstall