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)

humble 2010-09-11 19:24

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by les_garten (Post 813588)
No matter what I do, your Icon does not show up?

Which is strange, because when I create a desktop file my Icons show up??

A few Question:

1.Are you using any of my previous debs?

2.What's the resolution and name of your icon(s)?(which will tell me where you put them)Edit: And if my desktop file sees your icon

3. lets fix it.. you cant be the only one

Two Request:

1.Are you willing to share your icon? (make things better)

2.Try my attachment please

les_garten 2010-09-11 19:36

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 813596)
A few Question:

1.Are you using any of my previous debs?

2.What's the resolution and name of your icon(s)?(which will tell me where you put them)Edit: And if my desktop file sees your icon

3. lets fix it.. you cant be the only one

Two Request:

1.Are you willing to share your icon? (make things better)

2.Try my attachment please

What I meant was, when I make a desktop file for something, the Icon shows. So I was confused why yours didn't.

I am not using one of your previous versions.

les_garten 2010-09-11 19:47

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 813596)
A few Question:

1.Are you using any of my previous debs?

2.What's the resolution and name of your icon(s)?(which will tell me where you put them)Edit: And if my desktop file sees your icon

3. lets fix it.. you cant be the only one

Two Request:

1.Are you willing to share your icon? (make things better)

2.Try my attachment please

what is the name of your desktop file?

I have two of them.

The first one is the one I made for the original script.

It's been so long though, I don't know which is mine and which is yours?

On another note, how do I extract and view contents of a deb file without installing?

EDIT: My Mistake, I got it. I called mine Optimize N900

and you called yours Script for N900, a bad name in my Opinion, but whatever.

So basically I did see it, my mistake.

kaze.daniel 2010-09-11 19:57

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 813596)
A few Question:

1.Are you using any of my previous debs?

2.What's the resolution and name of your icon(s)?(which will tell me where you put them)Edit: And if my desktop file sees your icon

3. lets fix it.. you cant be the only one

Two Request:

1.Are you willing to share your icon? (make things better)

2.Try my attachment please

your script only reboots my device, the original file i made as XOptmizen900 works fine, but not yours. the app DrLaunch doesnt work either, cant open any app from the desktop, jes config it...

humble 2010-09-11 19:58

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by les_garten (Post 813605)
what is the name of your desktop file?

I have two of them.

The first one is the one I made for the original script.

It's been so long though, I don't know which is mine and which is yours?

On another note, how do I extract and view contents of a deb file without installing?

Just use "Extract Here" with Archive Manager(or any decompression tool)

Quote:

EDIT: My Mistake, I got it. I called mine Optimize N900

and you called yours Script for N900, a bad name in my Opinion, but whatever.

So basically I did see it, my mistake.
Could be easily changed in next release

Fixed the problem with the icon after installation
but need a solution for the shortcut.

humble 2010-09-11 20:07

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by kaze.daniel (Post 813610)
your script only reboots my device, the original file i made as XOptmizen900 works fine, but not yours. the app DrLaunch doesnt work either, cant open any app from the desktop, jes config it...

Could you upload your script?(I'm using the original to the T)=not altered in any way.

Edit: I'm not to familiar DrLaunch:o does it Launch scripts or shortcuts?(and or both)

humble 2010-09-11 20:42

Re: Optimize your Nokia N900
 
2 Attachment(s)
optimizen900-packaged (0.0.6) unstable; urgency=low

* Fix icon refreshing on install

* Changed name of desktop file back to Optimize N900

1 issue still remains.. for shortcut to work you have to switch themes back and forth... EDIT: Or a Reboot

Still looking for solution
Still taking suggestions

shadowz1337 2010-09-12 11:55

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 813629)
optimizen900-packaged (0.0.6) unstable; urgency=low

* Fix icon refreshing on install

* Changed name of desktop file back to Optimize N900

1 issue still remains.. for shortcut to work you have to switch themes back and forth... EDIT: Or a Reboot

Still looking for solution
Still taking suggestions


Hi, is your .deb file taken from here:

http://talk.maemo.org/showpost.php?p...4&postcount=22


because that's awesome since installing a .deb file is much faster and easier. But anyway, currently using the manual way to install as shown in the link above, just wondering if you're using the same.

humble 2010-09-12 15:38

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by shadowz1337 (Post 814054)
Hi, is your .deb file taken from here:

http://talk.maemo.org/showpost.php?p...4&postcount=22


because that's awesome since installing a .deb file is much faster and easier. But anyway, currently using the manual way to install as shown in the link above, just wondering if you're using the same.

