Power Management Implementation in Drivers

When configuring your driver to support power management, determine the power state value for each entry point for your driver. If you determine these power state values accurately, your driver will function in an appropriate manner depending on the current power state in which your target device exists.

Be sure that your driver does not power up your target device in the call to XXX_PowerUp. Your driver must instead restore the power state to the value set by the Power Manager, which is most likely the D3 or D4 state. Also, be sure that your driver does not power down your target device in the call to XXX_PowerDown.

Note   If your target device cannot be powered up during a suspend state and no request from the Power Manager has been sent, your driver has not been configured correctly and you should reconfigure power management in your driver.

See Also

How to Add Power Management to a Device Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.