Skip to content

Do not hardcode ACPI battery names

Nate Graham requested to merge cherry-pick-a002ab47 into Plasma/5.26

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)

Merge request reports