Share via


How to Add Power Management to a Device Driver

You can add support for power management to a device driver to reduce power consumption on a target device. To do this, your driver must expose the stream interface. Once you have implemented the stream interface, you can then add support for power management to your driver.

Hardware and Software Assumptions

  • You are familiar with building Platform Builder projects from the command line. For more information, see Build Tool.
  • You have included your driver in your platform.

To track your progress in the following table, select the check box next to each step.

  Step Topic
1. Create a stream interface device driver. How to Create a Device Driver
2. Add support for the power management I/O control codes (IOCTLs) to your stream interface driver. Stream Interface Configuration for Power Management
3. Notify the Power Manager that your driver has power management.

For more information about the power management functions, see Application Power Management and Other Power Management APIs.

Device Power Management Enabling
4. Implement device power states in your driver. Power Management Implementation in Drivers
5. Build your driver.

If you can build your driver with no errors you have successfully added power management to your stream interface driver.

For more information, see Troubleshooting: Building a Driver.

Building a Device Driver from the Command Line
6. Debug your driver.

If you can build and debug your driver, you have successfully configured your driver to support power management.

How to Debug a Device Driver

See Also

Power Management | Device Power | Stream Interface Driver Implementation | Device Power Capabilities | IOCTL_POWER_SET Request Processing | Device Power Management Guidelines | How to Create a Device Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.