FluentFlyouts3 icon indicating copy to clipboard operation
FluentFlyouts3 copied to clipboard

Windows 11 power saver

Open FireCubeStudios opened this issue 2 years ago • 2 comments

This application can not control the windows 11 power saver unlike v2 xaml islands version. It only controls the power plan so we need a way to change power saver mode. Can this be done via cmd? FOUND IT https://www.elevenforum.com/t/turn-on-or-off-battery-saver-in-windows-11.2912/#Four

FireCubeStudios avatar Oct 10 '22 17:10 FireCubeStudios

I was actually looking for an app EXACTLY like this for my laptop, since windows 11 removed the power slider. I didnt try the app yet, but I think its exactly what I was looking for.

Now the question: It can theoretically be done via cmd.

Windows 11 depends on both power plans and power modes.

Power plans are in control panel. My power plan is AMD Ryzen Balanced.

Power modes are in settings -> battery. There is better battery, balanced and best performance and also, the battery saver.

Every one of these modes has its own GUID-ID

So I made a application in c# based on one originally made for windows 10. It changes the power mode, not plan, by using a dll that modifies a registry key. This key contains a guid id for the power mode.

So in short my c# app -> dll -> registry key -> GUID-ID of the mode.

Then you use it via command line.

It can also be use without a command input, directly integrated in the code.

It can even change depending if the pc is plugged in or not

I can upload it to github tomorrow and post it here.

Hepi34 avatar Oct 10 '22 21:10 Hepi34

So your description of power modes is actually power plans and the app already knows how to use this. This issue is for the seperate power saver mode that's new in 11 and independant of power plans

FireCubeStudios avatar Oct 10 '22 22:10 FireCubeStudios