Apple PowerBook 520 Technical Information Page 115

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 114
CHAPTER 6
Power Manager Interface
About the Power Manager Interface 101
SetSleepTimeout 6
You can use the SetSleepTimeout routine to set how long the computer will wait
before going to sleep.
void SetSleepTimeout(unsigned char timeout);
DESCRIPTION
The SetSleepTimeout routine sets the amount of time the computer will wait after the
last user activity before going to sleep. The value of SetSleepTimeout is expressed as
the number of 15-second intervals making up the desired time. If a value of 0 is passed
in, the routine sets the timeout value to the default value (currently equivalent to 8
minutes).
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for SetSleepTimeout is
3 ($03) in the low word of register D0. The sleep timeout value to set is passed in the
high word of register D0.
GetHardDiskTimeout 6
You can use the GetHardDiskTimeout routine to find out how long the computer will
wait before turning off power to the internal hard disk.
unsigned char GetHardDiskTimeout();
DESCRIPTION
The GetHardDiskTimeout routine returns the amount of time the computer will wait
after the last use of a SCSI device before turning off power to the internal hard disk. The
value of GetHardDiskTimeout is expressed as the number of 15-second intervals the
computer will wait before turning off power to the internal hard disk.
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for
GetHardDiskTimeout is 4 ($04) in the low word of register D0. The hard
disk timeout value is returned in the low word of register D0.
Page view 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 143 144

Comments to this Manuals

No comments