[FileIndexScheduler] Add new state for Idle on battery
ClosedPublic

Authored by bruns on Jun 2 2019, 10:33 AM.

Details

Summary

When the system is running on battery, the content indexing is suspended
to conserve power. Expose the state for balooctl monitor and
balooctl status:

Press ctrl+c to stop monitoring
File indexer is running
Idle
  (AC power disconnected)
Idle (Powersave)
Indexing modified files
Idle (Powersave)
  (AC power reconnected)
Indexing file content
Indexing: /home/stefan/logs/freenode_#kde-devel.log: Ok
Idle
Baloo File Indexer is running
Indexer state: Idle (Powersave)
Total files indexed: 4561
Files waiting for content indexing: 1

Depends on D21540

Test Plan

run balooctl monitor, unplug/plug AC power

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Jun 2 2019, 10:33 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptJun 2 2019, 10:33 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jun 2 2019, 10:33 AM
ngraham accepted this revision.Jun 2 2019, 11:25 PM

Awesome!

This revision is now accepted and ready to land.Jun 2 2019, 11:25 PM
This revision was automatically updated to reflect the committed changes.