Windows power plan settings explorer utility

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

  1. AXS

    AXS Master Guru

    Messages:
    265
    Likes Received:
    14
    GPU:
    ATi HD 4800
    On a laptop i use a Custom Power Plan (have dozens of extra settings added), tho - also added it to Local Group Policy Editor (which looks it - so no other app or Windows setting can mess with it). Did this because - even tho, i removed all the other Default Windows Power Plans - during a major Windows Update, upon restart - the High Performance Power Plan would be added it and Windows would switch to it. Which... is to much for this laptop: temperatures climbing to 100*C, fans switching to vacuum noise profile (5000 RPM) - while thermal throttling. That never happen again - once i Specified a custom active power plan:

    2024-03-19_210506.png

    As mentioned above - they get locked with Admin privileges:

    2024-03-19_210506.png 2024-03-19_211319.png

    And no update, app or setting can change that - unless i remove the Specified active power plan from the Local Group Policy Editor.

    Also, sure - there's apps like ThrottleStop - which can undervolt and tweak the frequencies and power settings. But that's something i use only for my personal system. Had lots of clients with thermal issues on gaming laptops - which i wouldn't trust with an app like TS, yet - setting a fixed Maximum Process Frequency (which affects Turbo Boost as well) - is rather safe and efficient (if cleaning the fans and repasting it - didn't prove to be enough for handling maximum Turbo Boost frequencies - at reasonable temperatures). Helps with noise too.

    My Windows settings are already heavily tweaked. What can i say - optimizing the OS to my specific needs - is a bit of a passion of mine (something i started doing since Windows 2K Service Pack 4 - since back then - on a system with a Duron 1300, GeForce 4 MX 440 and 256 DDR - tweaking even something as lite as Windows 2K made a noticeable impact). But tweaking can only go so far. In specific situations like above (laptops with powerful CPUs - where the included tiny fans and limited airflow - can struggle to cool the CPU while Turbo Boost gets close to maximum) - limiting the frequency, a bit of undevolt and a cooling pad - are the only efficient options (can't stand the vacum noise - so i prefer even lower frequencies than those who can ignore the noise).
     
  2. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    It seems that on CPPC cable (or HWP enabled) CPU, Windows will keep EPP at 0 and this decision overrides any other EPP setting, even the LowLatency profile, which is said to be controlling performance on startup.
    It can be disabled by adding the property HighPerfDurationBoot being 0 in HKLM\SYSTEM\CurrentControlSet\Control\Power. Other relevant settings are HighPerfDurationSxExit and HighPerfDurationCSExit.
     
  3. AXS

    AXS Master Guru

    Messages:
    265
    Likes Received:
    14
    GPU:
    ATi HD 4800
    Locking the Power Plan - by Specifying a custom active power plan in Local Group Policy Editor (as shown in previous post) - did the trick (never happened again after setting that). Tho, hey - more workarounds can't hurt - so that's good to know too (wasn't aware of this extra registry settings),
     
  4. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    Turning off autonomous mode might be writing a non 0 value to the desired performance register on CPPC cable platform, which is somehow different from the platforms using legacy P-state control. From my experience, processor performance boost policy only has effects if speedshift isn't enabled in BIOS, doesn't work with SST enabled and autonomous mode disabled.
    Another interesting test shows that Windows cannot use performance increase/decrease threshold to control QoS performance, which means on platforms without HWP, such as all current and upcoming ARM SoC, Windows can only specify frequency bounds but not how frequency can increase/decrease for QoS performance.
     
    Last edited: Mar 22, 2024

  5. Tiberiusmoon

    Tiberiusmoon New Member

    Messages:
    2
    Likes Received:
    0
    GPU:
    rtx 3080
    The software is great, I wonder if additional/custom registry key modifications can be added to a power plan in future development?
    There are a bunch of Nvidia GPU registry related power functions on Windows to.
    This video explains some of them, but there are still many to test:


    Power plans are incredibly useful, I use Process lasso to dynamically change power plans when gaming to disable power saving functions to great effect.
     
  6. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    Absolutely not.
     
  7. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    @mbk1969
    There are cases that Intel Dynamic Tuning/IPF will reset active power plan periodically:
    https://www.reddit.com/r/DellXPS/comments/tzbilc/xps_15_9520_frequent_usermodepowerservice_events/
    https://www.reddit.com/r/WindowsHel...iple_usermodepowerservice_log_in_eventviewer/
    https://www.dell.com/community/en/c...e-event-id-12-events/647f9fedf4ccf8a8de4dda0a
    https://forums.lenovo.com/t5/ThinkP...tly-resetting-power-policy-scheme/m-p/5169289

    Some mitigations:
    disable/uninstall DTT/IPF service and device;
    use overlays which are not restored;
    using GPO to lock active power plan is not feasible because Windows would refresh GPO when logged on, changes to power plan are still applied
     
  8. Mike0

    Mike0 New Member

    Messages:
    1
    Likes Received:
    0
    GPU:
    4700Ti 12gb
    Hi, anyone have a screenshot of the options that are unhidden by default when clicking unhide? Was a bit to hasty and didnt notice there wasnt an option to revert back haha.
     
  9. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    Why do you care about hidden status of settings?
     
  10. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    New finding: latency sensitivity hint related settings never work because the setting to enable them was already deprecated as early as 2015.
    https://www.codemachine.com/downloads/win10.1507/winnt.h
    https://github.com/tpn/winsdk-10/blob/master/Include/10.0.14393.0/km/ntpoapi.h

    update: might be wrong, this setting is already merged with PerfLatencyHint with the zero value:
    @mbk1969 Do you know how to get the content of these .h file?
     
    Last edited: Mar 29, 2024

  11. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
    https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/

    you need older versions only if you want to track down the deprecation
     
  12. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    There is a bug in powercfg, when sub group is specified, it can still query the power setting, which is not in this sub group, and ignore the sub group parameter. The expected behavior would be to throw an error.
    [​IMG]
     
    Last edited: Mar 31, 2024
  13. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    @Donduck

    I noticed in fresh HWiNFO (in "CPU Scalable Features" subgroup):
    Also stumbled upon this page - https://www.spec.org/cpu2006/flags/MComputers-Platform-Settings-V1.2-revB.html :
    PS
    And this (server type but still) - https://datacentersupport.lenovo.co...t505010-c-state-operations-lenovo-thinksystem
     
    Last edited: Apr 1, 2024
  14. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
  15. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070

  16. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    Book about servers but at least there are free downloads - https://link.springer.com/book/10.1007/978-1-4302-6638-9

    PS Chapter about CPU power management - https://link.springer.com/content/pdf/10.1007/978-1-4302-6638-9_2?pdf=chapter toc

     
    Last edited: Apr 1, 2024
  17. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    Server is different, per-core frequency was introduced on Haswell, but latoptop didn't have that feature until 10th gen.
    It mentions "Modern operating systems do not make use of the T-state request infrastructure, but it is maintained for legacy purposes", I wonder if that is the duty cycling in power settings. Profiling doesn't show some statistic difference for on vs off.
    There used to be a frequency scaling option called "Degrade" on Windows XP, which P-state is at lowest, and stop clock are inserted.
     
  18. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    And my rig has server descendant CPU - 10920X.

    Code:
    Setting:
      Allow Throttle States
    
    Description:
      Allow processors to use throttle states in addition to performance states.
    
    Subgroup:
      Processor power management
    
    Possible values (index - hexadecimal or string value - friendly name - descr):
      0 - 00000000 - Off - Off
      1 - 00000001 - On - On
      2 - 00000002 - Automatic - Automatically use throttle states when they are power efficient.
    
    Subgroup / Setting GUIDs:
      54533251-82be-4824-96c1-47b60b740d00 / 3b04d4fd-1cc7-4f23-ab1c-d1337819c4bb
    
    Default value for schemes:
              Balanced:  AC=Automatic  |  DC=Automatic
      High performance:  AC=Automatic  |  DC=Automatic
           Power saver:  AC=Automatic  |  DC=Automatic
    
     
  19. Donduck

    Donduck Master Guru

    Messages:
    372
    Likes Received:
    25
    GPU:
    Radeon RX Vega 7
    "Allow Throttle States" is kind of different, the option automatic is different on Intel and AMD CPU from my experience. What it does is change the actual lower frequency bound.
    On Intel CPU, automatic mean on, where lowest frequency at idle is 0.8GHz, when turn off, frequency at idle is 1.1GHz or 1GHz;
    On AMD CPU, automatic mean off, where lowest frequency at idle is 1.4GHz, when turn on, frequency at idle is 1.1GHz;
     
  20. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,738
    Likes Received:
    13,731
    GPU:
    GF RTX 4070
    You asked about T-states, and that`s the only T-states related setting, IMO.
    Duty cycling is not about T-states, definitely.

    PS See events from "Kernel-Processor-Power" in System logs:
    - we see lowest P-state and lowest T-state.
     
    Last edited: Apr 2, 2024

Share This Page