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)

Rob1n 2010-07-23 15:04

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by kureyon (Post 762259)
Not sure why Omweather needs reboot though, that always bugs me - maybe written by ex-Windows programmers :)

I don't think it does need a reboot - it just needs the widget removing from the desktop & re-adding, but a reboot is the simplest way to get that across to the average user.

noipv4 2010-07-24 01:10

Re: Optimize your Nokia N900
 
1 Attachment(s)
Before running Optimize. The N900 had become sluggish and audio was stuttering.

noipv4 2010-07-24 01:12

After running Optimize with cache drop
 
1 Attachment(s)
The n900 feels Smooth and buttery again
Thanks a bunch :) for the script!

noipv4 2010-07-24 01:19

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Dr.Marcial (Post 760970)
maybe this is a nooob question, but putting a # infront of the line does inactivate the command no?
so only echo 3 in this case is being executed?

btw when I ran the script it restarted my theme as well, i was using the Black Plastic theme and it took me back to original blueish water nokia theme, is this a expected effect?

thx for the script, my n900 slows down 80% after a couple of days and its all because of Microb leak, the more i use it the slower the entire system gets.

# will not execute the line
echo 3 > .... drops caches for both 1 and 2

mssusa 2010-07-24 03:30

Re: Optimize your Nokia N900
 
[QUOTE=evad;761980]Yes, there is: http://wiki.maemo.org/Documentation/...5/sp-endurance


:eek:

This is too much / too hard for the end user. How about something that monitors and logs CPU, memory, io, etc. for each process in fine details with timestamps? This way I can at least find what process / operation is being a bully so I can investigate it further?

JorgeFX 2010-07-24 05:53

Re: After running Optimize with cache drop
 
Quote:

Originally Posted by noipv4 (Post 762803)
The n900 feels Smooth and buttery again
Thanks a bunch :) for the script!

Thanks!:D All your comments make me very happy:)
If you see on this http://talk.maemo.org/showpost.php?p...&postcount=122 You can notice that he had 170.40MB of RAM used (71%), and also 189.93MB for Swap Memory used (12%).
After running the script, he posted this http://talk.maemo.org/showpost.php?p...&postcount=123 and now you can notice that he have 140.20MB of RAM used (58%), and 93.13MB for Swap Memory used (6%).
The script lowered the RAM memory on 18%, and the Swap Memory on 50%, based on the numbers above. Don't know but, I think it is working well:rolleyes:

ddiscodave 2010-07-24 06:11

Re: After running Optimize with cache drop
 
Quote:

Originally Posted by JorgeFX (Post 762903)
Thanks!:D All your comments make me very happy:)
If you see on this http://talk.maemo.org/showpost.php?p...&postcount=122 You can notice that he had 170.40MB of RAM used (71%), and also 189.93MB for Swap Memory used (12%).
After running the script, he posted this http://talk.maemo.org/showpost.php?p...&postcount=123 and now you can notice that he have 140.20MB of RAM used (58%), and 93.13MB for Swap Memory used (6%).
The script lowered the RAM memory on 18%, and the Swap Memory on 50%, based on the numbers above. Don't know but, I think it is working well:rolleyes:

okay so now that i am feeling comfy with this install and execution, what is the latest script that Jorge has out? anyone able to provide the file?

JorgeFX 2010-07-24 06:44

Re: After running Optimize with cache drop
 
Quote:

Originally Posted by ddiscodave (Post 762908)
okay so now that i am feeling comfy with this install and execution, what is the latest script that Jorge has out? anyone able to provide the file?

Only the first post. The other file only adds one line but it is useless on this script, I had tested the script for months and that line by itself does not make any difference, so, in the university told me "if you can do it with 100 line, then DON'T do it with 500 lines, stay simple":cool:

Anyway, this is the first post http://talk.maemo.org/showpost.php?p=760387&postcount=1
and this is the other file http://talk.maemo.org/showpost.php?p...4&postcount=43

Soon I will be updating the script with some suggestions I have seen, but It may last one or 2 weeks because I have to test every script to the limits to see if after 7, 10 o 15 days of use it develop any problem. So, please be patient. 2 months of test for only one script is a lot, the script is very mature as I posted first, thank GOD. Feel free to try it;) and please write us back with your results and experiences. Meanwhile, as I always say, GOD Bless You ALL!:D

rolan900d 2010-07-24 14:26

Re: Optimize your Nokia N900
 
When i run the script it states that it is optimized but in all lines there was also the messages 'nothing was changed or killed'...

Am I doing something wrong?

q8phantom 2010-07-24 15:03

Re: Optimize your Nokia N900
 
