I hadn't seen this post when I posted this morning. Good work. One problem, though, is that these fixes will be wiped out again if OC settings are changed using JRummy's app. This, I think, is the root of the problem (at least it was for me). Another problem is that this doesn't reapply _all_ of Drod's tweaks; it only runs the stuff in sysctl.conf. Thus, the following should be a complete fix:
1. Navigate to /system/etc/sysctl.conf. If you want to use Drod's original settings, the values should be:
Code:
vm.swappiness = 0
vm.min_free_kbytes = 2048
vm.dirty_ratio = 40
vm.dirty_background_ratio = 15
vm.vfs_cache_pressure = 12
If you want to use droidxchat's and Inkarnit's tweaks, the values should be:
Code:
vm.swappiness = 0
vm.min_free_kbytes = 2048
vm.dirty_ratio = 95
vm.dirty_background_ratio = 60
vm.oom_kill_allocating_task = 1
2. Navigate to /system/etc/install-recovery.sh
Make sure the following is there, underneath #!/system/bin/sh:
Code:
#Run Scripts From init.d
chmod 755 /system/etc/init.d/01cpu
chmod 755 /system/etc/init.d/02vm
busybox run-parts /system/etc/init.d
#Ensure Bootstrap In Case Something Goes Wrong
echo "1" > data/.recovery_mode
sync
You'll notice that you needn't insert the call for busybox to run sysctl.conf in install-recovery.sh. This is because Drod has already inserted this call into the 02vm file. Running the contents of the init.d folder will run sysctl.conf. I should also mention that this isn't a bug with rubix. As far as I can tell, Drod's set this thing up perfectly, it's just that JRummy's app wipes these entries before it writes it's own OC entries. Drod's said he's currently looking for other places to insert these scripts to avoid this conflict. I notified JRummy about this problem a week or so ago, but I'm uncertain if he got the message. Anyhow, both devs do a kickass job and I'm sure they'll figure it out. So, for the moment at least, this process will need to be repeated if you change OC settings using JRummy's app. Alternatively, if you don't use JRummy's app, you shouldn't have to do anything because your install-recovery.sh should be intact.