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)

gs1 2010-08-01 13:21

Re: Optimize your Nokia N900
 
Jay, try Alarmed with okhabin's version. Seems to work fine and the power button still works. Haven't had a major N900 jam yet to see how effective it is at clearing up, but I found I lost widgets after hildon-home was restarted in the earlier versions of the script.

Dany-69 2010-08-02 01:56

Re: Optimize your Nokia N900
 
Hi JorgeFX.
Tnx for all your work here ;)

I have a strange problem... using the script .. i obtain this :


Nokia-N900:/# sh refresh
: not foundne 2:
Your Nokia N900 is being Optimized
: not foundne 4:
: no process killed
: not foundne 7:
: no process killed
: no process killeddexer
: not foundne 11:
killall: cannot kill pid 5196: No such process
: no process killed
: not foundne 14:
: no process killed
: no process killedlator
: no process killed
: no process killed-ui
: no process killed
: no process killedaging-ui
: no process killeder
: no process killed
: no process killedssbook
: not foundne 25:
: no process killedktop
: no process killedtus-menu
: no process killed
: not foundne 32:
: no process killed
: no process killedenderer
: not foundne 36:
Your Nokia N900 is now Optimized!
Nokia-N900:/#

(I've renamed rhe script ..)... Where il the problem? :(
It seems that nothing changes o.o neither the hildon desktop restarts itself .. :(

JonWW 2010-08-02 09:53

Re: Optimize your Nokia N900
 
Dany-69 please see my previous post about this problem.

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.

Quote:

Originally Posted by JonWW (Post 763895)
Edited file with Windows style NewLine characters removed
Attachment 12425
After you have downloaded it remove the .txt extension.


minty95 2010-08-02 12:07

Re: Optimize your Nokia N900
 
I am fairly new to the N900 and Linux

I have used the following script 'optimize.desltop' in /usr/share/applications/hildon

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=Optimize
Exec=osso-xterm "sh /opt/scripts/QuitOptimize"
Icon=
X-Window-Icon=
X-HildonDesk-ShowInToolbar=false
X-Osso-Type=application/x-executable

an in /opt/scripts the file named 'QuitOptimize'

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! ;)

I do not get any error messages but I do not see the 'echo Your Nokia N900 is now Optimized message' at the end and I see no changes in the Conky page

Is all well or have i missed something ?

thanks

Dany-69 2010-08-02 12:59

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

Originally Posted by JonWW (Post 772854)
Dany-69 please see my previous post about this problem.

I love you :p
My english isn't good enought to understand what was the problem you described in your post... and looking at the code it seems the same ... but now it work :o
Tnx :)

EDIT: OMG ....the status bar has gone :eek:

pycage 2010-08-02 17:54

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Dany-69 (Post 773025)
EDIT: OMG ....the status bar has gone :eek:

I experienced the same once. It returned eventually. I just played some Angry Birds and after I returned to the desktop, it was there again.

mattiviljanen 2010-08-02 21:22

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Dany-69 (Post 773025)
EDIT: OMG ....the status bar has gone :eek:

A word of warning. While it may work just fine when, pardon me, killing every living creature (killing many system process, some of which are critical), there can be consequences. Temporarily losing the status/menu bar might be the smallest of them.

So, further advice: If you really really need to run this script, please reboot instead. Then find out which application(s) eat up resources, and complain to the maintainer about it, most preferably file a bug. That way the problem will be fixed instead of workarounded (inventing new words here) and the device can be used without tricks, to the fullest.

Still, the script has its use, if the system hangs or some sort. It's sort of "soft reboot". It's not all bad. I'm just afraid of killing 'em all.

JorgeFX 2010-08-03 16:17

Re: Optimize your Nokia N900
 
@Dany-69 and @pycage
That happened because it was still rebooting. Maybe your CPU was still doing something else.

JorgeFX 2010-08-03 16:25

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mattiviljanen (Post 773554)
A word of warning. While it may work just fine when, pardon me, killing every living creature (killing many system process, some of which are critical), there can be consequences. Temporarily losing the status/menu bar might be the smallest of them.

So, further advice: If you really really need to run this script, please reboot instead. Then find out which application(s) eat up resources, and complain to the maintainer about it, most preferably file a bug. That way the problem will be fixed instead of workarounded (inventing new words here) and the device can be used without tricks, to the fullest.

