Skip to content

Specs: Add EnergySaverStatus2 API spec#6484

Open
RuthNjeri wants to merge 9 commits into
microsoft:mainfrom
RuthNjeri:user/ruthwaiganjo/newEnergySaverAPI
Open

Specs: Add EnergySaverStatus2 API spec#6484
RuthNjeri wants to merge 9 commits into
microsoft:mainfrom
RuthNjeri:user/ruthwaiganjo/newEnergySaverAPI

Conversation

@RuthNjeri
Copy link
Copy Markdown

This PR Addresses issue #6483

What: Adds an API spec for EnergySaverStatus2 a new addition to
Microsoft.Windows.System.Power.PowerManager that expands the legacy
two-state Energy Saver (On/Off) into three states: Off, Standard,
and HighSavings, reflecting the Windows Germanium release.

Why: The existing EnergySaverStatus API has a bug where Standard mode
incorrectly reports Off. This new API surfaces all three states accurately.

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

RuthNjeri and others added 4 commits May 15, 2026 17:14
Introduces spec for the new Microsoft.Windows.System.Power.PowerManager
EnergySaverStatus2 API, which expands the legacy two-state EnergySaverStatus
(On/Off) to a three-state model (Off/Standard/HighSavings) reflecting the
Windows Germanium Energy Saver update.

New APIs documented:
- PowerManager.EnergySaverStatus2 property
- PowerManager.EnergySaverStatus2Changed event
- PowerManager.IsEnergySaverStatus2Supported() method
- EnergySaverStatus2 enum

ADO: Task 60383995, 61020635, 61020638, 61020649

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Updated EnergySaverStatus2 documentation to reflect changes in API behavior and requirements for Windows 11, 24H2. Clarified enum descriptions and fixed formatting issues.
Added namespace declaration for PowerNotificationsContract.
@RuthNjeri
Copy link
Copy Markdown
Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 6484 in repo microsoft/WindowsAppSDK

Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md Outdated
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md Outdated
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md Outdated
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md Outdated
RuthNjeri added 3 commits May 18, 2026 09:27
Updated documentation to reflect changes in the Energy Saver feature, including the introduction of three modes: Off, Standard, and High Savings. Removed outdated examples and remarks related to unsupported OS builds.
Comment thread specs/EnergySaverStatus2/EnergySaverStatus2.md
Copy link
Copy Markdown
Member

@Scottj1s Scottj1s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to call out deprecation

RuthNjeri and others added 2 commits May 21, 2026 15:27
Mark PowerManager.EnergySaverStatus, PowerManager.EnergySaverStatusChanged,
and the EnergySaverStatus enum as deprecated in the EnergySaverStatus2 spec.
Deprecation notices added in Background section, EnergySaverStatus2 enum
Remarks, and Appendix/Legacy API compatibility section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clarify the limitation of the legacy EnergySaverStatus and its impact on app behavior.
@RuthNjeri RuthNjeri requested a review from Scottj1s May 21, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants