Skip to content

Add battery optimization reminder popup and auto optimization logic#5137

Open
binbuf wants to merge 7 commits intoseerge:mainfrom
binbuf:feature/battery-optimizations
Open

Add battery optimization reminder popup and auto optimization logic#5137
binbuf wants to merge 7 commits intoseerge:mainfrom
binbuf:feature/battery-optimizations

Conversation

@binbuf
Copy link
Copy Markdown

@binbuf binbuf commented Mar 21, 2026

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.

  • BatteryOptimizationService: scans current settings against battery-optimal baselines, applies optimizations on request
  • BatteryReminderForm: popup, auto-hide timer, hover-to-pause, and "always auto-optimize" checkbox, can be disabled on popup or in settings
  • Integrates via Program.cs on power source change events

Tested on Zephyrus G14 (2024)

Screenshot 2026-03-21 071521 Screenshot 2026-03-21 085852

binbuf added 7 commits March 21, 2026 07:50
  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
@binbuf
Copy link
Copy Markdown
Author

binbuf commented Mar 21, 2026

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.

@binbuf
Copy link
Copy Markdown
Author

binbuf commented Apr 1, 2026

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.

@seerge seerge force-pushed the main branch 7 times, most recently from d315db7 to dd53140 Compare April 29, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant