Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve state of Windows 10 Power mode slider

Is there any API to retrieve a state of Windows 10 Power mode slider?

enter image description here

I was looking at Windows.System.Power namespace. But PowerManager class seem to provide only an immediate state of the power system, but not user preferences set by the slider.

The slider also exists somehow in parallel with previous "power plan" settings. It does not seem that the slider state is reflected directly in Win32_PowerPlan.

like image 759
Martin Prikryl Avatar asked May 20 '19 12:05

Martin Prikryl


People also ask

How do I get my battery slider back on Windows 10?

Select Start. Settings > Personalization > Taskbar, and then scroll down to the notification area. Choose Select which icons appear on the taskbar, and then turn on the Power toggle. If you still don't see the battery icon, select Show hidden icons on the taskbar, and then select the battery icon.

How do I find power mode in Windows 10?

Change the power mode for your Windows PC To change the power mode, select Start > Settings > System > Power & battery. For Power mode, choose the one you want.

Where is Windows battery performance slider?

Customers can access the slider on their Windows device by clicking or tapping the battery icon in the task bar. The slider appears in the battery flyout. Customers can choose their power mode by moving the slider to the left and right.


1 Answers

Change the position of the slider, and the registry key:HKLM\SYSTEM\ControlSet001\Control\Power\User\PowerSchemes\ActiveOverlayAc/DcPowerScheme will also change. ActiveOverlayAcPowerScheme is for non-battery powered and ActiveOverlayDcPowerScheme is for battery powered. However, Starting with Windows release 1903 the slider is available for AC only devices as an OEM opt-in feature. The values of the key ActiveOverlayAcPowerScheme and the corresponding slider modes are as follows:

Better Battery {961CC777-2547-4F9D-8174-7D86181b8A7A}

Better Performance {381B4222-F694-41F0-9685-FF5BB260DF2E}

Best Performance {DED574B5-45A0-4F42-8737-46345C09C238}

the ActivePowerScheme will be overlaid with ActiveOverlayAcPowerScheme. you can retrieve the key value to get the slider mode.

like image 81
Drake Wu Avatar answered Sep 26 '22 00:09

Drake Wu