Support Bluetooth batteries
ClosedPublic

Authored by broulik on Dec 4 2018, 2:22 PM.

Details

Summary

There's currently no generic Bluetooth device type in UPower, so we get them of "unknown" type.
Check for whether it comes from Bluez to determine it's a Bluetooth battery.

Test Plan

Using upower and bluez git master and a patch to plasma-workspace I now have my headset show report its battery level.
Without plasma-workspace patch it shows up as generic battery but at least it shows up


"Kopfhörer" is the actual device name, not type, very creative :)

Diff Detail

Repository
R245 Solid
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Dec 4 2018, 2:22 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 4 2018, 2:22 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
broulik requested review of this revision.Dec 4 2018, 2:22 PM
broulik added a reviewer: bshah.
bshah accepted this revision.Dec 4 2018, 3:24 PM
This revision is now accepted and ready to land.Dec 4 2018, 3:24 PM
This revision was automatically updated to reflect the committed changes.