Proposal: SustainabilityManager API #2525
-
There couldn't be a better time to add a new
This new API should follow the design pattern of others and contain a static
This class could also expose the long-awaited WinRT API for apps to enable EcoQoS (efficiency mode) on their processes. There are numerous positive implications for Microsoft, end users, and the planet if this technology is exposed to third party developers. Bringing this technology to the Windows App SDK could also yield a virtuous cycle of adoption by larger, widely renowned companies that are environmentally conscious. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Cross-referencing dotnet/runtime#66417. Probably good band-aid could be just having a vetted piece of .NET for setting and unsetting this flag. Non-.NET example at https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessinformation#examples. Maybe useful is a code example at https://github.com/dahall/Vanara/blob/f28c7c3d8b21d58a603b3077bcd432d8b811bb45/UnitTests/PInvoke/Kernel32/ProcessThreadsTests.cs#L477. |
Beta Was this translation helpful? Give feedback.
-
An update for this proposal - almost 2 years laterIn mid-2022, I opened this proposal after hearing news that in Windows 11, regular updates would become carbon-aware with 22H2. In case you missed it, this improvement makes Windows Update take into account the forecasted carbon-intensity of sources on a user's regional power grid when it determines the optimal time to schedule installation attempts. I anticipated that the new data sources which became leveraged by the OS could be more broadly valuable if exposed to third-party app developers through a new API delivered through the Windows App SDK. This discussion was eventually closed by me last year after WinAppSDK development appeared to stall and it was not a pressing need for most developers compared to other feature gaps. However, I am happy to see an API for this feature has very recently been announced in the notes of a recent Insider Preview build (26000-series) as Power Grid Forecast API:
Documentation for this pre-release API can so far be found as Please note that this feature is not exposed to developers using Windows App SDK, which means it is currently coupled to the platform itself, and only available on build 26058 (Preview) or newer. The API is also subject to change, and I lack any knowledge or guarantees beyond this exciting possibility I noticed as a user. Anyhow, I'd say this ask is now completed! |
Beta Was this translation helpful? Give feedback.
An update for this proposal - almost 2 years later
In mid-2022, I opened this proposal after hearing news that in Windows 11, regular updates would become carbon-aware with 22H2. In case you missed it, this improvement makes Windows Update take into account the forecasted carbon-intensity of sources on a user's regional power grid when it determines the optimal time to schedule installation attempts. I anticipated that the new data sources which became leveraged by the OS could be more broadly valuable if exposed to third-party app developers through a new API delivered through the Windows App SDK.
This discussion was eventually closed by me last year after WinAppSDK development appeared …