none
Questions on Power Config Utility RRS feed

  • Question

  • Hi:

    I could not find the interpretation of the output of powercfg.exe /q. Appreciated if someone has info on this:

    I'd like to know:

    Any doc on this ?

    What does Possible setting Index mean? Possible values ?

    Meaning of the values 0x0000000 or 0x00000001 ?

    Thanks in advance

    ----------------- output of powercfg /q ------------

      Subgroup GUID: 2a737441-1930-4402-8d77-b2bebba308a3  (USB settings)
        Power Setting GUID: 48e6b7a6-50f5-4782-a5d4-53bb8f07e226  (USB selective suspend setting)
          Possible Setting Index: 000
          Possible Setting Friendly Name: Disabled
          Possible Setting Index: 001
          Possible Setting Friendly Name: Enabled
        Current AC Power Setting Index: 0x00000000
        Current DC Power Setting Index: 0x00000001


    leo

    Friday, September 22, 2017 8:09 PM

Answers

  • Where each index get defined ? In other words, what each index mean ?


    An index has no meaning.

    As I said, it is just a loop.

    It starts at 0, then it calls the API, then it adds +1, calls the API, then it adds +1, calls the API, and so on...

    Like when you enumerate disks for example, you get disk 0, disk 1, disk 2, ...

    In this case it enumerates them from the registry :

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226



    Saturday, September 23, 2017 9:11 AM

All replies

  • It calls the PowerReadPossibleValue API in a loop
    • Marked as answer by Doron Holan [MSFT] Friday, September 22, 2017 8:49 PM
    • Unmarked as answer by SJ-Hills Friday, September 22, 2017 10:13 PM
    Friday, September 22, 2017 8:44 PM
  • Thanks. Where to find definition of possible settings ? I imaging there is a list of settings, and the 0x0 and 0x1 indicate the position in the list ?


    leo

    Friday, September 22, 2017 10:15 PM
  • It just starts at index  = 0 and loops until the API doesn't return ERROR_SUCCESS
    Saturday, September 23, 2017 5:22 AM
  • Thanks but you seems not getting my question: I'd like to know how to interpret the result, not how these result are produced. For example, what does "Possible Setting Index: 000" and  "Possible Setting Index: 001" in the case of "USB selective suspend setting" ? Where each index get defined ? In other words, what each index mean ?


    leo

    Saturday, September 23, 2017 6:33 AM
  • Where each index get defined ? In other words, what each index mean ?


    An index has no meaning.

    As I said, it is just a loop.

    It starts at 0, then it calls the API, then it adds +1, calls the API, then it adds +1, calls the API, and so on...

    Like when you enumerate disks for example, you get disk 0, disk 1, disk 2, ...

    In this case it enumerates them from the registry :

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226



    Saturday, September 23, 2017 9:11 AM