Still, the script has its use, if the system hangs or some sort. It's sort of "soft reboot". It's not all bad. I'm just afraid of killing 'em all.

In a perfect world, that would be the nice way to solve the problem:rolleyes:. But, it is not a perfect world:(. I agree with you, but, it can be maybe 4 or 5 months before one or two bugs get fixed, maybe more, or maybe one week. Meanwhile, this is a little help:).
Like I said on this post: http://talk.maemo.org/showpost.php?p...0&postcount=30
It will NOT fix the bugs that NOKIA should fix, but it helps

masq 2010-08-03 17:45

Re: Optimize your Nokia N900
 
Hi JorgeFX,

You mentioned that you would soon be releasing a one-time script to optimize the N900 performance. Is that still on its way? What kind of things would this script do and what would it fix? Don't mean to rush you but if you can drop a note I'm curious.

I'm running your other script though I haven't noticed a significant difference. Actually the one time I ran it it slowed down my machine a bit but that's probably cause some processes were still doing some initialization stuff in the background. Will try to give some more useful feedback if I notice some consistent behavior (good or bad).

thanks!

tmarinos 2010-08-05 03:54

Re: Optimize your Nokia N900
 
Is anyone getting any real benefit from the optimize script?

I have set the script to run everyday at 5am and I have a QB button setup on my desktop to run the script, but my phone still runs like poo after 4 days.

I just did a restart now after 4 days and 15 hours because it got REALLY slow and unresponsive. After the reboot all was fine again.

So I'm wondering if there is anyone out there using the optimize script who's N900 is still snappy and responsive or just runs plain fine after 4-5 days without a reboot?

fuyoh 2010-08-05 08:15

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 776128)
Is anyone getting any real benefit from the optimize script?

I have set the script to run everyday at 5am and I have a QB button setup on my desktop to run the script, but my phone still runs like poo after 4 days.

I just did a restart now after 4 days and 15 hours because it got REALLY slow and unresponsive. After the reboot all was fine again.

So I'm wondering if there is anyone out there using the optimize script who's N900 is still snappy and responsive or just runs plain fine after 4-5 days without a reboot?

try to run the script from x-terminal and see if it actually optimized.
if you get the message like 'not found', look at JohnWW post.

memoryguy 2010-08-05 10:19

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 776128)
Is anyone getting any real benefit from the optimize script?

I have set the script to run everyday at 5am and I have a QB button setup on my desktop to run the script, but my phone still runs like poo after 4 days.

I just did a restart now after 4 days and 15 hours because it got REALLY slow and unresponsive. After the reboot all was fine again.

So I'm wondering if there is anyone out there using the optimize script who's N900 is still snappy and responsive or just runs plain fine after 4-5 days without a reboot?

My current uptime shows 13.5 days, which is much longer than I usually get. It's still responding well. I don't run the script every day, but rather when it starts to feel like things are going south.

It was getting a little funky last night, skipping and stuttering while playing a podcast, but restarting Panucci seemed to help with that.

chemist 2010-08-05 11:00

Re: Optimize your Nokia N900
 
I am following this thread now for several days and was trying out what happens to the system when running optimize.sh or whatever you call it.

First of all (again) This script does not restart anything and may cause an automatic reboot!

As stated several times, killing system critical processes may make your device reboot because of the watchdog which is actually the process restarting all the processes you kill if they are non-user ones.

Running the script in an easy way is

Code:

sudo ./bin/OptimizeN900
if you have it setup right, the top line should read

Code:

#!/bin/sh
and there is nothing needed like

Code:

sudo sh OptimizeN900.sh
No "sh" up front and no ".sh" at the filename, the top line tells the system how to execute it. If you did put it somewhere else than below MyDocs you may need to make it executable as root by this command first

Code:

chmod 744 OptimizeN900
Then I started thinking about you people blowing it up... the script is bad anyway but extending it with additional "killall processes" stuff will cause the device stay at 600MHz (or whatever you OC people have set) 95% for several 10seconds to start all the bloody stuff you just killed. Doesn't this blow up to consume as much battery as a reboot at some point? Or even more?

You have a missing statusbar? This is cause there is still stuff queued to be started and the hildon-statusbar is not one of the top notches!

