locked
WDF driver development RRS feed

  • Question

  • Hi all,

         Actually i am a beginner for windows driver development.So Is there any possible to access the power management sleep states(S3,S4,S5) in WDF driver method.If it is possible what are all functions are need ? and which call back function will affect for these sleep states?. Any sample code is there or not ?

    Best regards,

    Arun

    Thursday, December 8, 2016 4:25 AM

Answers

  • You register an EvtDeviceD0Exit routine and the passed in WDF_POWER_DEVICE_STATE  value will tell you what power state to go to. WDF is abstracted such that you don't care what the target S state is, you just run your power down code based on the target device power down state. you can influence how wdf maps from a system state to a device state by enabling runtime idle, enabling wake from sleep or calling WdfDeviceSetPowerCapabilities

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, December 8, 2016 7:04 AM

All replies

  • You register an EvtDeviceD0Exit routine and the passed in WDF_POWER_DEVICE_STATE  value will tell you what power state to go to. WDF is abstracted such that you don't care what the target S state is, you just run your power down code based on the target device power down state. you can influence how wdf maps from a system state to a device state by enabling runtime idle, enabling wake from sleep or calling WdfDeviceSetPowerCapabilities

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, December 8, 2016 7:04 AM
  • Hi Thanks for the information,

          Is there any sample code is available?. if it is available kindly share the link.

    Thursday, December 8, 2016 8:26 AM
  • Nearly every Wdf sample uses this call back, take a look at the toaster sample as a starting point

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, December 8, 2016 5:08 PM