Intermec 6100 Reference Guide

Page of 328
SECTION 4
Power Management
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    4-7
Table 4Ć10 is a list of the defined power management events that the APM BIOS
can report:
Table 4Ć10 
Power Management Event Codes
Code
(Hex)
Description
0002
System Suspend Request Notification
0003
Normal Resume System Notification
0004
Critical Resume System Notification
0005
Battery Low Notification
0006
Power Status Change Notification
0008
Critical System Suspend Notification
000A
User System Suspend Request Notification
System Suspend Request Notification - notifies the APM Driver that the APM
BIOS wants to put the system into the Suspend State when the System Suspend
activity timer times out.  If APM BIOS power management is disabled, it is the
APM Driver's responsibility to determine whether the system should be placed in
the Suspend State.  The APM Driver must notify APMĆaware applications of the
System Suspend request.  This notification allows the device drivers the opportuĆ
nity to prepare for the suspend state change or to reject the request.
To process a suspend request, the APM Driver calls the Set Power State function
with BX = 0001h (all devices) and CX = 0002h when all processing is complete.
The APM BIOS (ELANAPM.EXE) does not enter the suspend state on its own
unless APM BIOS power management is enabled via the Enable/Disable Power
Management call.
Normal Resume System Notification - indicates that a System Resume from a
press of the SUSPEND/RESUME key after a normal System Suspend has ocĆ
curred.  The APM driver must update the time from the realĆtime clock when it
receives this notification and notify APMĆaware applications of the event.  The
applications are then responsible for preparing devices for use.
Critical Resume System Notification - indicates that a Critical Resume System
operation occurred.  The APM driver updates the time from the realĆtime clock
when it receives this notification and notifies APMĆaware applications of the
event.  These applications then prepare their devices for use.
Battery Low Notification - informs the APM driver that the system's battery is
running low.  The APM driver broadcasts this message to APMĆaware applicaĆ
tions.  The status of the battery must be retrieved by the Get Power Status call.
Power Status Change Notification - informs the APM driver that the system's
power status has changed.  The APM driver must issue the Get Power Status
call to determine the change to the charge status. ELANAPM.EXE signals a
Power Status Change Notification event when the system's charger input
changes status, when the battery flag changes, or the charge remaining changes.
Critical System Suspend Notification - notifies the APM driver that the APM
BIOS has detected a situation in which the system must be suspended and all
devices placed in an off state, as defined by the device.  The APM must broadcast
this message to all APMĆaware applications.  The driver must not refuse the susĆ
pend operation, even if APMĆaware applications refuse the notification, and must
verify that all devices are in the off state prior to issuing the suspend operation.
4. Power Management