Skip to content

Do not hardcode ACPI battery names

Hector Martin requested to merge marcan/powerdevil:non-acpi-battery-fix into master

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.

Merge request reports