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)

tmarinos 2010-07-23 02:21

Re: Optimize your Nokia N900
 
Ok programming gurus, this n00b needs some help.

I have saved the opimized_2 file in MyDocs/MyScripts/

Running the command "sh MyDocs/MyScripts/optimized_2" works in X-Terminal.

What command do I use in Alarmed to make it work as a scheduled task?

sjunejo 2010-07-23 05:29

Re: Optimize your Nokia N900
 
Hi mate I didn't tried this yet but just wanted to know when will be doing the 'sudo gainroot' step in this...wanted to understand the flow of the commands?

Thanks

--

SJunejo

Quote:

Originally Posted by ossipena (Post 760464)
copy this to /usr/share/applications/hildon/

with filename [anything goes].desktop

(and copy the optimize script to /opt/)


sjunejo 2010-07-23 06:00

Re: Optimize your Nokia N900
 
just tested with the desktop shortcut method...but I didn't had any glitches on creen or anything..it should print something like script finished successfully or...started...you know....

JorgeFX 2010-07-23 06:23

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by sjunejo (Post 761749)
just tested with the desktop shortcut method...but I didn't had any glitches on creen or anything..it should print something like script finished successfully or...started...you know....

The desktop shortcut doesn't show you anything because the script was meant to be running from the X-Terminal. If you run it from there you will see that it tells you when it is finished. However, I think your N900 it is not running it because the screen always shows signs of restarting.

I did not post the desktop shortcut, it was an attribution from one of the members. The script needs to be edited to show outputs if you are going to use it like that. I'm not interested in making something like that, I'm more interested in adding a shortcut to the systemui and I will work on that later, first I'm testing other stuff because the script seems to be mature enough like it is:)

jaywink 2010-07-23 06:57

Re: Optimize your Nokia N900
 
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)

tmarinos 2010-07-23 06:58

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 761636)
Ok programming gurus, this n00b needs some help.

I have saved the opimized_2 file in MyDocs/MyScripts/

Running the command "sh MyDocs/MyScripts/optimized_2" works in X-Terminal.

What command do I use in Alarmed to make it work as a scheduled task?

Anyone? Surely someone will know.

jaywink 2010-07-23 06:59

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 761794)
Anyone? Surely someone will know.

"sudo sh MyDocs/MyScripts/optimized_2"

tmarinos 2010-07-23 07:23

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by jaywink (Post 761795)
"sudo sh MyDocs/MyScripts/optimized_2"

Thanks, but I'm not seeing any evidence of it working in Alarmed.

How can I be sure?

When I run the same command in x terminal, I get asked for a password...

kevloral 2010-07-23 07:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 761816)
Thanks, but I'm not seeing any evidence of it working in Alarmed.

How can I be sure?

When I run the same command in x terminal, I get asked for a password...

Try this:

http://talk.maemo.org/showpost.php?p...7&postcount=72

Greetings.

AlMehdi 2010-07-23 08:05

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 761816)
Thanks, but I'm not seeing any evidence of it working in Alarmed.

How can I be sure?

When I run the same command in x terminal, I get asked for a password...

You have the older rootsh v1.5 installed. You need rootsh v1.8 laying in extras-devel to be able to use sudo.


All times are GMT. The time now is 06:44.

vBulletin® Version 3.8.8