It is nice you know your way around with killing processes but please be aware that total n00bs are reading this and have them let a process in D state and they don't know what to do, if it is xorg in D state the only thing you can do is ssh to your device and reboot or pull the battery...

jaimex2 2010-08-05 11:30

Re: Optimize your Nokia N900
 
And now for something completely different, this is a script/command that will make your n900 run like a week of uptime. Useful for when you cant wait a few days to have to reboot the sucker.

<Fork bomb removed. Please do not post malicious code.>

pycage 2010-08-05 20:01

Re: Optimize your Nokia N900
 
The infamous fork bomb. :D

xomm 2010-08-05 23:02

Re: Optimize your Nokia N900
 
Thread moved to Maemo 5 / Fremantle.

The Nokia N900 sub-forum is meant for hardware-specific topics.

JorgeFX 2010-08-06 04:39

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by masq (Post 774534)
Hi JorgeFX,

You mentioned that you would soon be releasing a one-time script to optimize the N900 performance. Is that still on its way? What kind of things would this script do and what would it fix? Don't mean to rush you but if you can drop a note I'm curious.

I'm running your other script though I haven't noticed a significant difference. Actually the one time I ran it it slowed down my machine a bit but that's probably cause some processes were still doing some initialization stuff in the background. Will try to give some more useful feedback if I notice some consistent behavior (good or bad).

thanks!

Hi, that post is old, in that post I was talking about this script. I'm working on another that you only have you run one time but it is not for optimize.

JorgeFX 2010-08-06 04:45

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by memoryguy (Post 776408)
My current uptime shows 13.5 days, which is much longer than I usually get. It's still responding well. I don't run the script every day, but rather when it starts to feel like things are going south.

It was getting a little funky last night, skipping and stuttering while playing a podcast, but restarting Panucci seemed to help with that.

That is the right way to use the script:), only use it when you need it;). I mean, don't be miser, the N900 WILL NOT become more speedy just for running this script 100 times in a row. Your N900 is pretty good already! ;)

JorgeFX 2010-08-06 04:59

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by chemist (Post 776444)
I am following this thread now for several days and was trying out what happens to the system when running optimize.sh or whatever you call it.

First of all (again) This script does not restart anything and may cause an automatic reboot!

As stated several times, killing system critical processes may make your device reboot because of the watchdog which is actually the process restarting all the processes you kill if they are non-user ones.

Yes, it could cause an automatic reboot if you are miser running it. If you run it only when you feel the system is slow you are ok then.

Quote:

Then I started thinking about you people blowing it up... the script is bad anyway but extending it with additional "killall processes" stuff will cause the device stay at 600MHz (or whatever you OC people have set) 95% for several 10seconds to start all the bloody stuff you just killed. Doesn't this blow up to consume as much battery as a reboot at some point? Or even more?
The answer is pretty clear here, NO, just try it and you will see. I challenge you to make a video showing the battery percent before and after running the script, and then same video but rebooting and that way we all can see if you theory about the MHZ at full load taking eating the battery is true. I already know it is not, like most of the people that use this script.

Quote:

It is nice you know your way around with killing processes but please be aware that total n00bs are reading this and have them let a process in D state and they don't know what to do, if it is xorg in D state the only thing you can do is ssh to your device and reboot or pull the battery...
There will always be n00bs reading. How can you prevent it? can you control the internet? Just saying.. Still, GOD bless YOU:D

fpp 2010-08-06 20:20

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mattiviljanen (Post 773554)
That way the problem will be fixed instead of workarounded (inventing new words here)...

That would be "worked around" :-)

chemist 2010-08-09 11:51

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 777368)
Yes, it could cause an automatic reboot if you are miser running it. If you run it only when you feel the system is slow you are ok then.

I ran it once to see if everything returns properly and disabled some things ahead... reboot

Quote:

Originally Posted by JorgeFX (Post 777368)
The answer is pretty clear here, NO, just try it and you will see. I challenge you to make a video showing the battery percent before and after running the script, and then same video but rebooting and that way we all can see if you theory about the MHZ at full load taking eating the battery is true. I already know it is not, like most of the people that use this script.

Challenge? I challenge you to send me back from future... read again
Quote:

but extending it with additional "killall processes" stuff
Oh and when you are done with time-traveling please provide proper battery readings as well... as my battery remains on 0% for about 12h - reboot included... EDIT: found the proper tools

