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)

joshv06 2010-07-26 14:45

Re: Optimize your Nokia N900
 
Could someone make a widget or something for this, and using the method that 9000 suggested? I would, if I could lol.

JonWW 2010-07-26 14:49

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by moepda (Post 765164)
@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 :)

Now you have rebooted try my version again and see if it works for you this time, could indicate other problems with your phone... let me explain:

There is nothing different about my version instruction wise.
Windows uses Character 13 then Character 10 (Hex 0D 0A) as a new line
Linux Character 10 (Hex 0A) as a new line.
That's the only difference.

For me Linux was adding the Windows Character 13 to each command and as process's names don't have Character 13 at the end of them, no process was found to kill. Hence my version.

Sorry it didn't work for you but as my version is the correct way for Linux to read and clearly it worked for you as processes are been killed on your phone. Judging by your description I would think something else is happening to your phone (so be careful).

I'm thinking that even though this script is a great idea it doesn't cover all problems and I find I still need to reboot, so it should be used with caution.
Perhaps restarting killed processes would be a better way to proceed.
Perhaps even with a sleep time in-between each command to give restarted processes time to recover.
Also changing the order of commands might be helpful; as this script, despite killing hildon-home, which normally sorts out my Media-Player Widget problem, doesn't fix the Media-Player Widget problem, for me at least as I still have to run "killall hildon-home" manually after.

I also have seen my phone, only after using this script, max out the possessor, yet Conky/htop showed NO processes demanding excessive CPU cycles (very strange). cpumem-applet/Conky/htop all showed the CPU running flat out and the phone became warm to the touch and incredibly unresponsive (a minute or two to switch between the only two open apps, email and the browser from the dashboard). Almost pulled the battery as I'm overclocking at 1150Mhz and it took a long time to just activate a reboot.

Anyway I feel I'm heading for a reflash soon...

moepda 2010-07-26 14:56

Re: Optimize your Nokia N900
 
cheers for your reply jonWW must say im somewhat nervous now !!! but if it goes badly wrong fingers crossed reflash should fix ;) will be careful though...

thinking further should post more detail of this, process made screen go black as if locked , using power button would show unlock screen which i could use but once unlocked screen all messed up like dark, if press power button task window shows (turn off,offline mode etc) but was black so unreadable and stuck on screen,if use lock on side of phone only shows messed screen with stuck task window so could only turn off , am wondering if i should wait longer to see if screen restarts as maybe process not turned on yet ?

evad 2010-07-26 15:00

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JonWW (Post 765256)
I'm thinking that even though this script is a great idea it doesn't cover all problems and I find I still need to reboot, so it should be used with caution.
Perhaps restarting killed processes would be a better way to proceed.
Perhaps even with a sleep time in-between each command to give restarted processes time to recover.
Also changing the order of commands might be helpful; as this script, despite killing hildon-home, which normally sorts out my Media-Player Widget problem, doesn't fix the Media-Player Widget problem, for me at least as I still have to run "killall hildon-home" manually after.

My strong suggestion would be instead of mass killall'ing many different apps/processes in a row, identify just those which actually do leak memory and impact performance, and then kill/restart them in right way, ie. with dsmetool or /etc/init.d script where possible, rather than blunt killall.

JonWW 2010-07-26 15:03

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by moepda (Post 765265)
cheers for your reply jonWW must say im somewhat nervous now !!! but if it goes badly wrong fingers crossed reflash should fix ;) will be careful though...

Yeah I know what you mean. Don't know what caused my CPU max out never seen that before, don't know if the CPU has any thermal protection to reboot the phone if it gets too hot.

JonWW 2010-07-26 15:07

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by moepda (Post 765265)
thinking further should post more detail of this, process made screen go black as if locked , using power button would show unlock screen which i could use but once unlocked screen all messed up like dark, if press power button task window shows (turn off,offline mode etc) but was black so unreadable and stuck on screen,if use lock on side of phone only shows messed screen with stuck task window so could only turn off , am wondering if i should wait longer to see if screen restarts as maybe process not turned on yet ?

