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)

peochiu 2010-08-17 15:50

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by dana.s (Post 760415)
could you paste the code please

This is the code of "OptimizeN900"

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


--------
Will this script optimize N900?
I don't thinks so.

Process should be managed by operating system.
If you don't like a process
Just don't start it.
Not Kill it,unless it crashed.

mangal_sk8erboy 2010-08-17 19:04

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 788854)
I think there is a problem with the file you downloaded. The script isn't working, is not doing anything. What version did you use?

the 1st one in the thread.
Optimizen900

mangal_sk8erboy 2010-08-17 19:21

Re: Optimize your Nokia N900
 
aha..wait up, does the whole phone spazz out for a second and then comes back to life ?
i think ive downloaded another version of optimizen900
it says "now your phone is EXTRA optimized"
ill check it out now..
il wait for a few days n see if it works.

yanness 2010-08-17 20:07

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by noipv4 (Post 762801)
Before running Optimize. The N900 had become sluggish and audio was stuttering.

hi noipv4, i have noticed that you have really large swap. Could i know how did you make this happen and what are the benefits?

Cheers

RafaLL92 2010-08-17 20:40

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mangal_sk8erboy (Post 787870)
hey guys i dont think this script works for me.
this is what it says.
/home/user # sh MyDocs/Optimizen900
: not foundmizen900: line 2:
Your Nokia N900 is being Optimized
: not foundmizen900: line 4:
: no process killed
: not foundmizen900: line 7:
: no process killed
: no process killeddexer
: not foundmizen900: line 11:
killall: cannot kill pid 3998: No such process
: no process killed
: not foundmizen900: line 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 foundmizen900: line 25:
: no process killedktop
: no process killedtus-menu
: no process killed
: not foundmizen900: line 32:
: no process killed
: no process killedenderer
: not foundmizen900: line 36:
Your Nokia N900 is now Optimized!
/home/user #
/home/user #

dyu think my n900 is optimized?
does anyone know a fix for this?

Same happens in my case meaning that the script does not seem to work for me...
What could I have done wrong?

Rob1n 2010-08-18 07:53

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by RafaLL92 (Post 789754)
Same happens in my case meaning that the script does not seem to work for me...
What could I have done wrong?

As you're getting errors even before the first echo statement, I'd guess that you've saved the file in DOS format, not in UNIX format. You should be able to convert it using either sed/tr (either of the following two lines - the ^M is generated by pressing Ctrl-V followed by Ctrl-M):
Code:

tr -d '\r' < DOS_file > UNIX_file
sed 's/^M//' DOS_file > UNIX_file


nebel 2010-08-18 08:34

Re: Optimize your Nokia N900
 
I dont read through the whole threat, but why are you not sending HUP to the processes, instead of killing them and hoping they get restarted 'by it self' (watchdog?).

fpp 2010-08-18 11:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Rob1n (Post 787857)
Why are you switching to root & then back to user? You can just run step 3 directly.

One reason could be that dsmetool is not in the path when you run as plain "user" (you need to use /usr/sbin/dsmetool), but is found in the path after "su user" from root.

A third method could be to run "dsmetool --user=user" from root.

mangal_sk8erboy 2010-08-18 13:04

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by yanness (Post 789728)
hi noipv4, i have noticed that you have really large swap. Could i know how did you make this happen and what are the benefits?

Cheers

i THINK he used a class 6 memory card and partitioned it as swap memory..
i would also like to know if its useful.

maurelio79 2010-08-18 14:19

Re: Optimize your Nokia N900
 
But a simple swapoff && swapon, could be give some performance in your opinion?
Regards.


All times are GMT. The time now is 03:00.

vBulletin® Version 3.8.8