Yes, my desktop file is from there.(just minus a few calls that didn't make a difference and 2 things changed in BOLD)

Compare..
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0                       
Type=Application
Terminal=true               
Name=Optimize N900                   
Exec=/bin/sh /usr/local/bin/OptimizeN900       
Icon=optimize


ymartin59 2010-09-13 06:29

Re: Optimize your Nokia N900
 
That script is really a must-have because I think both MicroB and Modest suffers from memory leaks (html rendering and javascript engine ?)
What is your uptime score now ?? :)
Thanks a lot for that job.

chaoscreater 2010-09-13 06:34

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 814181)
Yes, my desktop file is from there.(just minus a few calls that didn't make a difference and 2 things changed in BOLD)

Compare..
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0                       
Type=Application
Terminal=true               
Name=Optimize N900                   
Exec=/bin/sh /usr/local/bin/OptimizeN900       
Icon=optimize




Awesome :)

so by this part:

Quote:

1 issue still remains.. for shortcut to work you have to switch themes back and forth... EDIT: Or a Reboot
do you mean that everytime we want to use the desktop shortcut, we have to switch the themes back and forth first to get it working?? Or do you mean the first time when we add the shortcut to the desktop and it'll require us to do that, and later on we won't have to, so a one-time setup kind of thing??


And are you using the newest OptimizeN900 script? Because i've read somewhere a few pages back that there's a version 2, just slightly improved i think.

humble 2010-09-13 11:04

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ymartin59 (Post 814622)
That script is really a must-have because I think both MicroB and Modest suffers from memory leaks (html rendering and javascript engine ?)
What is your uptime score now ?? :)
Thanks a lot for that job.

I agree, well since I've been moding (trying out different things) the last couple week i haven't kept my device on more then 24hr straight:D but earlier in this thread you can see others results.. some if i can recall right last as long as a couple days/weeks with good performance. No problem:) I didn't invent the script or the desktop.file I just wanted to make a deb (my first) and "contribute" to the community all props to these guy's JorgeFX, ossipena


Quote:

Originally Posted by chaoscreater (Post 814624)
Awesome :)
do you mean that everytime we want to use the desktop shortcut, we have to switch the themes back and forth first to get it working?? Or do you mean the first time when we add the shortcut to the desktop and it'll require us to do that, and later on we won't have to, so a one-time setup kind of thing??

Only the first time (if you don't want to reboot) add later i plan to fix that problem altogether (I know it's simple just need some incite)

Quote:

Originally Posted by chaoscreater (Post 814624)
And are you using the newest OptimizeN900 script? Because i've read somewhere a few pages back that there's a version 2, just slightly improved i think.

No, I didn't know ("there's a version 2") if you could be so kind a give me a link I will gladly look in to it :)

My final goal is to upload it to the repositories, and fix the shortcut issue (minor)

Still looking for solutions & Still taking suggestion.

shadowz1337 2010-09-14 06:23

Re: Optimize your Nokia N900
 
hey humble, i tried your file (v6) and it doens't work. I changed the theme, and i can see the new desktop icon, but when i launched it, the status menu on the top kinda gets screwed up as the operator logo shows all the way on the left and the screen shows distortion for a bit. And when i click the menu, it shows "no applications".

Then, all goes back to normal, but no process actually gets killed, so it didn't actually do anything........


i also tried to reinstall again by deleting everything first, and then install as fresh and reboot the device (instead of changing themes this time) and it still shows the same problem.


And now, when i try to install the individual files manually, it doesn't even work anymore whereas it used to. Any ideas?

humble 2010-09-14 10:44

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by shadowz1337 (Post 815472)
"the status menu on the top kinda gets screwed"

That is a sign that it is working run this....
Code:

killall hildon-status-menu
It will produce the same affect.

Quote:

Originally Posted by shadowz1337 (Post 815472)
when i click the menu, it shows "no applications".

Another sign, run this...
Code:

killall hildon-desktop
It will produce the same affect.

Quote:

Originally Posted by shadowz1337 (Post 815472)
Then, all goes back to normal, but no process actually gets killed, so it didn't actually do anything........

Open browser, contacts, messaging, email and press "Optimize Nokia" these process should be killed.

I have a question for you were you using v2 of of the script?(not my deb)
if so could you give me a link?

Thanks

EDIT: All commands must be run as root

shadowz1337 2010-09-15 02:29

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 815665)
That is a sign that it is working run this....
Code:

killall hildon-status-menu
It will produce the same affect.



Another sign, run this...
Code:

killall hildon-desktop
It will produce the same affect.



Open browser, contacts, messaging, email and press "Optimize Nokia" these process should be killed.

I have a question for you were you using v2 of of the script?(not my deb)
if so could you give me a link?

Thanks

EDIT: All commands must be run as root

hi humble, it turned out that i misread the post that i thought was the update for the v2 of the optimizeN900 script, but it was actually ur post for the .deb file. My bad :P

So basically, i'm still running the same script downloaded from the first post in page 1. The thing is, i've never experienced any of this problem that i currently have atm, the script just executes and closes and i know it works because i always test the Media Player app, and if it closes/terminates then the script obviously works.

