Solved Registry power plans - changing Attributes value vs adding key to user plan


fruh

Well-known member
Member
VIP
Local time
6:05 AM
Posts
162
OS
Windows 11
Hi, I'm exploring the Registry :D

I have noticed that the usual procedure for enabling hidden advanced power settings involves changing (or adding) the Attributes Dword value to 0 or 2 (1 for hidden). In this case, the Attributes Dword is added to the PowerSetting key of interest under HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings, where it seems like all the possible advanced power settings keys are stored independently from power plans (or schemes).

The actual user power plans are located under HKLM\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes (where the windows energy saver overlay and active power plan are specified too). Here though, under the keys of every specific user PowerScheme, not every PowerSetting key is present for every PowerScheme.

So, is there a difference between un-hiding PowerSettings using the Attributes Dword under Power\PowerSettings and directly adding a PowerSetting key to a PowerScheme under Power\User\PowerSchemes? Could it be that Attributes defines the general un/hiding of the PowerSettings while adding a specific key to a specific power plan is the specific way to do the same thing?

Also, some keys which have both AC and DC Dword values specified under Power\PowerSettings only actually have one of them under \Power\User\PowerSchemes (for example, the energy saver setting which is enabled only when the PC is running on battery); could it be possible to add the missing Dword directly under the desired power scheme?

Attached is a screenshot of regedit showing how one of the user PowerSchemes keys refer to the PowerSettings above; the PowerSettings keys under Power\User\PowerSchemes are only there for storing the user-set values, while the keys in their complete form (description etc) are stored under Power\PowerSettings

Thanks to anyone who will reply :)
 
Windows Build/Version
22621.521

Attachments

  • Immagine 2022-09-25 200643.png
    Immagine 2022-09-25 200643.png
    55.1 KB · Views: 18

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell g5 5590
    CPU
    intel 9th gen
    Memory
    8GB LOL
    Graphics Card(s)
    nvidia
    Hard Drives
    C: nVME kioxia SSD
    D: SATA toshiba HDD
    Browser
    Firefox
    Antivirus
    Defender (if it hasn't been disabled yet)
WELL, I'm totally lost! What are you actually trying to do? And, WHY?

If I just wait to see what others have to say, maybe I'll understand it better.
Y'all have a nice day now,
TM :cool:
 

My Computer

@TechnoMage2021 tryna find out if there is actual public knowledge about the registry
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell g5 5590
    CPU
    intel 9th gen
    Memory
    8GB LOL
    Graphics Card(s)
    nvidia
    Hard Drives
    C: nVME kioxia SSD
    D: SATA toshiba HDD
    Browser
    Firefox
    Antivirus
    Defender (if it hasn't been disabled yet)
Yes, I do this registry hack to reveal hidden "expert" power settings in the power plans that I wish to change. I don't have a laptop, so am not concerned about AC/DC. However, I would think that Microsoft would handle that automatically. Personally I wouldn't mess with that, but just the attribute keyword. to expose the settings.

Just so people understand what we are talking about:

Screenshot 2022-09-25 213651.png
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY Photoshop/Audio/Game/tinker build
    CPU
    Intel i9 13900KS P/E cores 5.7/4.4 GHz, cache 5.0 GHz
    Motherboard
    Asus ROG Maximus Z790 Dark Hero
    Memory
    96GB (2x48) G.skill Ripjaws 6800 MT/s
    Graphics Card(s)
    Asus ROG Strix 4070 Ti OC
    Sound Card
    Bowers & Wilkins 606 S3 speakers; Audiolabs 7000a integrated amp; Logan Martin Sub; Creative Pebble Pro Minimilist
    Monitor(s) Displays
    Eizo CG2730 ColorEdge, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850X 4TB nvme, SN850 1TB nvme, SK-Hynix 2 TB P41 nvme,. Sabrent USB-C DS-SC5B 5-bay docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2x 2TB WDC Black HDD
    PSU
    850W Seasonic Vertex PX-850 ATX 3.0/PCI-E 5.0
    Case
    Fractal Design North XL Mesh, Black Walnut
    Cooling
    EKWB 360 Nucleus Dark AIO w/Phanteks T30-120 fans, 1 Noctua NF-A14 Chromax case fan, 1 T30-120 fan cooling memory
    Keyboard
    Keychron Q3 Max TKL with custom GMK Redsuns Red Samuri keycaps, TX Stabs
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    500 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect X ;-)
    Other Info
    Runs hot. LOL. SP: P116/E93/M93
    Phangkey Amaterasu V2 Desk Mat
  • Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    Apple M1
    Screen Resolution
    2560x1600
    Browser
    Firefox
Alright then, I decided to try myself. At first I added Energy Saver settings to Power Options following this tutorial, then I added the missing ACSettingIndex Dword to the Energy Saver - Charge level key in my user power plan. Then,the missing AC setting was shown by editing its Attributes Dword to 2, but was not adjustable in Control Panel; manually adding the ACSettingIndex Dword to its registry key under ...\User\PowerSchemes made the AC setting actually adjustable in Control Panel, so now I can enable Energy Saver also when my laptop is plugged in. (clarified on 2024/10/24)

Through Control panel I have also set the Energy Saver behaviour to aggressive for plugged-in state, which automatically created the missing key in my user power plan, since this one was actually editable. (As of 2024/10/24 I don't remember what I meant by this statement lol)

Here's what I've found about power schemes (or power plans) in the registry (my own understanding) (updated 2024/10/24)
(for readability I'll abbreviate the "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power" path as "...")
- default power plan dword values are stored under ...\PowerSettings\"settingscategory"\"setting"\DefaultPowerSchemesValues\"powerscheme"
- non-default dwords values are stored under ...\User\PowerSchemes\"powerscheme"\"settingscategory"\"setting"
- setting the attributes dword value=2 only makes the correspondent keys visible in Control Panel
- for a key to be effective it must be present under ...\User\PowerSchemes
- for a key to be both effective and editable from Control Panel it needs both ...\User\PowerSchemes and attributes=2 conditions to be true

It looks like if there already is a Dword specified for a key under \User\PowerSchemes, setting the Attributes Dword to 2 under \PowerSettings will just show it, but not override it by making the missing Dwords editable; instead, if the keys made available through Attributes under \PowerSettings were completely missing, the registry will automatically add them if the user modifies them through control panel.

In the end, it had to make sense in some way I guess

Attached is a screenshot of my custom power plan with Energy Saver enabled for AC too; comparisons can be made with standard user power plans too, since not everyone will have exactly my custom power plan key
 

Attachments

  • Immagine 2022-09-26 124054.png
    Immagine 2022-09-26 124054.png
    55.4 KB · Views: 14
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell g5 5590
    CPU
    intel 9th gen
    Memory
    8GB LOL
    Graphics Card(s)
    nvidia
    Hard Drives
    C: nVME kioxia SSD
    D: SATA toshiba HDD
    Browser
    Firefox
    Antivirus
    Defender (if it hasn't been disabled yet)
Happy to see that with 24H2 microsoft decided to allow enabling Energy Saver on AC too. You're welcome MS lol xD

Only had to momentarily switch power plan to make the new settings work properly but oh well
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell g5 5590
    CPU
    intel 9th gen
    Memory
    8GB LOL
    Graphics Card(s)
    nvidia
    Hard Drives
    C: nVME kioxia SSD
    D: SATA toshiba HDD
    Browser
    Firefox
    Antivirus
    Defender (if it hasn't been disabled yet)

Latest Support Threads

Back
Top Bottom