maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Optimize your Nokia N900 (https://talk.maemo.org/showthread.php?t=58935)

ed_boner 2012-01-17 01:28

Re: Optimize your Nokia N900
 
hm..maybe i will try..tks guys.

droll 2012-01-17 01:50

Re: Optimize your Nokia N900
 
ram and swap usage goes back up because of tracker. edit the optimize n900 script and comment out the lines that kills the tracker process. then you'll see the difference.

other than this, i also implemented a simple script to monitor swap usage. when more than 600mb of data is written to the first swap partition (i have 2), the script will defrag the swap space.

after 12 days of uptime, the phone feels exactly like it was just rebooted. bloody nice i tell you.

bingomion 2012-01-17 03:03

Re: Optimize your Nokia N900
 
I'm looking at removing the tracker process and replace it with file system apps :)

peter2p 2012-01-17 09:01

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by droll (Post 1151613)
ram and swap usage goes back up because of tracker. edit the optimize n900 script and comment out the lines that kills the tracker process. then you'll see the difference.

I opened the OptimizeN900 script in /usr/local/bin/OptimizeN900

Code:

#Refresh the Tracker process
killall -q trackerd
sleep 1;
killall -q tracker-indexer
sleep 1;

How do i comment out the lines that kills the tracker process,
just remove the second and third line? or remove all 4 or 5 lines?

Storm_11 2012-01-17 09:22

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by peter2p (Post 1151705)
I opened the OptimizeN900 script in /usr/local/bin/OptimizeN900

Code:

#Refresh the Tracker process
killall -q trackerd
sleep 1;
killall -q tracker-indexer
sleep 1;

How do i comment out the lines that kills the tracker process,
just remove the second and third line? or remove all 4 or 5 lines?

See the first line. It has a #. In programming, symbols such as this indicate a comment. Anything following the # in that line will be excluded. Hence why the words "Refresh the Tracker Process" are not executable.

To comment out any lines in that script, put a # in front of it ;) Just be sure on what you are commenting, and that there is nothing else that needs to be commented ;)

droll 2012-01-17 09:33

Re: Optimize your Nokia N900
 
yup, Storm_11 is correct. just put a # symbol in front of it. then try the script again and see what happens.

peter2p 2012-01-17 09:41

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Storm_11 (Post 1151720)
See the first line. It has a #. In programming, symbols such as this indicate a comment. Anything following the # in that line will be excluded. Hence why the words "Refresh the Tracker Process" are not executable.

To comment out any lines in that script, put a # in front of it ;) Just be sure on what you are commenting, and that there is nothing else that needs to be commented ;)

thx Storm for your reply, i don't know anything about programming but if i understood you correctly i have to put a # before both killall processes to stop the tracker.

Edit; copied the file, put a # before all 4 lines, script didn't start.
removed the whole section, same, script won't start, replaced original file, won't start at all so i reinstalled and now it's fine.

Could it be possible that the device needs the ram and swap to operate normal and this script just temporary wipes all unnecessary stuff so it "feels" like a reboot afterwards building up the ram and swap needed? if so, i think it does a great job...

ed_boner 2012-01-17 10:08

Re: Optimize your Nokia N900
 
i had random reboots and when i plug the charger it asks me if i want pc suite or mass mode storade..i am uningstaling this:(

guilledoc 2012-01-17 10:14

Re: Optimize your Nokia N900
 
I'm trying it still now no problem thanks

droll 2012-01-17 13:30

Re: Optimize your Nokia N900
 
i've been using it for a long time. works well. i have KP49 and latest CSSU. on PR1.3.1.

if you're having random reboots or weird behaviour pluging in charger, you may want to check if those problems happen before you run the script.

installing this script doesn't do anything. it's just a script. you still need to run it for it to work its voodoo magic.


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8