Reply
Thread Tools
Posts: 96 | Thanked: 6 times | Joined on May 2010 @ Adelaide, Australia
#101
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?
__________________
CQ CQ CQ de VK5FTDM
 
Posts: 26 | Thanked: 2 times | Joined on May 2010
#102
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

Originally Posted by ossipena View Post
copy this to /usr/share/applications/hildon/

with filename [anything goes].desktop

(and copy the optimize script to /opt/)
 
Posts: 26 | Thanked: 2 times | Joined on May 2010
#103
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....
 
Posts: 214 | Thanked: 256 times | Joined on May 2010
#104
Originally Posted by sjunejo View Post
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's Avatar
Posts: 46 | Thanked: 26 times | Joined on Dec 2007 @ Helsinki
#105
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? )
__________________
http://www.basshero.org
 
Posts: 96 | Thanked: 6 times | Joined on May 2010 @ Adelaide, Australia
#106
Originally Posted by tmarinos View Post
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.
__________________
CQ CQ CQ de VK5FTDM
 
jaywink's Avatar
Posts: 46 | Thanked: 26 times | Joined on Dec 2007 @ Helsinki
#107
Originally Posted by tmarinos View Post
Anyone? Surely someone will know.
"sudo sh MyDocs/MyScripts/optimized_2"
__________________
http://www.basshero.org
 
Posts: 96 | Thanked: 6 times | Joined on May 2010 @ Adelaide, Australia
#108
Originally Posted by jaywink View Post
"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...
__________________
CQ CQ CQ de VK5FTDM

Last edited by tmarinos; 2010-07-23 at 07:27.
 
kevloral's Avatar
Posts: 134 | Thanked: 247 times | Joined on Sep 2009 @ Spain, EU
#109
Originally Posted by tmarinos View Post
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.
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#110
Originally Posted by tmarinos View Post
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.
 

The Following User Says Thank You to AlMehdi For This Useful Post:
Reply

Tags
faster, reflash, refresh, script-a-brick, sell it


 
Forum Jump


All times are GMT. The time now is 08:30.