maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How do you refresh the media player on N900 (https://talk.maemo.org/showthread.php?t=40180)

fraaaaanka 2010-01-12 11:12

How do you refresh the media player on N900
 
I have albums remaining in the media player view that i have deleted from the music folder ... anyone know a way to manually refresh the list or do i have to wait for my N900 to do it itself?

JonWW 2010-01-12 11:31

Re: How do you refresh the media player on N900
 
In X Terminal type:

tracker-processes --hard-reset
/etc/osso-af-init/tracker.sh start


Given time it should do it by itself.

fraaaaanka 2010-01-12 12:01

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by JonWW (Post 466072)
In X Terminal type:

tracker-processes --hard-reset
/etc/osso-af-init/tracker.sh start


Given time it should do it by itself.

can anyone else confirm this is correct as typing inot xterminal ...hard-reset sounds a bit dodgy to me and i aint got a clue about these things.... and jon you joined jan with only 4 posts which is why my confidence level is low.

cheers, and sorry for doubt jon if you are confirmed as correct

JonWW 2010-01-12 12:41

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by fraaaaanka (Post 466117)
.... and jon you joined jan with only 4 posts which is why my confidence level is low.

Thats fine, the reason I bought the phone is because I like to get under the hood and tinker with things :), I normally fix XP machines for peolpe and it's been over 20 years since I played havoc with a Unix machine at school :eek:, so the X Terminal brings back some great old memories.

I've done it on my N900 and it works fine, all it does is to shutdown the tracker process and causes the tracker to delete its database, restarting it (if you have the Load Applet installed) you will see the CPU load spike for 10-15 seconds as it starts again and refreshes itself in the background.

Not sure if you need to be root, can't remember. I have placed commands in a file called mediareset on my own phone, and if I need to run it I just type sh mediareset.

Here is the thread I found it on (search for "tracker-processes hard-reset")

javispedro 2010-01-12 13:22

Re: How do you refresh the media player on N900
 
You can run the first command just fine (also "tracker-processes -r", which is the same), it will indeed delete the media player databases.

The second one is not actually needed as just starting the media player application will restart Tracker and recreate the databases while showing a progress GUI (so I guess it's better).

fraaaaanka 2010-01-12 14:03

Re: How do you refresh the media player on N900
 
done it and my N900 has turned itself off and when i turned it back on there is a blue screen saying "internal error at run line JonWW"

only kidding, it worked a treat
cheers Jon

JonWW 2010-01-12 15:01

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by fraaaaanka (Post 466326)
"internal error at run line JonWW"

:eek: :eek:

j-mi 2010-01-29 11:53

Re: How do you refresh the media player on N900
 
How do I refresh media player so it finds the albums which are located in my memory card?

Rob1n 2010-01-29 12:05

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by j-mi (Post 500745)
How do I refresh media player so it finds the albums which are located in my memory card?

I use "tracker-processes --hard-reset" - it's rather a pain, but seems the only way to get tracker sorted out (last time it managed to lose track of all the albums I already had installed, but quite happily indexed the new ones).

j-mi 2010-01-29 14:06

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by Rob1n (Post 500770)
I use "tracker-processes --hard-reset" - it's rather a pain, but seems the only way to get tracker sorted out (last time it managed to lose track of all the albums I already had installed, but quite happily indexed the new ones).

Ok, I used it. But it never ends. I mean, I have waited about 45min, and it's still doing:
Code:

Starting log:
  File:'/hime/user/.local/share/tracker/trackerd.log'
|

But when I go to media player, it shows that it has found 512 music tracks.. It works yes, but hitting ctrl+c ain't the right way to stop the log writing it or is it?

JonWW 2010-01-29 14:11

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by j-mi (Post 500949)
Ok, I used it. But it never ends. I mean, I have waited about 45min, and it's still doing:

The prompt should be returned to you in a second or two, all it does is to kill the media tracker and delete the media database . Re-start the phone and try it again.

Rob1n 2010-01-29 14:19

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by JonWW (Post 500956)
The prompt should be returned to you in a second or two, all it does is to kill the media tracker and delete the media database . Re-start the phone and try it again.

And make sure you've shut down media player before running the command.

rimmbo 2010-04-18 21:10

Re: How do you refresh the media player on N900
 
hey, i have the same problem but the thing is that when i try to start tracker it shows the message "failed" and it wont find any of my songs :s what should i do?

Mike Fr 2010-06-23 10:06

Re: How do you refresh the media player on N900
 
The "tracker-processes -r" worked well for me. Thanks for this thread (and a nice search function on talk).

iHaveNoNames 2010-09-04 05:23

Re: How do you refresh the media player on N900
 
when you are in the listing interface, if you keep your finger on a name more than two seconds, a delete button will appear. Personaly, I often use xterm to go into the video folder and I use the cp command (or sometimes vi) to create a new file (mv doesn't induce a refresh). It seems working fine and by the way, you never directly touch the files systems.

blodybond007 2010-12-12 08:04

Re: How do you refresh the media player on N900
 
reset the tracker-processes but to no effect. media player still cant find any of the files. pr1.2 never game me so much trouble. though the battery life was a pain in the ...

jagsssSTL 2011-03-27 11:11

Re: How do you refresh the media player on N900
 
hey i found the easiest way to refresh media player!!!!


just install cuteExplorer

nd goto following path:

/home/user/.local/share/tracker/

nd delete all 3 files nd thn delete common.db file from data folder.

after doing that restart ur mobile nd start media player.

it will take approximately 3 minutes to refresh media player.


notes:

.local is a hidden directory so just click on the status bar where cute explorer is written nd click on show hidden.

so this is very simple way to refresh ur n900.

5spdvl 2011-03-27 11:14

Re: How do you refresh the media player on N900
 
Ctrl+Shift+X
tracker-processes -r

That's all you need to do, no program required.

blopa 2011-04-02 10:16

Re: How do you refresh the media player on N900
 
Hey, could someone tell me how to set the mp3 path to only the ".sounds" folder? Thanks

retsaw 2011-04-02 10:23

Re: How do you refresh the media player on N900
 
You can't set a specific path for MP3s, but you can change the directories indexed by tracker (which also is used for pictures and videos), to do so edit the /home/user/.config/tracker/tracker.cfg file, or install the Trackercfg program which gives you a nice GUI to edit that file.

blopa 2011-04-02 10:38

Re: How do you refresh the media player on N900
 
Nice!! I'll try that, thank you!! =)

rebelnoob 2011-04-02 11:06

Re: How do you refresh the media player on N900
 
Quote:

Originally Posted by blopa (Post 980278)
Hey, could someone tell me how to set the mp3 path to only the ".sounds" folder? Thanks

you could use someplayer for that.

harsh 2011-09-09 17:46

Re: How do you refresh the media player on N900
 
I used this command but now it is showing every audio file on the device in playlist even the "test" sound file and ring tons.
How can I get rid of it????


All times are GMT. The time now is 19:32.

vBulletin® Version 3.8.8