Mine didn't take long to restart everything, it was also obvious that thing were happening as nothing got stuck and soon the phone was back to normal... or not! :eek:

moepda 2010-07-26 15:09

Re: Optimize your Nokia N900
 
will try another 1 time to see but if fails wont risk again !! although flashing may fix got so many mods to stuff would take forever to get back :(

ddiscodave 2010-07-26 15:56

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 764815)
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 !!


sorry to bug you guys about this but i havent seen it answered yet..... any input would be helpful thanks!

q8phantom 2010-07-26 16:39

Re: Optimize your Nokia N900
 
@ddiscodave
This scripts does Kill programs that are running in the background and refreshing them, Basically, If it doesn't one of these programs, it will say not found.

Don't worry, It's saying not found is good because you are running it alright, The most important thing that it says at the end, Your .. Optimized.

Now you are using it on your system where you still don't need it, But if you open the internet and a lot of sites, and play musics, and all those stuff, then maybe your system will slow down, that you need to do a reboot or restart, this script makes things easier so there is no need to reboot just run this and it will give some type of refresh to your system to be faster and free up some ram and stuff like that.

Now if you want the same script, but a one that even if it didn't find the process it doesn't tell you, check out my post number 143. I hope you got it!

JorgeFX 2010-07-27 06:48

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by q8phantom (Post 765394)
@ddiscodave
This scripts does Kill programs that are running in the background and refreshing them, Basically, If it doesn't one of these programs, it will say not found.

Don't worry, It's saying not found is good because you are running it alright, The most important thing that it says at the end, Your .. Optimized.

Now you are using it on your system where you still don't need it, But if you open the internet and a lot of sites, and play musics, and all those stuff, then maybe your system will slow down, that you need to do a reboot or restart, this script makes things easier so there is no need to reboot just run this and it will give some type of refresh to your system to be faster and free up some ram and stuff like that.

Now if you want the same script, but a one that even if it didn't find the process it doesn't tell you, check out my post number 143. I hope you got it!

Thanks for your comments:)
I have seen many differents behaviours of this script from differents user that have shared their experiences and most of them who have bad experiences have tried an edited script. Don't know what is going wrong on them but my original script have pass very hard tests for 2 months. The only script that I agree is fine is yours for the addition of the "- q" parameter;). Just that the line "killall -q hildon-home" is enabled and that may erase all widgets and that is why it was disabled at first place.

moepda 2010-07-27 08:07

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by moepda (Post 765283)
will try another 1 time to see but if fails wont risk again !! although flashing may fix got so many mods to stuff would take forever to get back :(

tried and same result :( reboot makes no difference so will stick with original file now ,

ddiscodave 2010-07-27 13:08

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 766033)
Thanks for your comments:)
I have seen many differents behaviours of this script from differents user that have shared their experiences and most of them who have bad experiences have tried an edited script. Don't know what is going wrong on them but my original script have pass very hard tests for 2 months. The only script that I agree is fine is yours for the addition of the "- q" parameter;). Just that the line "killall -q hildon-home" is enabled and that may erase all widgets and that is why it was disabled at first place.


i have been using it now for 2 days and i notice that my n900 is nice and smooth now. i look forward to tweaking it a little bit with the variations of the file as the days go on. jorge many thanks for throwing this together!!!

just so you guys know too i notice that many of you are using xterm to make your changes. I simply ftp'd into the phone and mae my changes that way using notepad as well to modify the script when necessary.

hope this helps.

q8phantom 2010-07-27 14:55

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 766033)
Thanks for your comments:)
I have seen many differents behaviours of this script from differents user that have shared their experiences and most of them who have bad experiences have tried an edited script. Don't know what is going wrong on them but my original script have pass very hard tests for 2 months. The only script that I agree is fine is yours for the addition of the "- q" parameter;). Just that the line "killall -q hildon-home" is enabled and that may erase all widgets and that is why it was disabled at first place.

No please, I don't want to lose my widgets, It never happens still, but I'll do remove it even from my post! :D Edited :D

evad 2010-07-27 15:12

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by q8phantom (Post 766556)
No please, I don't want to lose my widgets, It never happens still, but I'll do remove it even from my post! :D Edited :D

