Skip to content

power: supply: macsmc: make force-discharge to the charge limit configurable - #521

Open
BoiledElectricity wants to merge 4062 commits into
AsahiLinux:asahi-wipfrom
BoiledElectricity:macsmc-force-discharge-configurable
Open

power: supply: macsmc: make force-discharge to the charge limit configurable#521
BoiledElectricity wants to merge 4062 commits into
AsahiLinux:asahi-wipfrom
BoiledElectricity:macsmc-force-discharge-configurable

Conversation

@BoiledElectricity

Copy link
Copy Markdown

Lowering the charge limit always sets CHLS_FORCE_DISCHARGE, so the battery actively drains down to the limit even on AC. Add a force_discharge module param (default on = no behaviour change) to make that opt-out, so the limit can just cap charging instead.

Resolves the in-code TODO. Tested on M1 MacBook Pro (j293).

Loading
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.