First, Thank you a lot my friend for the script, I have an idea to make things simpler and easier you could do the following :
Download the script and have in in your Root N900 Folder
excute this command in terminal :

Dont use spaces in what ever you want
Code:

mv ~/MyDocs/OptimizeN900 ~/<whatever you want easy to remember>
then everytime just run the terminal and
Code:

$sh <whatever you want easy to remember>
if you want to get the file back to n900 root
Code:

$mv ~/<whatever you want easy to remember> ~/MyDocs/OptimizeN900
Example :

Code:

mv ~/MyDocs/OptimizeN900 ~/optimize
then I can directly use this command when I open the terminal

Code:

$sh optimize

ivnvir 2010-07-24 15:11

Re: Optimize your Nokia N900
 
There's no modification since the zip on the first page?

gabby131 2010-07-24 15:49

Re: After running Optimize with cache drop
 
Quote:

Originally Posted by JorgeFX (Post 762917)
Soon I will be updating the script with some suggestions I have seen, but It may last one or 2 weeks because I have to test every script to the limits to see if after 7, 10 o 15 days of use it develop any problem. So, please be patient. 2 months of test for only one script is a lot, the script is very mature as I posted first, thank GOD. Feel free to try it;) and please write us back with your results and experiences. Meanwhile, as I always say, GOD Bless You ALL!:D

so this script will get even better?

awesome! i have a 15mb drop of RAM usage when i run the script via QBW.

and my music no longer stutter when the device is on heavy load.

with my normal use, i notice a slight battery life improvement. (but i dont know if that's because of the optimization)

JonWW 2010-07-24 17:31

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by rolan900d (Post 763270)
When i run the script it states that it is optimized but in all lines there was also the messages 'nothing was changed or killed'...

Am I doing something wrong?

I had this exact problem, it was complaining about empty lines.
I fixed it by editing the file with "Midnight Commader" to correct the bad NewLine/CarrigeReturn charaters. It seems the Linux can get put off by a Microsoft Window style NewLines.
Windows used two characters and Linux/Unix only use one character.
Hope this helps.

lvlonkey 2010-07-24 18:55

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JonWW (Post 763417)
I had this exact problem, it was complaining about empty lines.
I fixed it by editing the file with "Midnight Commader" to correct the bad NewLine/CarrigeReturn charaters. It seems the Linux can get put off by a Microsoft Window style NewLines.
Windows used two characters and Linux/Unix only use one character.
Hope this helps.

can you post this edited file?

evad 2010-07-24 23:08

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mssusa (Post 762854)
Yes, there is: http://wiki.maemo.org/Documentation/...5/sp-endurance


:eek:

This is too much / too hard for the end user. How about something that monitors and logs CPU, memory, io, etc. for each process in fine details with timestamps? This way I can at least find what process / operation is being a bully so I can investigate it further?

This is what sp-endurance pretty much does...

JonWW 2010-07-25 07:27

Re: Optimize your Nokia N900
 
1 Attachment(s)
Quote:

Originally Posted by lvlonkey (Post 763502)
can you post this edited file?

Edited file with Windows style NewLine characters removed
Attachment 12425
After you have downloaded it remove the .txt extension.

moepda 2010-07-25 07:54

Re: Optimize your Nokia N900
 
appreciate you sharing jonWW will try it today :)

jaimex2 2010-07-25 08:02

Re: Optimize your Nokia N900
 
So... whats the difference between my Linux phone and Windows if I have to keep rebooting because of slow downs? :(

kureyon 2010-07-25 08:53

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by jaimex2 (Post 763907)
So... whats the difference between my Linux phone and Windows if I have to keep rebooting because of slow downs? :(

The difference is that wince hangs. Randomly. All the time.

F2thaK 2010-07-25 09:27

Re: Optimize your Nokia N900
 
1 Attachment(s)
Quote:

Originally Posted by James_Littler (Post 761958)
it's so you don't have to run as root, meaning you can use the command in alarmed without using sudo

(I had the same problem with sudo asking for a password)

First extract OptimizeN900 and copy to you N900 (I copied to Downloads)

Then go into xterm and run the following code
Code:

root
Code:

mkdir /opt/scripts
makes the directory 'scripts' within 'opt'

Code:

cp /home/user/MyDocs/Downloads/OptimizeN900 /opt/scripts
Copies the OptimizeN900 file from 'Downloads' to 'scripts'

Code:

chown root /opt/scripts/OptimizeN900
Code:

chmod 4755 /opt/scripts/OptimizeN900
After you've done that you can execute the script by typing
Code:

sh /opt/scripts/OptimizeN900
You can also put this command into alarmed


combined with the above steps, the attached desktop file creates a shortcut for the optimize script!

just extract optimize.desktop file to

/usr/share/applications/hildon

has no icon yet

rolan900d 2010-07-25 13:06

Re: Optimize your Nokia N900
 
Thanks f2thak!

Could you also make one of the script on the top after 2. ===

http://wiki.maemo.org/User:Tanner#Sa...pace_on_rootfs

mangal_sk8erboy 2010-07-25 15:33

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 760387)
Hi everyone:D this time I'm posting what I think is a possible SOLUTION to the anoying problem the Nokia N900 has after 2, 3 or 4 days of continuos use causing the device to slows down till a point we just have to reboot.

I wrote a script the refresh several processes like if you are rebooting your N900 but it does not reboot it or causes sudden battery drain like what happens when you reboot the N900.;)