For anyone concerned about widgets disappearing from desktop:
http://talk.maemo.org/showpost.php?p...4&postcount=46

q8phantom 2010-07-27 18:24

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 766571)
For anyone concerned about widgets disappearing from desktop:
http://talk.maemo.org/showpost.php?p...4&postcount=46

Thank you, I think I will stick with the original one! :cool: I don't want to restart organizing my widgets, no risk for me! :D

JorgeFX 2010-07-28 05:54

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 766571)
For anyone concerned about widgets disappearing from desktop:
http://talk.maemo.org/showpost.php?p...4&postcount=46

I'm testing this and other methods but killing the processes seems to be the best way "in the practice" even if in theory it isn't.

JorgeFX 2010-07-28 05:55

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by q8phantom (Post 766556)
No please, I don't want to lose my widgets, It never happens still, but I'll do remove it even from my post! :D Edited :D

haahahah:D

JorgeFX 2010-07-28 05:59

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 766426)
i have been using it now for 2 days and i notice that my n900 is nice and smooth now. i look forward to tweaking it a little bit with the variations of the file as the days go on. jorge many thanks for throwing this together!!!

Thanks for your comments!:)
I'm working on other scripts to tweak and safe battery life. I will post it when they are ready, be pacient. I will only post it when I'm sure that it is mature and safe, like this OptimizeN900 script;)

evad 2010-07-28 12:05

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 767362)
I'm testing this and other methods but killing the processes seems to be the best way "in the practice" even if in theory it isn't.

What makes killall method better then?

ddiscodave 2010-07-28 14:33

Re: Optimize your Nokia N900
 
okay now im a little frustrated so if u can offer up some assistance i thank u. im running over 200 processes even after the script is executed and the phone is slow and choppy.

arg!!!!!!

ddiscodave 2010-07-29 01:16

Re: Optimize your Nokia N900
 
to the top

sukumar 2010-07-29 16:34

Re: Optimize your Nokia N900
 
I copied the script as optimzie.sh. I ran following
1. sudo gainroot
2. sh optimize.sh

It ran, but saw following error message

optimize.sh: line 1: : not found
killall: osso_calculator: no process killed
killall: cannot kill pid 2630: no such process
killall:mafw-gst-renderere: no process killed
Your Nokia N900 is now optimized:

I am editing the file with "notes" on n900. I removed all comments and first line !/bin/sh etc

It has these entries
begin of script
killall pulseaudio
killall trackered
killall browser browserd
killall Calendar
killall oss9_calculator
..
...
echo your Nokia N900 is now optimized
END of script

Do you know any problem in my script?

Any clue on what could be the problem.

towhatend 2010-07-29 16:49

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by sukumar (Post 769391)
text.

I dont think its a big deal, you are just not using the processes the script wants to reload.

I donīt use the script, but donīt remove the first line.

sukumar 2010-07-29 18:05

Re: Optimize your Nokia N900
 
yeah. It is working to verify memory savings. I am curious to understand why I got the following error message

optimize.sh: line 1: : not found

There is no empty line. As you explained, I guess other messages are complaining that the processes are not already running to kill them.

I think it is using busybox. Need to find documentation on writing scripts for it.

sukumar 2010-07-29 20:31

Re: Optimize your Nokia N900
 
I just enjoyed reading this long thread. It is good to know other things.

I was editing the file with "notes". I think it is adding empty line. I found that I can as well use vi editor. I did use it and fixed empty line.

I also read in the thread that I get these not found messages since I may not be running all these applications. I am clear now.

Thanks to those who shared.

Only question I have is I have to run 'sudo gainroot' to run the command. If I directly use 'sudo sh otpmize.sh', it is asking password. What is the default password?

slender 2010-07-29 20:49

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 767829)
okay now im a little frustrated so if u can offer up some assistance i thank u. im running over 200 processes even after the script is executed and the phone is slow and choppy.

arg!!!!!!

This might be easy case.

a. Have you installed anything from testing or devel repositories?

If a is true then check the disclaimer of those repositories. You are on your own =) Uninstall all apps from those repositories and see what happens. And please list apps what you have installed.

