Support Bluetooth batteries
ClosedPublic

Authored by broulik on Tue, Dec 4, 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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Tue, Dec 4, 2:22 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptTue, Dec 4, 2:22 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
broulik requested review of this revision.Tue, Dec 4, 2:22 PM
broulik added a reviewer: bshah.
bshah accepted this revision.Tue, Dec 4, 3:24 PM
This revision is now accepted and ready to land.Tue, Dec 4, 3:24 PM
This revision was automatically updated to reflect the committed changes.