none
How to programmatically implement a powercfg -requestsoverride command for a driver? RRS feed

  • Question

  • We have an wdm audio driver in our product that we need to configure so that it doesn't keep the system from going into sleep mode even though there is an audio stream active on the driver.

    We can do that manually with the following powercfg command:

    powercfg -requestsoverride DRIVER "Name of the Driver" SYSTEM

    So after manually executing this command, as desired the system will go to sleep even if an audio stream is active on the driver.

    How do we implement this setting permanently either during installation of the driver or on startup of the machine?

    Is there a registry value for the driver that controls this or is there and API that can be used to change these settings?


    Fred

    Friday, September 14, 2012 2:31 AM

All replies

  • Hello
    I know this is old, But I have the same question! Found nothing by searching. And this question remains unanswered!
    Where does powercfg store it's configuration and requestsoverride settings?
    Monday, January 2, 2017 12:25 PM