Bug 473108 - Baloo should restrict itself to basic indexing when the system is running off a battery
Summary: Baloo should restrict itself to basic indexing when the system is running off...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.108.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-07 12:39 UTC by Neal Gompa
Modified: 2023-09-06 03:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Gompa 2023-08-07 12:39:22 UTC
SUMMARY
Baloo's content indexing mode significantly impairs battery life, making KDE look way more energy hungry than it should be. This is because Baloo goes full throttle regardless of whether the computer is on AC power or battery (either laptop or UPS battery). This behavior is not good for energy conservation and extending the battery life.

Please consider changing Baloo to be responsive to power source modes and power profiles.

OBSERVED RESULT
Baloo does content indexing on battery power, reducing battery life significantly.

EXPECTED RESULT
Baloo should restrict to basic indexing when on battery to conserve power and backfill with context indexing when on AC power.

Perhaps on systems with a mix of performance and efficiency cores (Intel and ARM CPUs when available), Baloo could pin itself to efficiency cores to significantly reduce energy usage while doing full indexing.

Baloo should also switch to basic indexing when the power saver power profile is used.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 38 (KDE Plasma)
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Arch Asahi disables content indexing to conserve energy on battery mode, and we're contemplating pulling this over to Fedora Asahi Remix if there's no fix in sight.
Comment 1 Nate Graham 2023-08-07 14:08:41 UTC
Baloo doesn't index at all while on battery though:

$ balooctl status
Baloo File Indexer is running
Indexer state: Idle (Powersave)

Are you seeing something different?
Comment 2 Bug Janitor Service 2023-08-22 03:45:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-09-06 03:45:29 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!