if a is false then please tell what you have installed from extras and official Nokia repositories.

ddiscodave 2010-07-30 17:12

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by slender (Post 769636)
This might be easy case.

a. Have you installed anything from testing or devel repositories?

If a is true then check the disclaimer of those repositories. You are on your own =) Uninstall all apps from those repositories and see what happens. And please list apps what you have installed.

if a is false then please tell what you have installed from extras and official Nokia repositories.

SLENDER thanks for the response!!

i, like many people, have indeed installled apps from the testing or devel repos.... im not sure what i have taken from those repos though so here is the list of what i have installed on the phone thus far:

EASY PARK
MAHJONG
APPDOWNLOADER
BATLEVEL
CONKY
DIALCENTRAL
ECOACH
EIGHTYONE
ESPEAKCALLER
EXTENDED CALL LOG
FAPN
FLIPCLOCK
FMBOOST
FMMS
FMRADIO
FUELPAD (AWESOME APP BTW)
GLOGARCHIVE
GONVERT
GPXVIEW
HEALTHCHECK
HTOP
INES
JOIKUSPOT
KMPLAYER
LEAFPAD
LIQTORCH
MAEP
MBARCODE
MEDIABOX
MIRROR
MOBILEMAPS9
MSPEDE
MYPAINT
OMWEATHER
ORREY
PETROVICH
PYPIANOBAR
QTPIANOBAR
QUICKPANORAMA
RDESKTOP
RECORDER
QTIRRECO
SPEEDO
SPEEDOMETER (BETTER UI THAN SPEEDO BUT THE SH1T DOESNT WORK NOW AFTER PR1.2)
STOCKTHIS
SYMFONIE
WIFIEYE
ZOUTUBE
ABIWORD
KOFFICE
PYCALLBLOCKER
WPCREATOR
AGTL
ALARMED
ANSEL-A
CLASSIC PRINT
METROMAP
*OPTIMIZE (THIS IS THE SCRIPT WE'RE ALL TALKING ABOUT HERE I JUST ADDED AN ICON)
PYKAKE

WIFISWITCHER
WIFI SIGNAL APPLET
BRIGHTNESS CONTROL

BLACK PLASTIC THEME
LAST.FM SCROBBLER
TWEAKR

JorgeFX 2010-07-30 20:05

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by sukumar (Post 769615)
I just enjoyed reading this long thread. It is good to know other things.

I was editing the file with "notes". I think it is adding empty line. I found that I can as well use vi editor. I did use it and fixed empty line.

I also read in the thread that I get these not found messages since I may not be running all these applications. I am clear now.

Thanks to those who shared.

Only question I have is I have to run 'sudo gainroot' to run the command. If I directly use 'sudo sh otpmize.sh', it is asking password. What is the default password?

It is always good to learn something new:)
Running sudo sh Optimize must be ok without asking for any password. Did you rename the script? did you add the sh extention?

JorgeFX 2010-07-30 20:25

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 770466)
SLENDER thanks for the response!!

i, like many people, have indeed installled apps from the testing or devel repos.... im not sure what i have taken from those repos though so here is the list of what i have installed on the phone thus far:

EASY PARK
.........
LAST.FM SCROBBLER
TWEAKR

I don't see any problem, I have most of this app installed too. I recomend unistalling SPEEDOMETER because you are saying that it does not work after PR1.2
Another thing, did you update MYPAINT? because I read that it causes problems after the last update. Don't know if it is true because I don't use it

sukumar 2010-07-30 22:32

Re: Optimize your Nokia N900
 
I tried both optimize.sh and optimize to run command 'sudo sh optimize'. It is always asking password.

However typing 'sudo gainroot' and 'sh optimize' is working well. Not sure what is password to use 'sudo sh optimize'

ddiscodave 2010-07-30 23:35

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 770667)
I don't see any problem, I have most of this app installed too. I recomend unistalling SPEEDOMETER because you are saying that it does not work after PR1.2
Another thing, did you update MYPAINT? because I read that it causes problems after the last update. Don't know if it is true because I don't use it

