Skip to content

Implement an auto switch mode on battery event#14

Merged
luytan merged 10 commits intodevfrom
auto-switch-battery
May 3, 2026
Merged

Implement an auto switch mode on battery event#14
luytan merged 10 commits intodevfrom
auto-switch-battery

Conversation

@luytan
Copy link
Copy Markdown
Collaborator

@luytan luytan commented May 3, 2026

Summary:

Switch to integrated on battery, switch to hybrid on AC

Changes:

  • Added a new config option battery_auto_switch in cardwire.toml, default is false
  • Changed how the default config works in config.rs, it now uses the default trait

Closes #10

@luytan luytan self-assigned this May 3, 2026
@luytan luytan added enhancement New feature or request run-vm-test To run the test vm labels May 3, 2026
@luytan luytan linked an issue May 3, 2026 that may be closed by this pull request
@luytan luytan added run-vm-test To run the test vm and removed run-vm-test To run the test vm labels May 3, 2026
@luytan luytan marked this pull request as ready for review May 3, 2026 17:56
@luytan luytan merged commit 65cc92a into dev May 3, 2026
1 check passed
@luytan luytan deleted the auto-switch-battery branch May 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request run-vm-test To run the test vm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] add auto mode

1 participant