Use Root Explorer to get to /etc/init.d/20userinit
press the mount R/W button
longpress on 20userinit and choose "open in text editor"
add this line to the bottom of the file (skip a line after the last command):
/system/bin/compcache start
Use Root Explorer to get to /etc/init.d/20userinit
press the mount R/W button
longpress on 20userinit and choose "open in text editor"
add this line to the bottom of the file (skip a line after the last command):
/system/bin/compcache start
Last edited by anuraj1; 11-17-2010 at 12:26 PM.
This is for the D1 by the way. Not sure how it works on other devices.
You can check the status of compcache by typing "compcache stats" without the quotes in the terminal emulator. If it gives you stats, it is on, if it gets an error, it is off. You can also check in SetCPU under info. The items that start with "Swap" will have numbers associated with them if compcache is on, or will be zero if it is off.
Now does the stock kernel support compcache? Because its not working, I found that file and added it where its the last line in the file I hit menu then save & exit, it made a backup I think it said & the same file name was next to it but had .bak on the end & I deleted it, then check stats I got the error then rebooted & still got error,
Edit:
says failed to open dev/block/ramzswap0 or sumthing
Sent from my Droid
I thought the stock kernel was a Slayher kernel so it should work, but if not, you would need a compcache enabled kernel like the ones by Slayher. They are available on ROM Manager under Slayher, or at this website:
Froyo Kernels by slayher - CyanogenMod Forum
Did you get it working after loading a slayher kernel?
Sent from my Motorola Droid
I've noticed a pretty big improvement using compcache. The only drawback is that you have to reboot every day or two or you will start experience lag and slowdowns because all the swap will be used up.
BD does have the option there for compcache, but it is set up the same way as CyanogenMod 6.1 RC3, where you have to manually type in the command to start, or add that line to the init file to get it to start every time. It is a bug that will get ironed out eventually I'm sure.
If you ever get sick of compcache, just go back to that file and delete the line you added.
ok, I think I got it... When I check in SetCPU it shows numbers after Swap, but when I go to terminal emulator it give me an error when I type in, "compcache stats." Any ideas?