Active Topics

 


Reply
Thread Tools
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#261
Originally Posted by maurelio79 View Post
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.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#262
Originally Posted by evad View Post
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...
__________________
maemo blog
 
RafaLL92's Avatar
Posts: 116 | Thanked: 77 times | Joined on Jan 2010
#263
Originally Posted by Rob1n View Post
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!
 
Posts: 214 | Thanked: 256 times | Joined on May 2010
#264
Originally Posted by Rob1n View Post
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
 
fadimck's Avatar
Posts: 28 | Thanked: 11 times | Joined on Dec 2009
#265
Originally Posted by JorgeFX View Post
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
__________________
Fadi Mckean
-------
Sunny Cairo, Egypt


"live today like you were going to die tomorrow, plan for tomorrow like you we going to live for ever.."
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#266
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
 
Posts: 56 | Thanked: 11 times | Joined on Jan 2010
#267
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!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#268
Originally Posted by AlexV12 View Post
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
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#269
Originally Posted by mauron85 View Post
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....
 
Posts: 214 | Thanked: 256 times | Joined on May 2010
#270
Waoo I'm surprised to see that you are thinking of making and package to the extras-devel. It makes me real happy
 
Reply

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


 
Forum Jump


All times are GMT. The time now is 01:52.