Quote:

Originally Posted by JorgeFX (Post 777368)
There will always be n00bs reading. How can you prevent it? can you control the internet? Just saying.. Still, GOD bless YOU:D

Didn't ask for it did I? Why are people all arrogant when it comes to true honest criticism? And please leave god out of play (my god does not bless people anyway), even the smiley doesn't help it!
I asked to keep the n00bs in mind who are reading this!

Make this script restart anything and we may talk again.

masq 2010-08-12 13:42

Re: Optimize your Nokia N900
 
Hi JorgeFX,

Sorry to not be clear. I was asking about this new script you're working on. What exactly is it supposed to do and how are you progressing on it? Is the point to modify the N900 setting in such a way as to avoid persistent slow-down problems or does it have another goal?

Thanks for the optimize script btw. I don't find I have to run it much but I appreciate the effort you made in providing it nonetheless.

thanks

memoryguy 2010-08-12 13:57

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 777357)
That is the right way to use the script:), only use it when you need it;). I mean, don't be miser, the N900 WILL NOT become more speedy just for running this script 100 times in a row. Your N900 is pretty good already! ;)

Agreed.

By the way, my uptime is 20.5 days now. I have never been able to go this long before without rebooting.

Thanks for a very useful script! For me it's not so much about saving battery but just saving the inconvenience and "embarrassment" of having to reboot my phone. Phones shouldn't need to be rebooted.

(blah blah blah it's not a phone it's a computer blah blah)

memoryguy 2010-08-12 14:01

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by masq (Post 784197)
Hi JorgeFX,

Sorry to not be clear. I was asking about this new script you're working on. What exactly is it supposed to do and how are you progressing on it? Is the point to modify the N900 setting in such a way as to avoid persistent slow-down problems or does it have another goal?

Thanks for the optimize script btw. I don't find I have to run it much but I appreciate the effort you made in providing it nonetheless.

thanks

I am also very interested in that script (not trying to rush you, JorgeFX. Please take your time and release when you feel it is ready).

One of the things I hate about optimization / configuring is that what works well for one person or workload may make things worse for another. So I am very interested to see what JorgeFX comes up with. I'm hoping it means I don't need to bother trying to do it myself :D

TDSii 2010-08-12 15:01

Re: Optimize your Nokia N900
 
1 Attachment(s)
This script is nice but it might reboot your n900 and even worse overheat and drain the battery due to kills!

I added sleep between every kill, now it takes more time but this will make everything to run smoothly.

Download the file attached, i renamed the file to refresh

Janniman 2010-08-12 16:06

Re: Optimize your Nokia N900
 
Quick question...
Is this script better than just rebooting the phone? (other than the inconvenience of course!)
thanks

mooninite 2010-08-12 19:05

Re: Optimize your Nokia N900
 
Folks: This does not "optimize" anything and the thread title is misleading. No kernel or user-space settings are changed.

The script kills all Maemo daemons. Some will restart properly, while others may not. It is far safer to simply reboot your phone.

While the intentions of the author may be good, this script is of little value.

memoryguy 2010-08-12 19:26

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mooninite (Post 784533)
While the intentions of the author may be good, this script is of little value.

I beg to differ. Since I started using this script (optimizing or not) I haven't needed to reboot. It is of value to me as I haven't had to discover that my phone needs rebooting by being unable to answer a call. As used to happen every couple days.

There seems to be a lot of fear-mongering about this script. Is there any actual evidence to back up the claims that it causes all sorts of damage? Or is it all just FUD?

mooninite 2010-08-12 21:17

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by memoryguy (Post 784547)
I beg to differ. Since I started using this script (optimizing or not) I haven't needed to reboot. It is of value to me as I haven't had to discover that my phone needs rebooting by being unable to answer a call. As used to happen every couple days.

You have serious software problems that you need to correct. This script is not your answer.
Quote:

There seems to be a lot of fear-mongering about this script. Is there any actual evidence to back up the claims that it causes all sorts of damage? Or is it all just FUD?
Evidence?
Code:

$ cat OptimizeN900
It is a shell script. A shell script is interpreted string text. Anyone can freely see its contents without needing to be a programmer.

