Pretesting ACPI/OnNow Support
[This is preliminary documentation and subject to change.]
The following sections describe the pretesting for ACPI/OnNow support.
Productivity Applications
Productivity applications can verify compliance with ACPI/OnNow recommendations using the following tests:
-
Open a file on a local hard disk, edit it (don't save), put the computer to sleep, wake the computer, and verify that the application continues to run, the file can be saved, and so forth.
-
Open a file on a hard disk in a docking station, edit it (don't save), put the computer to sleep, undock the computer, wake the computer, and verify that the application correctly informs the user of the problem and leads them through steps to correct the problem.
-
Open a file on the network, edit it (don't save), put the computer to sleep, wait a few minutes for the network connection to time out, wake the computer, and verify that the application continues to run, the file can be saved, and so forth.
Games
Games can verify compliance with ACPI/OnNow recommendations using the following test:
-
While in game play, put the computer to sleep using the Sleep button or Start menu.
-
Verify that the computer goes to sleep and sound stops playing.
-
Wake the computer.
-
Verify that the game play remains paused. After resuming game play, verify that the game continues to function normally (graphics, sound, and input devices continue to function as before).
Event-Handling Applications
Event-handling applications can verify compliance with ACPI/OnNow recommendations using the following test:
-
In the Power control panel, set the system idle time as low as possible.
-
Start the application and its event handling feature.
-
Put the computer to sleep using the computer's Sleep button or using the Start Menu.
-
Start an event that will take longer to process than the system idle time.
-
Verify that the computer does not go to sleep while the event is being processed, and after the event has been processed, the computer goes to sleep immediately.
Presentation Applications
Presentation applications can verify compliance with ACPI/OnNow recommendations with the following test:
-
In the Power control panel, set the system idle time as low as possible.
-
Start the application and play a presentation.
-
Wait for a time longer than the system idle time and verify that the computer does not go to sleep and that the display does not blank during that time.
Tips
-
Applications that need the computer to wake up quickly to respond to an event can call RequestWakeupLatency to notify the operating system to configure the computer to wake as quickly as the computer allows.
-
Applications that need to wake the computer at a certain time can do so using CreateWaitableTimer and associated functions.
-
Messaging applications can display the number of new messages on the computer's message waiting indicator panel by calling SetMessageWaitingIndicator.