Naios/powersaver

Feature Request: Add more power plans

Cris-- opened this issue · 2 comments

Hi,

nice tool, very useful for my Laptop!

It would be great if we can also add more power plans like High Performance Mode or custom ones...

powercfg /list

For the DAW Bitwig Studio i prefer tmy High performance plan over any other plan, less clicks and pops in the audio material if CPU is nearly maxed out!

example:

# Process pooling time in seconds
interval: 30

# Case insensitive program names that promote the current
# power scheme to "Balanced", otherwise "Power Saver" is set.
balanced:
  - Unreal
  - Blender
  - devenv

high:
  - Bitwig Studio

8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c:
  - Bitwig Studio

Hi @Cris--,
I'm glad you like the tool.
If you like, you could create a PR that adds this feature.
I wrote the code originally to also support this feature in the future.

Some initial steps to accomplish this would be:

  • add a new enum value for PowerLevel
  • map it correctly via map_power_level_to_guid and map_guid_to_power_level.
  • Match high before balanced and then fallback to power saver

Sry, i didn't have nearly any coding skills except a bit php & py.
Maybe if you get time and willing coding this it would be great!