Skip to content
Commit 2d3289ef authored by Hector Martin's avatar Hector Martin Committed by Nate Graham
Browse files

Do not hardcode ACPI battery names

The BAT* naming convention is strictly an ACPI thing, so the charge
control helper fails to work on non-ACPI platforms (like many
embedded ARM devices including Apple Silicon Macs).

The correct way to enumerate batteries is to use the `type` property.


(cherry picked from commit a002ab47)
parent 7d95b4a1
Pipeline #292565 passed with stage
in 1 minute and 32 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment