Notices


Reply
Thread Tools
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#1
For those that don't know, tracker is the utility that watches for new media and makes thumbnails of new images on your N900. It has been widely cursed and hated for its poor behavior and can cause sluggish response time while doing its thing -- which it tends to do right when you want to use your N900, like when taking a bunch of photos.

There is a configuration file for tracker in /home/user/.config/tracker/ called tracker.cfg. By default it has quite a few comments that can be helpful in deciphering the settings, but i find i'm still not really sure what the default behavior of tracker is. There's also an app called tracker-cfg that lets you edit these settings with a GUI.

There are three categories you can put individual folders into that determine how tracker treats them (please correct any errors here) (Edit: see this later post for links to more complete descriptions):
  • crawl - scan the folder only when it is first mounted and index any relevant files
  • watch - every time the folder contents change, reindex it
  • don't watch - don't ever index the directory

The way these are specified can be a bit confusing, because for example you specify a root folder to be watched (meaning tracker will automatically watch all its subfolders). It's not clear if it works the same way for the other two lists.

I'd appreciate a description of the behavior if anyone understands it. In particular, i'm wondering what the default rule is for folders not specifically included in any lists. and whether the "do not watch" list is for directory roots or just individual directories.

The current configuration on my N900 is supposed to be not watching a specific directory of web images, but i keep seeing them show up in the images listing after rebuilding the database. (tracker-processes -r)

Some of the other options are a bit confusing as well. Is there better documentation for this somewhere?

Thanks in advance for whatever insights you might have on the inner workings of tracker. I'd like to tame it!
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful

Last edited by Flandry; 2010-09-09 at 16:09. Reason: Added link
 

The Following 7 Users Say Thank You to Flandry For This Useful Post:
quingu's Avatar
Posts: 271 | Thanked: 124 times | Joined on May 2006 @ Aperture Science, Inc.
#2
You should check out the program called tracker-config. It not only lets you set all these parameters manually (thus making tracker actually, y'know, bearable), but it also helps on understanding how it works.
__________________
Handcrafted Ambient / Chillout Music, free to download: nomoton
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#3
Tracker is all open source, so you can check out exactly what's being done from the code (the manual pages are the best place to start). According to the trackerd manual page, all three groups automatically include all (non-hidden) subdirectories.
 

The Following User Says Thank You to Rob1n For This Useful Post:
msa's Avatar
Posts: 909 | Thanked: 216 times | Joined on Nov 2009 @ Bremen, Germany
#4
shouldnt it be so, that it indexes pictures when you open the photo-viewer or movie/song-files when you start the mediaplayer?
 

The Following User Says Thank You to msa For This Useful Post:
Posts: 323 | Thanked: 180 times | Joined on Oct 2009 @ Gent, Belgium
#5
mmmmm
I would like it to index the new pictures/videos AFTER I've shot them, after LEAVING the application that made them. Not during...

In general, while I'm doing the creation, I would want as little other system activity as possible. Real multi-tasking on a limited resource device only goes that far ... Ask Apple and Google.

So while doing time critical stuff, I ideally want all non-critical stuff frozen.
That would help the stuttering while filming.

But that's asking too much I guess ...
 
OVK's Avatar
Posts: 559 | Thanked: 1,017 times | Joined on May 2008 @ Finland
#6
Originally Posted by Netweaver View Post
mmmmm
I would like it to index the new pictures/videos AFTER I've shot them, after LEAVING the application that made them. Not during...

In general, while I'm doing the creation, I would want as little other system activity as possible. Real multi-tasking on a limited resource device only goes that far ... Ask Apple and Google.

So while doing time critical stuff, I ideally want all non-critical stuff frozen.
That would help the stuttering while filming.

But that's asking too much I guess ...
I think that it should be possible to send some kind of suspend/pause command for tracker. This could be trickered by for example when the lens cover is opened (maybe this could be integrated to Lens cover reminder application?). I assume that Camera app is closed source so this functionality probably can not be integrated to camera itself (?).

Are there other non-critical processes than Tracker running that are so resource consuming that they should be stopped too while filming?

(Disclaimer: I am not a developer so this is mostly something that I have been thinking and don't have a slightest idea if this makes really any sense at all... )
 
Posts: 424 | Thanked: 196 times | Joined on Mar 2010 @ Sweden
#7
Something like this:
Pictures get indexed after camera app is closed, the same with videos.
Inside media player there should be a button to chose "Auto Indexing" (index always one) or "Manual Indexing".
When Manual Indexing is chosen you get another button that says "Scan for new media", that triggers the Tracker to index new music and videos. It works that way on Symbian S60 3rd if I dont remember wrong.
 
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#8
Originally Posted by quingu View Post
You should check out the program called tracker-config. It not only lets you set all these parameters manually (thus making tracker actually, y'know, bearable), but it also helps on understanding how it works.
Thanks. I actually mentioned it by name in my post.

It is handy but i uninstalled it when i realized that the default configuration file is actually commented clearly and tracker-cfg is just a wrapper for a single user config file. It is nice to have the options to rebuild database &tc right in the app, but that's also easy to do manually.

Originally Posted by Rob1n View Post
Tracker is all open source, so you can check out exactly what's being done from the code (the manual pages are the best place to start). According to the trackerd manual page, all three groups automatically include all (non-hidden) subdirectories.
Thanks Rob1n. I hear so many complaints about tracker i just assumed it was one of the closed bits of maemo. It does seem unduly hard to set it up to behave as desired, so i'll check out the manual.

One thing you can change that will have very apparent results is increase the throttle. If it's around 10 the slowdown will be much less noticeable.
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
 

The Following 2 Users Say Thank You to Flandry For This Useful Post:
Posts: 323 | Thanked: 180 times | Joined on Oct 2009 @ Gent, Belgium
#9
If I'm filming I'm not interested in getting new email notices ... or IM messages. I want a good steady shot, no dropped frames, maybe even some help from the CPU in non-favorable light conditions.

If the hardware/software implementation is not powerful enough to do all at once, then I think things should be pragmatic.
I do think the Maemo ecosystem is too much desktop Linux driven, actually ahead of it's time, designed for devices with ample resources, allowing the walhalla of real-time multitasking at the expense of user experience and performance of the frontend tasks.

Lets hope Meego has better provisions for preserving User Experience and performance. But honestly, I think better HW is the only thing to keep all running as envisioned during design.
 

The Following User Says Thank You to Netweaver For This Useful Post:
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#10
Here's the man page for the tracker configuration file: http://linux.die.net/man/5/tracker.cfg

Here's the project page: http://projects.gnome.org/tracker

Now that i've read up on it, i'm more curious than ever at some of the options. AFAIK, there's no built-in global search capability in maemo, so all of the file content options in tracker configuration seem pointless, yet not disabled in the default tracker configuration. Does anyone know what use maemo makes of tracker's content indexing besides the very basic task of thumbnailing visual content?
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
 

The Following 2 Users Say Thank You to Flandry For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:49.