D17345: Support Bluetooth batteries
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Dec 4 14:22:27 GMT 2018
broulik created this revision.
broulik added reviewers: Plasma, bruns, davidedmundson.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
broulik requested review of this revision.
REVISION 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
F6454744: Screenshot_20181204_151718.png <https://phabricator.kde.org/F6454744>
"Kopfhörer" is the actual device name, not type, very creative :)
REPOSITORY
R245 Solid
REVISION DETAIL
https://phabricator.kde.org/D17345
AFFECTED FILES
src/solid/devices/backends/fakehw/fakebattery.cpp
src/solid/devices/backends/upower/upowerbattery.cpp
src/solid/devices/backends/upower/upowerdevice.cpp
src/solid/devices/frontend/battery.h
To: broulik, #plasma, bruns, davidedmundson
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181204/1aa5a33e/attachment.html>
More information about the Kde-frameworks-devel
mailing list