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)

evad 2010-08-18 15:51

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by maurelio79 (Post 790548)
But a simple swapoff && swapon, could be give some performance in your opinion?
Regards.

Depends on current swap usage. Swapoff tries to shift swap contents to RAM, so whenever RAM gets overfilled by that, strange things might happen... I wouldn't generally recommend that.

fpp 2010-08-18 20:13

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 787847)
No, it doesn't. I think the key is to run it as user, not root.

3) dsmetool -k /usr/bin/hildon-home; sleep 3; dsmetool -t /usr/bin/hildon-home

My most frequent issue is with hildon-desktop, over time it slowly ramps up its CPU usage and becomes a battery-killer. I haven't been able to determine the exact cause (widget?) yet.

In my tests, the command above has a positive effect in such cases, but doesn't completely correct the problem. On a hunch I tried the exact same idea, but with hildon-desktop instead of hildon-home, and up to now it has proved very effective...

RafaLL92 2010-08-18 20:25

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Rob1n (Post 790119)
As you're getting errors even before the first echo statement, I'd guess that you've saved the file in DOS format, not in UNIX format. You should be able to convert it using either sed/tr (either of the following two lines - the ^M is generated by pressing Ctrl-V followed by Ctrl-M):
Code:

tr -d '\r' < DOS_file > UNIX_file
sed 's/^M//' DOS_file > UNIX_file


Thanks a bunch! Instead of converting the script file on the device I used online dos2unix converter and transferred the file again onto the device - the script worked then :)
Thanks again!

JorgeFX 2010-08-20 13:12

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by Rob1n (Post 790119)
As you're getting errors even before the first echo statement, I'd guess that you've saved the file in DOS format, not in UNIX format. You should be able to convert it using either sed/tr (either of the following two lines - the ^M is generated by pressing Ctrl-V followed by Ctrl-M):
Code:

tr -d '\r' < DOS_file > UNIX_file
sed 's/^M//' DOS_file > UNIX_file


This days another device give me the same problem when I try the script, and the solution was simpler, only open another file with Leafpad and paste all the script. Simpler :D

fadimck 2010-08-21 21:13

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 760436)
Well, I normally use it only when I feel that the OS is getting slow but in general YES, you only have to add an event with this command:

sudo sh OptimizeN900

And you can setup this to run every day overnight. Please, try it and tell us your experiences. Thanks!;)

Thank you Sir

mauron85 2010-08-24 20:27

Re: Optimize your Nokia N900
 
Will it help somebody, if I'll create package in extras-devel?
Basically it will put shell script into /opt/usr/bin/ and create icon for it.

If so please suggest name for the package and icon in this poll:
https://spreadsheets.google.com/view...Q19ULVUxT1E6MQ

AlexV12 2010-08-25 09:13

Re: Optimize your Nokia N900
 
i'd like to make this into a Queen Beecon widget, however i can't get it to work.

If i start the widget and go to advanced, i testdrive the command (your file) and it works perfectly. However if i try to import "buffer to beecon"

i get this error:
Code:

(0x3eb7e8) QBW Import from ADB command buffer error g_key_file_load_from_data
anybody have a clue?

No!No!No!Yes! 2010-08-26 06:37

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by AlexV12 (Post 797674)
i'd like to make this into a Queen Beecon widget, however i can't get it to work.

If i start the widget and go to advanced, i testdrive the command (your file) and it works perfectly. However if i try to import "buffer to beecon"

i get this error:
Code:

(0x3eb7e8) QBW Import from ADB command buffer error g_key_file_load_from_data
anybody have a clue?

Ciao,
Please post complete text you are trying to import and exact button your are pushing ... from the message code it seems you are pressing top left button for command import instead of top right button for instance/beecon.
Some other screenshot of the advanced dialog box might be useful as well.
Bye

F2thaK 2010-08-26 06:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by mauron85 (Post 797193)
Will it help somebody, if I'll create package in extras-devel?
Basically it will put shell script into /opt/usr/bin/ and create icon for it.

If so please suggest name for the package and icon in this poll:
https://spreadsheets.google.com/view...Q19ULVUxT1E6MQ


ive done this (for myself) just havent made a deb....

JorgeFX 2010-08-27 04:29

Re: Optimize your Nokia N900
 
Waoo:eek: I'm surprised to see that you are thinking of making and package to the extras-devel. It makes me real happy:)


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

vBulletin® Version 3.8.8