The Following User Says Thank You to DrWilken For This Useful Post: | ||
|
2010-09-11
, 08:29
|
Posts: 166 |
Thanked: 30 times |
Joined on Apr 2010
@ Halifax, UK
|
#52
|
Or move the curser till it's over the 1 in 100 and press r (replace), enter 30, then esc, and then :wq
There's a reason for creating a new event.d script though (I also edited rcS at first).
The Following User Says Thank You to matthew maude For This Useful Post: | ||
|
2010-09-11
, 08:43
|
Posts: 515 |
Thanked: 266 times |
Joined on Nov 2009
@ Oelsted, Denmark
|
#53
|
|
2010-09-13
, 23:15
|
Posts: 19 |
Thanked: 6 times |
Joined on May 2010
@ Brasil
|
#54
|
# my rcS.e fix start on started rcS-late script echo 30 > /proc/sys/vm/swappiness echo 0 > /proc/sys/vm/page-cluster echo 1 > /proc/sys/vm/laptop_mode echo 1 > /proc/sys/vm/oom_kill_allocating_task echo 0 > /proc/sys/vm/dirty_expire_centisecs echo 0 > /proc/sys/vm/dirty_writeback_centisecs echo 60 > /proc/sys/vm/dirty_background_ratio echo 95 > /proc/sys/vm/dirty_ratio echo 0 > /proc/sys/net/ipv4/tcp_timestamps echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save end script
The Following 4 Users Say Thank You to kaze.daniel For This Useful Post: | ||
|
2010-09-14
, 01:15
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#55
|
what about that:
HTML Code:# my rcS.e fix start on started rcS-late script echo 30 > /proc/sys/vm/swappiness echo 0 > /proc/sys/vm/page-cluster echo 1 > /proc/sys/vm/laptop_mode echo 1 > /proc/sys/vm/oom_kill_allocating_task echo 0 > /proc/sys/vm/dirty_expire_centisecs echo 0 > /proc/sys/vm/dirty_writeback_centisecs echo 60 > /proc/sys/vm/dirty_background_ratio echo 95 > /proc/sys/vm/dirty_ratio echo 0 > /proc/sys/net/ipv4/tcp_timestamps echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save end script
description "it is my own N900 tuning" author "YourName" console output
|
2010-09-14
, 01:51
|
|
Posts: 3,397 |
Thanked: 1,212 times |
Joined on Jul 2008
@ Netherlands
|
#56
|
|
2010-09-14
, 01:53
|
Posts: 220 |
Thanked: 19 times |
Joined on Jun 2006
|
#57
|
The Following User Says Thank You to smackpotato For This Useful Post: | ||
|
2010-09-14
, 02:37
|
Posts: 436 |
Thanked: 406 times |
Joined on Jan 2010
|
#58
|
|
2010-09-14
, 03:07
|
|
Posts: 3,397 |
Thanked: 1,212 times |
Joined on Jul 2008
@ Netherlands
|
#59
|
To save users the time of searching, It's here ...
Using the seat belts read me file, I'm guessing we have to do this?
As root.
Copy the script to /etc/init.d
Change script mode to executable
Create this symbolic link using this command:
ln -s /etc/init.d/<Script Name> /etc/rc2.d/S80seatbelt"
Reboot
And
To reverse changes, remove the link and script...
So basically all we need to do is create a sym link to a script for it to run on start up?
# swappiness can be set from 1 to 100
echo 100 > /proc/sys/vm/swappiness
echo 2 > /proc/sys/vm/overcommit_memory
echo 40 > /proc/sys/vm/overcommit_ratio
description "N900 tuning" author "VA" console output start on started rcS-late script echo "30" > /proc/sys/vm/swappiness echo "0" > /proc/sys/vm/page-cluster echo "1" > /proc/sys/vm/laptop_mode echo "1" > /proc/sys/vm/oom_kill_allocating_task echo "0" > /proc/sys/vm/dirty_expire_centisecs echo "0" > /proc/sys/vm/dirty_writeback_centisecs echo "60" > /proc/sys/vm/dirty_background_ratio echo "95" > /proc/sys/vm/dirty_ratio echo "0" > /proc/sys/net/ipv4/tcp_timestamps echo "1" > /proc/sys/net/ipv4/tcp_no_metrics_save end script
The Following 3 Users Say Thank You to allnameswereout For This Useful Post: | ||
|
2010-09-14
, 04:18
|
Posts: 20 |
Thanked: 13 times |
Joined on Sep 2010
|
#60
|
what about that:
HTML Code:# my rcS.e fix start on started rcS-late script echo 30 > /proc/sys/vm/swappiness echo 0 > /proc/sys/vm/page-cluster echo 1 > /proc/sys/vm/laptop_mode echo 1 > /proc/sys/vm/oom_kill_allocating_task echo 0 > /proc/sys/vm/dirty_expire_centisecs echo 0 > /proc/sys/vm/dirty_writeback_centisecs echo 60 > /proc/sys/vm/dirty_background_ratio echo 95 > /proc/sys/vm/dirty_ratio echo 0 > /proc/sys/net/ipv4/tcp_timestamps echo 1 > /proc/sys/net/ipv4/tcp_no_metrics_save end script
Tags |
battery |
Thread Tools | |
|
There's a reason for creating a new event.d script though (I also edited rcS at first).
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
Last edited by DrWilken; 2010-09-22 at 09:49.