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)

ZShakespeare 2010-07-22 21:42

Re: Optimize your Nokia N900
 
I reboot every night before I plug it in to charge. Hope this helps.

PradaBrada 2010-07-22 21:45

Re: Optimize your Nokia N900
 
I move away from the mic to breathe in

JorgeFX 2010-07-22 21:55

Re: Optimize your Nokia N900
 
hahaha:p some people don't have this kind of problem but there are a lot that does. If you are lucky and you don't need to make anything to gain speed after 4 days of use, then thank GOD for that. Meanwhile, other people have problems, and we try to solve it somehow.

P.D.: Not because you have food everyday on your table means that other people have it too;) GOD Bless You ALL!:D

ZShakespeare 2010-07-22 22:04

Re: Optimize your Nokia N900
 
The only god I worship is Richard Stallman, and he has nothing to do with starving chidren aside from maybe stealing their food.

PradaBrada 2010-07-22 22:18

Re: Optimize your Nokia N900
 
I worship George Carlin, but I don't pray to George :) I wouldn't want to presume on our friendship, its not polite

You know who I pray to? Joe Pesci

geneven 2010-07-22 22:24

Re: Optimize your Nokia N900
 
Please shut up, off-topic posters.

Some apps (example: Omweather and that Fcamera app) ask you to reboot before using them after installing. Would this program make rebooting unnecessary?

ZShakespeare 2010-07-22 22:32

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by geneven (Post 761427)
Please shut up, off-topic posters.

Some apps (example: Omweather and that Fcamera app) ask you to reboot before using them after installing. Would this program make rebooting unnecessary?

Too ba we can't optimize your posting.

msa 2010-07-22 22:55

Re: Optimize your Nokia N900
 
you should make a little app from that!
like adding a widget that you click and it asks to "refresh" your n900 (or just do it without asking)

JorgeFX 2010-07-22 23:41

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by msa (Post 761466)
you should make a little app from that!
like adding a widget that you click and it asks to "refresh" your n900 (or just do it without asking)

Look at this:
http://talk.maemo.org/showpost.php?p...8&postcount=31 :)

javispedro 2010-07-22 23:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by geneven (Post 761162)
I think that the theory is that rebooting uses a lot of battery life.

Of course it does. Restarting half the daemons also uses a lot of battery life. Specially tracker.

(which is also the main reason rebooting uses battery -- it's not like it has to spin down / spin up disks).

JorgeFX 2010-07-22 23:47

Re: Optimize your Nokia N900
 
@javispedro, restarting half the daemons at least is not so battery hungry than restarting all the SO. We just restart the processes that seem to have taken much memory

humble 2010-07-23 00:04

Re: Optimize your Nokia N900
 
I have not read haft the replies on here. but here we go

My Observation:
Boot time 13hr
Battery 5%
3G all day(i know its bad for the batt):D

I play music all day (FM transmitter)i forget it on sometimes.. but out of 13hr about ~8hr of music:D
5 Calls
4 SmS
Wifi at home and at work total ~1hr

i have Power kernel with Ideal settings... low 500 high 850

battery is about the same i cant tell the difference

but i used the script 2wice and guess what it works for me (it could be the placebo affect) but thank you sir for sharing! and GOD Bless You too :)

javispedro 2010-07-23 00:16

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 761512)
We just restart the processes that seem to have taken much memory

And do you have any data from which the "processes to be killed" list was based upon? cause the issue may not be related to any single process' leak, from all i know.

JorgeFX 2010-07-23 00:32

Re: Optimize your Nokia N900
 
@humble, thanks for your commentary ;) If you let the system longer without running the script, maybe 2days and later you run it, you will notice more the difference ;)

humble 2010-07-23 00:41

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 761556)
@humble, thanks for your commentary ;) If you let the system longer without running the script, maybe 2days and later you run it, you will notice more the difference ;)

Thanks if you would have released it 2 days ago.. jk:D

JorgeFX 2010-07-23 00:44

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by javispedro (Post 761544)
And do you have any data from which the "processes to be killed" list was based upon? cause the issue may not be related to any single process' leak, from all i know.

Some processes I have been following up, and other based on bugs that all have been posting here :)

The list was longer, but some processes are not necessary to restart.

Like the drop_caches thing:
sudo gainroot
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches

This does not seem to have any effect on the system by itself. That is why I did not include it, because I have been testing process by process and solution by solution and I made the script based on the most effective. I have been testing for about 2 months and I think the script is mature like it is. But, always is good to be update:). I continue the testing still, only now all of you are testing with me :)

JorgeFX 2010-07-23 00:47

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by humble (Post 761560)
Thanks if you would have released it 2 days ago.. jk:D

hahaha, sorry, I've been having some problems with the internet and yesterday it fixed, well, more or less...

gabby131 2010-07-23 01:27

Re: Optimize your Nokia N900
 
@jorgefx

yo! thanks for this trick! everything feels a bit snapier! (i notice a big change when using firefox).

i made a QBwidget with the command to one-tap-optimize my n900 and it really works!!!

