Add battery optimization reminder popup and auto optimization logic#5137
Open
binbuf wants to merge 7 commits intoseerge:mainfrom
Open
Add battery optimization reminder popup and auto optimization logic#5137binbuf wants to merge 7 commits intoseerge:mainfrom
binbuf wants to merge 7 commits intoseerge:mainfrom
Conversation
When unplugging from AC power, detect suboptimal settings (high
performance mode, dGPU active, high refresh rate, etc.) and show a
toast-style popup offering to switch to battery-friendly defaults.
- BatteryOptimizationService: scans current settings against
battery-optimal baselines, applies optimizations on request
- BatteryReminderForm: borderless popup with rounded corners,
auto-hide timer, hover-to-pause, and "always auto-optimize" checkbox
- Integrates via Program.cs on power source change events
When unplugging from AC power, detect suboptimal settings (high
performance mode, dGPU active, high refresh rate, etc.) and show a
toast-style popup offering to switch to battery-friendly defaults.
- BatteryOptimizationService: scans current settings against
battery-optimal baselines, applies optimizations on request
- BatteryReminderForm: borderless popup with rounded corners,
auto-hide timer, hover-to-pause, and "always auto-optimize" checkbox
- Integrates via Program.cs on power source change events
When unplugging from AC power, detect suboptimal settings (high
performance mode, dGPU active, high refresh rate, etc.) and show a
toast-style popup offering to switch to battery-friendly defaults.
- BatteryOptimizationService: scans current settings against
battery-optimal baselines, applies optimizations on request
- BatteryReminderForm: borderless popup with rounded corners,
auto-hide timer, hover-to-pause, and "always auto-optimize" checkbox
- Integrates via Program.cs on power source change events
…may need community verification for each language
Author
|
Updated some wording and capitalization formatting from what is pictured above. Used an AI tool to updated the language packs with the new text added in the form and notification. |
Author
|
Hi @seerge, just checking in to see if you have any feedback on this PR. Please let me know if you have any suggestions for improving this PR. |
d315db7 to
dd53140
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detects suboptimal settings (high performance mode, dedicated GPU active, high refresh rate, etc) when unplugging from AC power (also checking on app launch if on battery power) and show a toast-style popup offering to switch to battery optimized settings.
Tested on Zephyrus G14 (2024)