Windows power plan settings explorer utility

Discussion in 'Operating Systems' started by mbk1969, Aug 3, 2017.

  1. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    http://www.mediafire.com/file/wt37sbsejk7iepm/PowerSettingsExplorer.zip

    I got sick of fidgeting either in registry or in command line to unhide this or that power plan setting to edit its value in Windows`dialog with advanced power settings. So I wrote this little utility to explore all power plan settings and to unhide needed ones (and hide others).

    Utility is built with .Net 4.5 and uses only power management functions from Win API to enumerate settings` (friendly) names along with descriptions and possible values/ranges.
    You can use column "hidden" to control the visibility of settings in the dialog with advanced power settings.

    I did not notice any difference launching utility as Administrator or as current user, so probably elevated privileges are not needed.

    And no reboot required, just re-open the dialog with advanced power settings.

    Update on features:
    - Double click on the main grid with settings opens regedit and navigates it to the key for that setting in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\SubGroupGuid" - but you need to launch utility as Administrator for that.
    - Double click on second grid (with values) on the column with schemes brings the dialog with advances settings with this scheme selected.
    - Export and Import of settings through buttons at the bottom.
    - New column "active" is added to the grid with values and schemes to get and set currently active power scheme.
     
    Last edited: Aug 25, 2017
    Jackalito and KissSh0t like this.
  2. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    Added the launch of the dialog with advanced power settings by double click in the grid with options (any column).
     
  3. godknowswhy

    godknowswhy Member Guru

    Messages:
    125
    Likes Received:
    0
    GPU:
    All sorts
    Cool. Thanks for this and everything else you do around here.
     
  4. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    I don`t know whether I should offer the editing of settings values. I overcame my laziness and managed to find easy (but slightly ugly) way of presenting the editing, but do any of you need the editing from this utility? I for example don`t like the way of editing in Windows` own dialog because we don`t see values for all power plan schemes in one place, so here we can do that.
     

  5. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    http://www.mediafire.com/file/wt37sbsejk7iepm/PowerSettingsExplorer.zip

    Change log:
    - Units for the range settings is added to description.
    - Panel with grid is added for editing of the AC and DC (for notebooks) values for the current (in main grid) setting. So you can edit values without the need to unhide and to launch OS`dialog. Any number of settings can be changed before clicking "Apply" button to save changes.
     
    Last edited: Aug 9, 2017
  6. EdKiefer

    EdKiefer Maha Guru

    Messages:
    1,267
    Likes Received:
    1
    GPU:
    MSI 970 Gaming 4G
    Hi nice work.

    Not trying to give you work, just idea, feedback.
    Maybe add key# values on left(The reg key name).

    The problem i find with windows power plan advanced window is you can't expand/enlarge it so you end up panning/scrolling to see whats there. Thats big down part of the advanced window.
     
  7. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    You mean Guids? It is easy because program has them all. But I smell a geek though - why do you need them?

    Yeah, that`s stupid design.
     
  8. EdKiefer

    EdKiefer Maha Guru

    Messages:
    1,267
    Likes Received:
    1
    GPU:
    MSI 970 Gaming 4G
    I meant Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\06cadf0e-64ed-448a-8927-ce7bf90eb35d
    Its not big deal, only would come in handy if MS added new ones, so it be easy to compare with reg, thats all, no biggy.
     
  9. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    Program can show subgroup` guid and setting` guid (under the name).

    I will look also into showing descriptions of values (showed in combobox cells).
     
  10. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    http://www.mediafire.com/file/wt37sbsejk7iepm/PowerSettingsExplorer.zip

    Change log:
    - Double click on the main grid with settings opens regedit and navigates it to the key for that setting in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\SubGroupGuid" - but you need to launch utility as Administrator for that.
    - Double click on second grid (with values) on the column with schemes brings the dialog with advances settings with this scheme selected.
    - Guid of the setting, units, ranges and possible values were moved to second grid: toolstrip at the very bottom and comboboxes with possible values with their descriptions.
     
    Last edited: Aug 11, 2017

  11. EdKiefer

    EdKiefer Maha Guru

    Messages:
    1,267
    Likes Received:
    1
    GPU:
    MSI 970 Gaming 4G
    Nice improvement with settings and links to adavnced setting window and reg key values.
     
  12. BuildeR2

    BuildeR2 Ancient Guru

    Messages:
    2,449
    Likes Received:
    18
    GPU:
    MSI 1080GX @ 2k/11k
    Nice utility here! It has WAY more stuff to mess with than I was expecting. I only dared to change the SSD no sleep stuff for the high performance plan so far, but I'm also eyeing some of the core parking stuff. Thanks!
     
  13. Watcher

    Watcher Ancient Guru

    Messages:
    2,391
    Likes Received:
    30
    GPU:
    Gigabyte Windforce R9 380
    @mbk1969

    1. Nice.
    2. Some of these settings, I have neither seen or heard of before.
    3. Seeing them all grouped together like this, I had no idea that there were so many settings.
    4. What the heck have you done now?

    I'll tell you what you've done. You've opened the door to the discussion on which settings are best for, you guessed it - Gaming.

    Quickly looking over my settings, I noted that I had a number a values deactivated. I'm sure that is from tweaking the Power settings already.

    Ideas for future releases

    • Import and Export configuration settings.
    • Indicate default values for each setting ex Active or not active and default values for each key / value.
    • Profiles for different computer uses. ex Gaming, Server, Home computer and so on.

    I think you have opened quite the bag of worms. :)
     
  14. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970

    Blimey... :nerd:
    Export and import can be done easily, ofc. And profile is kinda file with saved values. But who will specify the values for all those roles - gaming, server, home computer - we need experts for that.

    But I don`t get what do you call "activated/deactivated" setting. If you mean checkbox in the column "hidden" then it is namely hidden in the OS`dialog box with advanced settings.

    Btw, I see some settings which never appear in the dialog box with advanced settings regardless of their hidden state.

    PS And possible features are:
    - reset the scheme to default values (which ofc can be done in the dialog box with advanced settings);
    - creating of new additional power plans (schemes);
    - use raw key input to switch power plans (schemes) by specified hotkey.
     
    Last edited: Aug 14, 2017
  15. EdKiefer

    EdKiefer Maha Guru

    Messages:
    1,267
    Likes Received:
    1
    GPU:
    MSI 970 Gaming 4G
    Yeh, I think some maybe misunderstand, even the hidden power plans are in use, just not seen or available to change.
    Some power values are HW specific too, like new Skylake SpeedStep stuff.
     

  16. Watcher

    Watcher Ancient Guru

    Messages:
    2,391
    Likes Received:
    30
    GPU:
    Gigabyte Windforce R9 380
    Well, it looks like I took the Hidden Column and in my mind made it "activated/deactivated". That would be my mistake.

    I was surprised to see a number of them Hidden ( Meaning box unchecked in the Hidden Column )? That was interesting to say the least.

    I like the above ideas you have expressed.

    I'll be busy for a while checking those hidden boxes that I unchecked :)

    Let me know if you need a Beta tester.
     
  17. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    No, when setting is checked in column "hidden" then it is hidden in the dialog box with advanced settings.
     
  18. Watcher

    Watcher Ancient Guru

    Messages:
    2,391
    Likes Received:
    30
    GPU:
    Gigabyte Windforce R9 380
    Well, again my brain is getting in the way of what my eyes are reading.

    My brain saw that the majority of the power options were checked when I first ran the program. In my mind, this would indicate the these items are selected to view in the power option screen.

    Apparently not. When I went to the Windows power option location, I noted that there were no options available to look at. Unchecked all boxes in the Hidden column and all option have returned.

    Thank you for the correction once again.
     
    Last edited: Aug 17, 2017
  19. Watcher

    Watcher Ancient Guru

    Messages:
    2,391
    Likes Received:
    30
    GPU:
    Gigabyte Windforce R9 380
    @mbk1969

    There are three settings under the " Energy Saving settings " location:

    1. Display brightness weight
    2. Energy Saver Policy
    3. Charge level

    in which I have unchecked the Hidden column and verified that the " Attributes " value have changed from " 1 " to " 0 ". When I run " Power Settings Explorer " again, the check marks return to the Hidden column for these three settings but the " Attributes " value remains at " 0 "

    Would you verify this behaviour on your computer(s). Do you know what might be causing this?
     
  20. mbk1969

    mbk1969 Ancient Guru

    Messages:
    3,902
    Likes Received:
    155
    GPU:
    GeForce GTX 970
    You can check the same value Attributes at "Energy Saving settings" subgroup registry key. As I take it subgroup itself can be hidden too. And utility doesn`t use registry, it uses only API functions. I will look into this.

    Update: I can confirm that whole subgroup has that Attributes = 1 in registry, so I should add unhiding of whole subgroup to the code.


    Meanwhile import/export are on the way...
     
    Last edited: Aug 17, 2017
    Jackalito likes this.

Share This Page