D21672: [PowerStateMonitor] Be conservative when determining power state
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Sat Jun 8 18:03:47 BST 2019
bruns created this revision.
Herald added projects: Frameworks, Baloo.
Herald added subscribers: Baloo, kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
When the state defaults to AC-powered, the indexer may start some
energy consuming tasks, only to stop these later when the pending
DBus call finishes. Especially the content indexer can take a while
to stop, until the current batch is finished.
In case the DBus call fails AC-powered is assumed, to match the previous
default.
TEST PLAN
unplug AC power
start baloo_file
-> the content indexer no longer processes its first batch
REPOSITORY
R293 Baloo
BRANCH
scheduler
REVISION DETAIL
https://phabricator.kde.org/D21672
AFFECTED FILES
src/file/powerstatemonitor.cpp
To: bruns
Cc: kde-frameworks-devel, #baloo, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190608/135ca87d/attachment.html>
More information about the Kde-frameworks-devel
mailing list