m0da 2010-07-23 01:34

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by gabby131 (Post 761587)
@jorgefx

yo! thanks for this trick! everything feels a bit snapier! (i notice a big change when using firefox).

i made a QBwidget with the command to one-tap-optimize my n900 and it really works!!!

Would you mind pasting the QBW export here?
a text file would work even better.

Thanks

JorgeFX 2010-07-23 02:02

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by m0da (Post 761590)
Would you mind pasting the QBW export here?
a text file would work even better.

Thanks

I support the idea. @gabby131, could you post it here? The idea is to share and make things easier for everyone;)

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.

tmarinos 2010-07-23 09:33

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by AlMehdi (Post 761848)
You have the older rootsh v1.5 installed. You need rootsh v1.8 laying in extras-devel to be able to use sudo.

Negative. I have 1.8 installed.

tmarinos 2010-07-23 09:40

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by kevloral (Post 761829)

Um looked at that, didn't quite understand it. Can someone please explain it to me?

James_Littler 2010-07-23 09:57

Re: Optimize your Nokia N900
 
it's so you don't have to run as root, meaning you can use the command in alarmed without using sudo

(I had the same problem with sudo asking for a password)

First extract OptimizeN900 and copy to you N900 (I copied to Downloads)

Then go into xterm and run the following code
Code:

root
Code:

mkdir /opt/scripts
makes the directory 'scripts' within 'opt'

Code:

cp /home/user/MyDocs/Downloads/OptimizeN900 /opt/scripts
Copies the OptimizeN900 file from 'Downloads' to 'scripts'

Code:

chown root /opt/scripts/OptimizeN900
Code:

chmod 4755 /opt/scripts/OptimizeN900
After you've done that you can execute the script by typing
Code:

/opt/scripts/OptimizeN900
You can also put this command into alarmed

AlMehdi 2010-07-23 10:04

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by tmarinos (Post 761930)
Negative. I have 1.8 installed.

Then sudo should work.

James_Littler 2010-07-23 10:10

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by AlMehdi (Post 761968)
Then sudo should work.

It doesn't work for me either so it's not an isolated incident.

Just brings up a prompt asking for password, that's with 1.8 definitely installed (fresh flash yesterday)

AlMehdi 2010-07-23 10:15

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by James_Littler (Post 761971)
It doesn't work for me either so it's not an isolated incident.

Just brings up a prompt asking for password, that's with 1.8 definitely installed (fresh flash yesterday)

Strange.. maybe something did not install correctly to the sudoers file or something. The only other thing that comes to my mind is that i have bash3 installed.

Well.. the kevlorialian way should also work.

evad 2010-07-23 10:19

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mssusa (Post 761192)
Thanks JorgeFX.

My Linux skills are a bit rusty (they weren't much to begin with :D), but aren't there some tools/programming tools to monitor the processes and find the leaks. I would install and report the logs for anything that can help pinpoint the culprits.

Yes, there is: http://wiki.maemo.org/Documentation/...5/sp-endurance

Quote:

I do not use my N900 excessively, and almost never use the browser. I do not suffer much slow downs or unresponsiveness (except from the phone app which is always slow and stupid anyway). My current uptime is 21 days and battery life is very reasonable.
Indeed. I've recently got another mobile phone to play with, so N900 went a bit on side over past few weeks, yet it still holds my default SIM card for calls/sms/etc. Nonetheless, not using N900 that much, especially browser over 3G, shows that battery is able to keep device up for full 24 hours at least.

gabby131 2010-07-23 10:23

Re: Optimize your Nokia N900
 
@all

so here's what i did usin qbwidget,

on the add cmd option, type on the command,

Code:

echo "sh /location/of/the/file" | sudo gainroot
OK hope this helpz

EDIT: if your doubtful of working, try doing a test, on the qbwidget option, at the results portion, dont make the text "hidden" (to see the open & exit code) then save.

On the qbw, the texts "root shell enabled" "your n900 is being optimized. ." and "your n900 is now optimized" should appear as you tap the widget.

chemist 2010-07-23 10:33

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 761380)
I agree! Like I said on this post: http://talk.maemo.org/showpost.php?p...0&postcount=30
It will NOT fix the bugs that NOKIA should fix, but it helps

It does if you do not use any third party apps, as I said previously; the real performance drain is within hildon-home for me caused by leaking python or other stuff eating RAM...


Reboot is no option as you loose 50-150mAh, depends on the state.

This script DOES NOT restart anything yet. What it does is it kills processes and hopes the watchdog starts them again. (you know the "bad idea" commercials?)

kureyon 2010-07-23 14:16

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by geneven (Post 761427)
Please shut up, off-topic posters.

+1

Quote:

Some apps (example: Omweather and that Fcamera app) ask you to reboot before using them after installing. Would this program make rebooting unnecessary?
No. fcamera requires reboot because it replaces some kernel modules. Not sure why Omweather needs reboot though, that always bugs me - maybe written by ex-Windows programmers :)


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

vBulletin® Version 3.8.8