But it doesn't exit at all anymore, and i get those problems as mentioned before.


In fact, when i run the script manually through xTerminal, it showed that most of the processes are not found.


BTW, how come your put the file in this location:
Quote:

Exec=/bin/sh /usr/local/bin/OptimizeN900
i thought ur supposed to put it here instead:

Quote:

/opt/
because the manual way to do it (according to ossipena's post) is put it in /opt/, here's the link to his post here:

http://talk.maemo.org/showpost.php?p...4&postcount=22

humble 2010-09-15 11:12

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by shadowz1337 (Post 816495)
i thought ur supposed to put it here instead:
Code:

/opt

Quote:

Originally Posted by humble (Post 808579)
Thanks,

So it was a good idea to leave the first one up there:)

Well 0.2 is for those who would like to see the script in progress from a simple "root" "OptimizeN900".
It beats "root" "cd /opt" "OptimizeN900.sh" by one command:D

In BOLD is why i changed it

and i see i answer everyone else's question but no answers mines:mad: GIVE ME A LINK TO v2 OptimizeN900!

shadowz1337 2010-09-15 11:31

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 816736)
In BOLD is why i changed it

and i see i answer everyone else's question but no answers mines:mad: GIVE ME A LINK TO v2 OptimizeN900!

ahh ic ic....

and i've answered you already, i'll quote it here again. It's a mistake on my part:

Quote:

hi humble, it turned out that i misread the post that i thought was the update for the v2 of the optimizeN900 script, but it was actually ur post for the .deb file. My bad :P

humble 2010-09-15 11:48

Re: Optimize your Nokia N900
 
http://talk.maemo.org/showpost.php?p...4&postcount=43

found it..eazy

locolyric 2010-09-16 03:58

Re: Optimize your Nokia N900
 
for the command in the "alarmed" can i wrote like below?

sudo gainroot;sh OptimizeN900

ddiscodave 2010-09-27 20:32

Re: Optimize your Nokia N900
 
okay i did a search for this and i didnt find anything that was adequate so i apologize in advance if i missed something.

what would be the script to run this in ALARMED? does anyone know?

i have sh /opt/scripts/OptimizeN900 as the command execution but it doesnt work :/

if you can even provide a screenshot I would really appreciate it very much !!

ddiscodave 2010-09-29 02:23

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 827785)
okay i did a search for this and i didnt find anything that was adequate so i apologize in advance if i missed something.

what would be the script to run this in ALARMED? does anyone know?

i have sh /opt/scripts/OptimizeN900 as the command execution but it doesnt work :/

if you can even provide a screenshot I would really appreciate it very much !!

ttt ttt ttt

ddiscodave 2010-09-29 22:22

Re: Optimize your Nokia N900
 
sorry to be a pest about this one but does no one know the command for this? any hel p would be greatly appreciated. thanks so much

Crom 2010-10-03 12:23

Re: Optimize your Nokia N900
 
whats the status on getting this to extras devel?
is there a wiki on how to install for noobs, or do i have to read the whole tread?

ddiscodave 2010-10-04 21:03

Re: Optimize your Nokia N900
 
not in extras.... need to install from a thread here... anyone know how to make it work with alarmed? i need the command//////////

ddiscodave 2010-10-05 12:58

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 833341)
not in extras.... need to install from a thread here... anyone know how to make it work with alarmed? i need the command//////////

Is there anyone who might know the command to make this work automatically using ALARMED?

THANKS =)

Tigerite 2010-10-05 13:20

Re: Optimize your Nokia N900
 
Note, I haven't tested this but I reckon it should be:

Code:

sudo sh /opt/scripts/OptimizeN900

ddiscodave 2010-10-06 00:47

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Tigerite (Post 833778)
Note, I haven't tested this but I reckon it should be:

Code:

sudo sh /opt/scripts/OptimizeN900

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????

humble 2010-10-06 01:30

Re: Optimize your Nokia N900
 
add this to your script
Code:


killall python /opt/alarmed/alarmed.py

you could also try this http://talk.maemo.org/showthread.php?t=63115 to edit :)

EDIT:sry add this to your OptimizeN900 script

ddiscodave 2010-10-06 02:22

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 834340)
add this to your script
Code:


killall python /opt/alarmed/alarmed.py

you could also try this http://talk.maemo.org/showthread.php?t=63115 to edit :)

humble thank you for the response... what does that script do and where do i put it? as a command executioin in alarmed?

humble 2010-10-06 02:34

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ddiscodave (Post 834370)
humble thank you for the response... what does that script do and where do i put it? as a command executioin in alarmed?

no problem, well that line you should add to were ever your OptimizeN900 script is

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 16:36.

vBulletin® Version 3.8.8