After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 395803 - Throttle indexer based on power state.
Throttle indexer based on power state.
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
git master
Other Linux
: Normal enhancement
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2007-01-12 14:43 UTC by Adam Schreiber
Modified: 2010-03-16 12:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Schreiber 2007-01-12 14:43:43 UTC
It would be nice if the indexer only ran at full speed when AC power is available.  A throttled mode or a mode that only handles change notifications would be activated when running on battery power.

Power information is available from HAL or from the gnome-power-manager DBus API.  I believe Richard Hughes has said on his blog that he's trying to get his API approved as a freedesktop.org standard.
Comment 1 Gustavo Carneiro 2007-01-12 15:17:18 UTC
Also indexing should be suspended when users are logged in and resumed when all users log out.  And resume while screen is locked, but suspended again when screen is unlocked.

I suggest renaming the bug to "Intelligent control of the indexing process", to make it more generic.
Comment 2 Jamie McCracken 2007-01-12 15:53:42 UTC
(In reply to comment #1)
> Also indexing should be suspended when users are logged in and resumed when all
> users log out.  And resume while screen is locked, but suspended again when
> screen is unlocked.
> 
> I suggest renaming the bug to "Intelligent control of the indexing process", to
> make it more generic.

this could be set with an optional parameter. The problem is that some users (like me) do not leave their machines logged off and powered on or have screen locking
activated.

By all means we should make indexing faster when it is logged off or screen is locked

Comment 3 Martyn Russell 2010-03-11 15:21:56 UTC
Can the reporter of this bug set the _version_ so we can target bugs to work on more easily please. We can also have an idea about if these bugs are likely to be obsolete too.

If you don't set the version, we are less likely to look at them.

Sorry for the spam, but I don't want to say this 88 times on each bug :)
Comment 4 Adam Schreiber 2010-03-13 23:58:43 UTC
Martyn,

I'm not sure which version was in GNOME 2.22, but that was the stable release at the time I made this report.

Adam
Comment 5 Martyn Russell 2010-03-16 12:08:27 UTC
(In reply to comment #4)
> Martyn,
> 
> I'm not sure which version was in GNOME 2.22, but that was the stable release
> at the time I made this report.
> 
> Adam

Hi Adam,

We currently do this actually, (now that I look at the report in more detail). Marking this as fixed.