Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Apr 2010
#41
Originally Posted by JorgeFX View Post
One question... Did you guys unzip the script??
yes it is unzipped so that's why i mentioned "OptimizeN900 file" NOT OptimizeN900.zip
 
Posts: 193 | Thanked: 92 times | Joined on May 2010 @ galveston, tx
#42
Added the drop cache routines too, for even more optimized memory recovery.

#!/bin/sh

echo Your Nokia N900 is being Optimized

#Refresh the Audio Process to avoid audio glitch
killall pulseaudio

#Refresh the Tracker process
killall trackerd
killall tracker-indexer

#Refresh the browser MicroB
killall browser browserd

#Refresh of the most common applications and UIs
killall Calendar
killall osso_calculator
killall camera-ui
killall rtcom-call-ui
killall modest
killall rtcom-messaging-ui
killall image-viewer
killall osso_notes
killall osso-addressbook

#Refresh the all UI Hildon, menus and bars.
killall hildon-desktop
killall hildon-status-menu
killall systemui
#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home

#Refresh other processes
killall tonegend
killall mafw-gst-renderer

#drop Caches -- added by noipv4
#echo 1 > /proc/sys/vm/drop_caches
#echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches

echo Your Nokia N900 is now Optimized!

Last edited by noipv4; 2010-07-22 at 10:38.
 

The Following 3 Users Say Thank You to noipv4 For This Useful Post:
Posts: 193 | Thanked: 92 times | Joined on May 2010 @ galveston, tx
#43
Here's the new file attached for your convenience.
With lots of thanks to the author of this thread
Attached Files
File Type: gz optimized_2.gz (482 Bytes, 531 views)

Last edited by noipv4; 2010-07-22 at 10:38.
 

The Following 3 Users Say Thank You to noipv4 For This Useful Post:
Posts: 195 | Thanked: 16 times | Joined on Feb 2010 @ Switzerland
#44
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/)
This works perfect - thx for that..
__________________
(n900 _Switzerland)
 
Posts: 214 | Thanked: 256 times | Joined on May 2010
#45
Originally Posted by noipv4 View Post
Added the drop cache routines too, for even more optimized memory recovery.

#drop Caches -- added by noipv4
#echo 1 > /proc/sys/vm/drop_caches
#echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches
Thanks, but read this http://talk.maemo.org/showpost.php?p...8&postcount=25
 

The Following User Says Thank You to JorgeFX For This Useful Post:
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#46
Re on:

Code:
#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home
You might try experimenting with following command (ran as user, not root):

Code:
/usr/sbin/dsmetool -k /usr/bin/hildon-home && /usr/sbin/dsmetool -t /usr/bin/hildon-home
This is "clean" way of restarting hildon-home (could be also used for other system processes, not sure) and will keep widgets in place.

Otherwise, good stuff, I was thinking something similar myself. Haven't tested it yet, but as my N900 is now ~4 days of uptime, I might give it a shot very soon :)
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-07-22 at 11:29. Reason: Typo
 

The Following 4 Users Say Thank You to evad For This Useful Post:
Posts: 193 | Thanked: 92 times | Joined on May 2010 @ galveston, tx
#47
Originally Posted by evad View Post
Re on:

Code:
#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home
You might try experimenting with following command (ran as user, not root):

Code:
/usr/sbin/dsmetool -k /usr/bin/hildon-home && /usr/sbin/dsmetool -t /usr/bin/hildon-home
This is "clean" way of restarting hildon-home (could be also used for other system processes, not sure) and will keep widgets in place.

Otherwise, good stuff, I was thinking something similar myself. Haven't tested it yet, but as my N900 is now ~4 days of uptime, I might give it a shot very soon
Would it be too much to request you to please post a conky image after 4days of usage?

I wanna compare the swap usage with mine. My phone crashed yesterday (3 days uptime), with 250MB Swap space usage. I could
feel the sluggishness, and was anticipating something like that.

Thanks
 
Posts: 15 | Thanked: 9 times | Joined on Jul 2010
#48
noob question guys, I keep getting the "cant open" error for this one... I have already backread from the first page of the thread to know if I did miss something, but still the error persists....

what I did was this.... downloaded the file from my desktop... then unzipped it, then I copied the file from the zip to my N900 which is connected through usb on my desktop... I just copied it on the internal memory and not inside any folders whatsoever...

Now when I open xterminal, I first enter sudo gainroot since as far as I know it is how I can run the command as root... so after the sudo gainroot I would enter the command

sh OptimizeN900

and I would receive the error that I cant open the OptimizeN900...

any help guys? Thanks!
 
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#49
Originally Posted by noipv4 View Post
Would it be too much to request you to please post a conky image after 4days of usage?

I wanna compare the swap usage with mine. My phone crashed yesterday (3 days uptime), with 250MB Swap space usage. I could
feel the sluggishness, and was anticipating something like that.
Screenshot attached, however it might not be the best example, as my N900 usage pattern has recently changed a bit and I don't use it *that* much for time being - especially for general web browsing, which tends to bloat swap space very quickly.

A thing very helpful to determine which apps/processes are leaking memory, ergo bringing performance down are endurance snapshots. I've been collecting these for a while and it was surprising to see some processes so heavily leaking memory over time. Thankfully, some of these leaks were fixed in PR1.2, but some don't and hopefully will get fixed in next firmware release.

Endurance snapshots are bit confusing to setup and start with, but definitely worth trying, I found it very useful at least. http://wiki.maemo.org/Documentation/...5/sp-endurance
Attached Images
 
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________
 

The Following 2 Users Say Thank You to evad For This Useful Post:
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#50
Originally Posted by jupacabra View Post
noob question guys, I keep getting the "cant open" error for this one... I have already backread from the first page of the thread to know if I did miss something, but still the error persists....

what I did was this.... downloaded the file from my desktop... then unzipped it, then I copied the file from the zip to my N900 which is connected through usb on my desktop... I just copied it on the internal memory and not inside any folders whatsoever...

Now when I open xterminal, I first enter sudo gainroot since as far as I know it is how I can run the command as root... so after the sudo gainroot I would enter the command

sh OptimizeN900

and I would receive the error that I cant open the OptimizeN900...

any help guys? Thanks!
You need to go to the folder of the Optimize900 script. You could write "find /home |grep Optimize" to find what folder it is in. Then use "cd /to/that/folder/" and "sh Optimize900".
 

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 18:55.