Just open the X-Terminal and run as ROOT:
sh OptimizeN900


I have been testing it and updating it for several weeks and this could be the final script:)

Please be aware that the screen will show weird stuff but it is normal because the ALL UIs and Hildon are restarting.

Here you can see a screenshot from my own N900 running perfectly well after almost 6 days:)
Attachment 12334

Please tell me if that help you, I hope it does. GOD Bless You ALL!:D

(a little off topic but plz help)
hey!!how come your "Mem:" to the right of "Dio:" is green?mines always red!!
does that mean my phone is unhealthy?
any idea on how to fix that?
mine is red and is constant!!high!

q8phantom 2010-07-25 20:20

Re: Optimize your Nokia N900
 
1 Attachment(s)
If anyone wants the exact same but quit, here I edited the file, I hope the OP don't mind me to edit! :D Thanks for your effort, this is the edited code!
Code:

echo Your Nokia N900 is being Optimized
killall -q pulseaudio
killall -q trackerd
killall -q tracker-indexer
killall -q browser browserd
killall -q Calendar
killall -q osso_calculator
killall -q camera-ui
killall -q rtcom-call-ui
killall -q modest
killall -q rtcom-messaging-ui
killall -q image-viewer
killall -q osso_notes
killall -q osso-addressbook
killall -q hildon-desktop
killall -q hildon-status-menu
killall -q systemui
killall -q tonegend
killall -q mafw-gst-renderer
echo Your Nokia N900 is now Optimized! ;)

This doesn't tell not found neither process not killed! Just tow lines :D

Here is a screen shot after running it!

http://img6.imageshack.us/img6/5836/...0072523105.png

Edit : Removed Kill hildon home, may cause widgets to disappear, thanks for the O.P.

q8phantom 2010-07-25 20:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by f2thak (Post 763942)
combined with the above steps, the attached desktop file creates a shortcut for the optimize script!

just extract optimize.desktop file to

/usr/share/applications/hildon

has no icon yet

Maybe we could add exit command at the end so it exits once everything is done?

rolan900d 2010-07-25 20:47

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by q8phantom (Post 764476)
If anyone wants the exact same but quit, here I edited the file, I hope the OP don't mind me to edit! :D Thanks for your effort, this is the edited code!
Code:

echo Your Nokia N900 is being Optimized
killall -q pulseaudio
killall -q trackerd
killall -q tracker-indexer
killall -q browser browserd
killall -q Calendar
killall -q osso_calculator
killall -q camera-ui
killall -q rtcom-call-ui
killall -q modest
killall -q rtcom-messaging-ui
killall -q image-viewer
killall -q osso_notes
killall -q osso-addressbook
killall -q hildon-desktop
killall -q hildon-status-menu
killall -q systemui
killall -q hildon-home
killall -q tonegend
killall -q mafw-gst-renderer
echo Your Nokia N900 is now Optimized! ;)

This doesn't tell not found neither process not killed! Just tow lines :D

Here is a screen shot after running it!

http://img6.imageshack.us/img6/5836/...0072523105.png

I just donīt get what you are trying to say....
Sorry

q8phantom 2010-07-25 20:59

Re: Optimize your Nokia N900
 
If you try the original script, and this one.
The Original Poster Script:
Kills the process listed, but if one of them is not running and not found then it will display a message, that it's not found, and they will be too many lines.
My edit:
It's exact same script but it's doesn't tell you if the script was not found or something else, So then output is the same every time just the tow lines just like the screen shot!

Both do the exact same job! Like there is one poster telling that he received messages telling him that some process not found! I hope you got it.

Again, Both do exactly the same nothing more or less here!

9000 2010-07-26 03:43

Re: Optimize your Nokia N900
 
Hey guys nice work. Let me give some input to it.

You shouldn't use killall as many of us have been mentioning. For example, `killall browser browserd` would cause the device to reboot, if you don't believe me try running that command repeatedly.