evad 2010-08-13 08:34

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by memoryguy (Post 784547)
There seems to be a lot of fear-mongering about this script. Is there any actual evidence to back up the claims that it causes all sorts of damage? Or is it all just FUD?

The main problem with this script is that it bluntly kills a lot of system processes and applications (without even checking if they're actually running), which itself isn't entirely bad, but is a bit "unclean" way of doing it. There might or might not be side effects of running such mass-killall, so basically ymmv. Earlier in this thread I've suggested better ways of finding out which system processes exactly cause long-term issues with memory and performance, and killing those properly in first place, rather than executing tens of killalls in row.

Tbh, initially I felt fairly enthusiastic about this script, yet finally decided to not run it on my device, as I believe there are better ways of regaining N900's performance.

Scummer 2010-08-13 16:21

Re: Optimize your Nokia N900
 
This is like a story out of the Winblows world.
Oh, the server is not working anymore? Just reboot it, that will fix the problem (NOT).. unthinkable scenario for mission critical unix boxes. And yes, my phone is mission critical ;)

Russianhaxor 2010-08-14 01:08

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 785038)
The main problem with this script is that it bluntly kills a lot of system processes and applications (without even checking if they're actually running), which itself isn't entirely bad, but is a bit "unclean" way of doing it. There might or might not be side effects of running such mass-killall, so basically ymmv. Earlier in this thread I've suggested better ways of finding out which system processes exactly cause long-term issues with memory and performance, and killing those properly in first place, rather than executing tens of killalls in row.

Tbh, initially I felt fairly enthusiastic about this script, yet finally decided to not run it on my device, as I believe there are better ways of regaining N900's performance.

Okay, what are those 'better' ways? :confused:

evad 2010-08-14 01:23

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Russianhaxor (Post 785928)
Okay, what are those 'better' ways? :confused:

Search through my posts in this thread.

JorgeFX 2010-08-14 10:06

Re: Optimize your Nokia N900
 
@masq and @memoryguy.

The other script is about tweaks for the N900 to run better and speedy. But remember, it does not make miracles! Most of the things it includes are tweaks that many have already on their devices, but the script is intended to be use for people that only want to do one click and nothing more;)

JorgeFX 2010-08-14 10:15

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by chemist (Post 780282)
I ran it once to see if everything returns properly and disabled some things ahead... reboot

Oh, you are so smart, you ran it one and your device have so many stupid things that it did not support one little script. More than 70 people disagrees with you. I tested the script for almost 3 months, so please, one time reboot is nothing to be afraid.

Quote:

Challenge? I challenge you to send me back from future... read again
Oh and when you are done with time-traveling please provide proper battery readings as well... as my battery remains on 0% for about 12h - reboot included... EDIT: found the proper tools
Instead of crying and impose or require, why don't you help us to fix all you claim is not working well?
Is very easy to criticize and not to help.

JorgeFX 2010-08-14 10:16

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by memoryguy (Post 784216)
Agreed.

By the way, my uptime is 20.5 days now. I have never been able to go this long before without rebooting.

Thanks for a very useful script! For me it's not so much about saving battery but just saving the inconvenience and "embarrassment" of having to reboot my phone. Phones shouldn't need to be rebooted.

(blah blah blah it's not a phone it's a computer blah blah)

Thanks for your comments, it makes me very happy to know I help:D

JorgeFX 2010-08-14 10:21

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Janniman (Post 784337)
Quick question...
Is this script better than just rebooting the phone? (other than the inconvenience of course!)
thanks

It depends if you have battery and time to reboot. For instance, if I you have to record a 30min video and your device feels slow and you have only 30% battery, my advise is to run the script to optimize everything. That way the device will be more speedy and you didn't waste your battery;)

JorgeFX 2010-08-14 10:29

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 785937)
Search through my posts in this thread.

Hi Evad, I understand your point, but I tested your method and it seems to be more unstable. I always lose all my widgets. Can you explain me what that does?

evad 2010-08-14 10:42

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 786186)
Hi Evad, I understand your point, but I tested your method and it seems to be more unstable. I always lose all my widgets. Can you explain me what that does?

What exactly do you mean? dsmetool way of restarting hildon-home? It works flawlessly for me, ie. I never loose widgets. Anyway, this is not what I only meant, I was referring to sp-endurance I mentioned in my other post.


All times are GMT. The time now is 20:52.

vBulletin® Version 3.8.8