Active Topics

 


Reply
Thread Tools
Posts: 65 | Thanked: 27 times | Joined on Jun 2010
#41
Just curious, why can't you just use the solution provided here?
http://talk.maemo.org/showpost.php?p...7&postcount=26
 
Harick's Avatar
Posts: 140 | Thanked: 369 times | Joined on Jun 2010 @ Ituzaingo, Argentina
#42
Originally Posted by barzam View Post
Just curious, why can't you just use the solution provided here?
http://talk.maemo.org/showpost.php?p...7&postcount=26
actually, that didnt work for me =(

after reboot, doing a cat /proc/sys/vm/swappiness it gives 100 again
 
Posts: 65 | Thanked: 27 times | Joined on Jun 2010
#43
It worked for me, weird.

Have you double-checked that you didn't make any errors in your file?
 

The Following User Says Thank You to barzam For This Useful Post:
Harick's Avatar
Posts: 140 | Thanked: 369 times | Joined on Jun 2010 @ Ituzaingo, Argentina
#44
it works

seems that i had the \r\n problem cause i made the file with leafpad and now cat /proc/sys/vm/swappiness gives 30 after reboot

thank you very much n.n

wonder if adding "echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region" in the script would change my region settings aswell
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#45
Don't echo in to files in /etc. It replaces the file's contents and the OS might become unbootable.

As root, you can however do "echo 50 >/proc/sys/vm/swappiness" without the quotes, and it doesn't modify anything permanently, reducing the risk of doing anything that makes your device unbootable.
 
Posts: 112 | Thanked: 24 times | Joined on May 2010 @ New Zealand
#46
Originally Posted by maxximuscool View Post
I'm implimenting this with my small python script
My script has:

Radio Region change to world wide, vlaue 4
Swappiness level to 30

The script will automatically start up and activate those setting every reboot. So no need to touch rCS file.

Which avoiding people from breaking their device.

care to share the script?
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#47
Originally Posted by chaoscreater View Post
care to share the script?
The script doesn't work without root access.
But I now just going the old way with Bash Script instead.
Bash script works great without hassle but Python scripts cannot modifying the file due to permission level too high.

If you want my Shell Script auto start, I'm happy to send it to you or upload it here
 
Posts: 230 | Thanked: 39 times | Joined on Jun 2010
#48
please im still waiting on this...
 
Posts: 56 | Thanked: 1 time | Joined on Nov 2009
#49
Originally Posted by egoshin View Post
To anybody, who wants changing swappiness or rcS, I repeat here -

I highly recommend to anybody who wants to change rcS - instead of that just create a file /etc/event.d/somename with following lines:

Code:
# my somename fix

start on started rcS-late

script
       echo 30 > /proc/sys/vm/swappiness
end script
... and insert any another wished lines after "echo 30" and before "end script"

This would not corrupt your N900 in case of problem and it allows the next Nokia OTA upgrade.


could you explain the instructions to do this, please?
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#50
 
Reply


 
Forum Jump


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