Therefore, you should really properly restart the processes instead of killing them. The following are some examples for your reference:

Code:

stop pulseaudio
start pulseaudio
sh /etc/init.d/tablet-browser-daemon.init restart

I'm planning to rewrite your script with this idea such that the optimization could be done more safely. Stay tune.^^

F2thaK 2010-07-26 03:53

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by q8phantom (Post 764497)
Maybe we could add exit command at the end so it exits once everything is done?

It already exits after running script ......

ddiscodave 2010-07-26 05:42

Re: Optimize your Nokia N900
 
okay i started off by running the original file. when i ran it i got the message that there was nothing to kill. if i read into that correctly i would assume that either the programs that the script references are not running and this script is useless to me OR there is something i am doing wrong where the the script isnt hitting on the supposedly open programs that the script references that should be closed to be able to speed the phone up.

i then figured on the most recent file that quits the script after it runs and i suppose that it is still running the script without killing the programs but just closing afterwards.

am i doing something wrong? i saw that another person had similar issue but i didnt see the response. anything on this would help. thanks !!

9000 2010-07-26 07:54

Re: Optimize your Nokia N900
 
In the process trying a 'safe' way to killing process I literally brick my device by issuing the following command:

Code:

stop xomap
Then I can no longer be able to run anything at all even after rebooting. I've to reflash. -_-

So I guess terminating processes in 'proper' ways is not that safe afterall.

I'll keep researching and update you guys anyway.

JorgeFX 2010-07-26 08:07

Re: Optimize your Nokia N900
 
@q8phantom, thanks!;) This is one good option. For me, I'm better knowing what processes are not restarted because that is how I find useful if one line or another on the script are needed or not. The common for everyone is to have all the processes on this script running for the device to become slow at the point that you want to reboot. THAT is the true need for this script. If anyone do NOT have running much of this processes simply means that you are NOT a heavy user and your N900 is not as useful as you think. Well, that is my personal option

JorgeFX 2010-07-26 08:13

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by 9000 (Post 764909)
In the process trying a 'safe' way to killing process I literally brick my device by issuing the following command:

Code:

stop xomap
Then I can no longer be able to run anything at all even after rebooting. I've to reflash. -_-

So I guess terminating processes in 'proper' ways is not that safe afterall.

I'll keep researching and update you guys anyway.

Thanks for your comments!:)
I see, you are living what I lived for 2 months to have this little script done. MAYBE you are right in something, "terminating processes in 'proper' ways is not that safe afterall". In the process you will experience reboots, you'll have to reflash, you will find a script that apparently works fine but after 6 days of use BOOM!! sudden reboot... That is what I lived for 2 months

Duffer 2010-07-26 08:14

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by 9000 (Post 764909)
In the process trying a 'safe' way to killing process I literally brick my device by issuing the following command:

Code:

stop xomap
Then I can no longer be able to run anything at all even after rebooting. I've to reflash. -_-

So I guess terminating processes in 'proper' ways is not that safe afterall.

I'll keep researching and update you guys anyway.


That's nasty! If I ever meet anybody else with an N900 I now know what to type :D

JorgeFX 2010-07-26 08:15

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Duffer (Post 764929)
That's nasty! If I ever meet anybody else with an N900 I now know what to type :D

hahaha:p don't be evil

dchky 2010-07-26 08:37

Re: Optimize your Nokia N900
 
Stopping the xomap (the X server) should not actually brick your phone, I'd say there was something else fundamentally wrong in play at the time you did this.

Running that command on my N900 simply kills the display, a reboot and all is well again.

9000 2010-07-26 08:46

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by dchky (Post 764939)
Stopping the xomap (the X server) should not actually brick your phone, I'd say there was something else fundamentally wrong in play at the time you did this.

Running that command on my N900 simply kills the display, a reboot and all is well again.

I know someone'd doubt....so did I...

DARE YOU TRY?! XDDD

q8phantom 2010-07-26 10:18

Re: Optimize your Nokia N900
 
Am not that power user, just a student and use this every other day ;p
If you like you could take mine and have it as another option in the first post :D

badboyuk 2010-07-26 12:33

Re: Optimize your Nokia N900
 
so many replies but is this safe to use.....? Are people still using this?

F2thaK 2010-07-26 12:44

Re: Optimize your Nokia N900
 
yup..................

moepda 2010-07-26 13:08

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by moepda (Post 763905)
appreciate you sharing jonWW will try it today :)

@jonWW... tried your version but unfortunately it freezes my phone , screen goes black and only working option is turn off with long press of power button. original version seems ok but yours gives me problems im afraid , cheers anyway though :)


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

vBulletin® Version 3.8.8