jorge thank you for the reply. mypaint seems to be updated and i have not experienced issues running it as of yet. i will uninstall speedometer. i dont have any clue as to why i have so many processes running though even after i run the script. how many do you have running after you run it in your n900?

JorgeFX 2010-07-31 00:14

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by sukumar (Post 770814)
I tried both optimize.sh and optimize to run command 'sudo sh optimize'. It is always asking password.

However typing 'sudo gainroot' and 'sh optimize' is working well. Not sure what is password to use 'sudo sh optimize'

Did you install ROOTSH?

JorgeFX 2010-07-31 00:17

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 770905)
jorge thank you for the reply. mypaint seems to be updated and i have not experienced issues running it as of yet. i will uninstall speedometer. i dont have any clue as to why i have so many processes running though even after i run the script. how many do you have running after you run it in your n900?

The normal amount of active processes on the N900 must be about 200. Any amount higher is because you are running something aditional

pycage 2010-07-31 09:10

Re: Optimize your Nokia N900
 
I noticed when my N900 became laggy it almost always was due to hildon-thumbnailerd running like mad. The optimize script may consider adding a line to renice hildon-thumbnailerd to 19 to make it better.

Something like
Code:

renice 19 `pgrep hildon-thumbnailerd`

sukumar 2010-07-31 11:55

Re: Optimize your Nokia N900
 
Yes. I think I installed rootsh for custom ring tones. I don't know what is exactly rootsh. Is there anyway I can verify if I installed?

I don't know when, but I entered password on n900 while doing something. I guess it is installing custom ring tones.

sukumar 2010-07-31 12:50

Re: Optimize your Nokia N900
 
My unix skills are rusty and did work on it long time back(AIX, Solaris). I never heard sudo command since I only used 'su'.

After researching this is what I understood. I installed rootsh for custom ring tones. So this installed 'gainroot' command in /usr/sbin. I am assuming that gainroot is same as rootsh. sudo is su+ command on same line

I don't think I ever set root password on my n900.

shadowjk 2010-07-31 13:38

Re: Optimize your Nokia N900
 
"sudo gainroot"
is the N900 equivalent of "su".

Need the "rootsh" package from Extras

JorgeFX 2010-07-31 20:08

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by pycage (Post 771206)
I noticed when my N900 became laggy it almost always was due to hildon-thumbnailerd running like mad. The optimize script may consider adding a line to renice hildon-thumbnailerd to 19 to make it better.

Something like
Code:

renice 19 `pgrep hildon-thumbnailerd`

I see your point;), but, renicing processes is not part of this script because that kind of commands you have to run it only one time and you are ready to go all the way. The optimize script is not for run it one time only, it is for run it everytime you have slow downs, and adding that line is redundant. That is why I'm working in another script. Look at this:
http://talk.maemo.org/showpost.php?p...8&postcount=25;)

okhabin 2010-07-31 20:56

Re: Optimize your Nokia N900
 
#!/bin/sh

echo Your Nokia N900 is being Optimized

#Refresh the Audio Process to avoid audio glitch
killall pulseaudio

#Refresh the Tracker process
killall trackerd
killall tracker-indexer

#Refresh the browser MicroB
killall browser browserd

#Refresh of the most common applications and UIs
killall Calendar
killall osso_calculator
killall camera-ui
killall rtcom-call-ui
killall modest
killall rtcom-messaging-ui
killall image-viewer
killall osso_notes
killall osso-addressbook

#Refresh the all UI Hildon, menus and bars.
killall hildon-desktop
killall hildon-status-menu
killall systemui
#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home

#Refresh other processes
killall tonegend
killall mafw-gst-renderer

echo Your Nokia N900 is now Optimized! ;)

I think this is inside zip =D

jaywink 2010-08-01 12:16

Re: Optimize your Nokia N900
 
For some reason when I have this script setup in Alarmed for a nightly run, the power button menu does not work. But if I run the script manually, the power button menu is not affected. Weird :) Not running the script from Alarmed anymore but sometimes using it when swapping gets out of hand.


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

vBulletin® Version 3.8.8