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)

ddiscodave 2010-10-06 12:57

Re: Optimize your Nokia N900
 
okay everyone i figured this one out once and for all so here it is....

for those of you who want to run this script automatically using ALARMED, you do the following:

1 - open ALARMED
2 - hit new event
3 - from the add event menu select COMMAND EXECUTION from the drop down
4 - select the frequency of occurrences from the secondary drop down (every minute, hourly etc)
5 - in the enter name field, call the event Optimize
6 - in the enter command field, enter the following command
sudo sh /home/opt/scripts/OptimizeN900 (assuming of course that you followed all previous instructions in this here thread and placed the executable in that folder)
7 - save the preset and then save the event then close ALARMED.
8- sit back and watch!


a word of interest..... the script will not open and run. Instead it will run in the background and kill all processes that are in the "line of fire" per the script. I was able to test my work by opening a browser window and then minimizing the open apps. I then set ALARMED to run the script every minute to see if it killed any open processes. it did in fact kill the browser window, hence proving to me that the process runs smoothly in autopilot through the use of ALARMED. I then went back and set it to run each AM at 6.

hope this helps!! thank you to all who assisted me on this one. and most of all a huge thank you to jorgefx for putting this script together and to all other people who contributed to this effort.

mad respect and props fo sho!

Cernunnos 2010-10-06 15:31

Re: Optimize your Nokia N900
 
I try to run the script but all I get is a bunch of lines
Your Nokia N900 is now being optimized
:Not found
:No process killed
:Not found
:No proxcess killed
:No process killeddexer
Killall: cannot kill pid 3008: No such process

ETC

colchaodemola 2010-10-08 11:27

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by jaywink (Post 761793)
I ran this (optimize_2) script yesterday a few times and it worked nicely in recovering swapped memory (dropped from ~180mb to ~40mb).

I then added it to Alarmed for a nightly run. I can tell it has run because swap is now at ~130 after using some apps in the morning. But I also noticed that pressing the power button does not bring up the menu anymore. Physically it works since pressing it twice locks the screen (setting in Tweaker).

Any ideas if this is related to using the optimize_2 script or just a coincidence? And any ideas how I can reactivate the power key menu without restarting? :o)

I have exactly the same problem .. apparently mce is dying ...

ddiscodave 2010-10-10 02:21

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by colchaodemola (Post 836278)
I have exactly the same problem .. apparently mce is dying ...

there are posts about this, actually i have gotten it too but ti seems to work well overall. when a browser is open the script kills the browser. those command lines are normnal

colchaodemola 2010-10-11 12:29

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 837463)
there are posts about this, actually i have gotten it too but ti seems to work well overall. when a browser is open the script kills the browser. those command lines are normnal


Actually i found out the problem ... If the phone is locked and asking for the password and alarmed run the optimize script , then mce will die. My solution was add a line in the optimize script to stop mce and start mce... its working just fine (Must be run with sudo and be sure the stop and start scripts are in the PATH)

sudo stop mce
sudo start mce

mesho123 2010-10-11 15:27

Re: Optimize your Nokia N900
 
can anyone help me ?

what is the best script i have to use to Optimize my n900


manual why or the deb file ?
and please give me the link to the post to download it

" I am new in N900 "



thank you

doonit 2010-10-11 21:00

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 760527)
@geneven, In the future maybe I will post some tips to make the battery last for more than 15hrs of normal use, and then you can try the script;)

YES please!!!

Dany-69 2010-10-11 21:02

Re: Optimize your Nokia N900
 
Guys someone could be interested ;)

http://talk.maemo.org/showthread.php?t=61956

mesho123 2010-10-12 05:45

Re: Optimize your Nokia N900
 
any one help me please ??

renjithza 2010-10-12 08:05

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 834324)
i tried it but it didnt run at least i dindt see it open and run.... is it possible that it ran in the background????

It didnt run for me. I had to add it using visudo, then it worked.


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

vBulletin® Version 3.8.8