调试待机时的电源问题

Play 调试待机时的电源问题
Sign in to queue

The Discussion

  • User profile image
    Kenneth Huang

    hi there,
    we have some power management questions while developing windows device.
    1. how can we understand or how to trace code to know who is driver's PPO?
    does MSDN has any API could get information about driver's PPO?

    sometimes, maybe developer will receive a new driver from other co-workers(3rd party/vendor/OEM/ODM).

    2. the API "WdfDeviceAssignS0IdleSettings" could set up idle settings for a device driver.
    the idel setting structure "WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS" has member "IdleCanWakeFromS0".

    in some driver, to call the idle setting API with IdleCanWakeFromS0.
    it will return "STATUS_POWER_STATE_INVALID" status.

    it means "indicates the device can wake itself, but the bus driver indicates the device cannot wake itself."
    how to specific a driver could using IdleCanWakeFromS0 param for wake up ability?

    thanks!!

Add Your 2 Cents