Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The proper solution - as I'd posted before:
Use Root Explorer to find the files in /system/bin - set to R/W - and "open in text editor".
Or... I've attached the scripts to place in /system/bin - you'll need to set proper permissions: User, RWE; Group, RE; Others, RE
Perhaps someone can place in an installable zip.
which files are we looking for in /system/bin (when you talk about "find the files")
Ive copied your two scripts into this directory also, chmod them in terminal and then ran with same issues:
modprobe: chdir(/lib/modules): No such file or directory
Failed to open dev/block/ramzswap0:
No such file or directory
swapon:can't stat '/dev/block/ramzswap0 no such file or directory
Chipster,
I replace the two files you posted and then change the last line in etc/init.d/20userinit to /system/bin/handle_compcache.
You said in a earlier post that if you wanted compcache not to start on boot that you should place a # in front of the line "compcache start"
Can you also do that with the line "handle_compcache"
note: swap is working...replaced last line in etc/init.d/20userinit with "handle_compcache". the "compcache start" no longer exists. Is that the way it's done ???
Running Sholes_Sapphire 7x250 1100IV kernal
Well everything works just as you've said at least on my D1 with UD 2.5Chipster,
I replace the two files you posted and then change the last line in etc/init.d/20userinit to /system/bin/handle_compcache.
You said in a earlier post that if you wanted compcache not to start on boot that you should place a # in front of the line "compcache start"
Can you also do that with the line "handle_compcache"
note: swap is working...replaced last line in etc/init.d/20userinit with "handle_compcache". the "compcache start" no longer exists. Is that the way it's done ???
Running Sholes_Sapphire 7x250 1100IV kernal
When you use the modified scripts - you don't need "comcache start". By placing a "#" at the beginning of the line - the command is ignored by the interpreter (it's treated as a "comment").
But keep the "handle_compcache" statement. Then use the UD Settings GUI to enable or disable. If disabled - the "handle_compcache" script will stop compcache.
What happens when disabled... There's a file that the UD Settings writes to - "persist.service.compcache". UD Settings writes the percent you select in the GUI to that file - and "0" if disabled. The "handle_compcache" script reads that file - if it reads "0" - it turns off compcache. If it reads anything else - it set compcache to that percent of RAM.
The default that BD uses - "compcache start" - will always start compcache at the default 18% (assuming you can get it to start at all). The UD Settings are completely ignored.
So keep the "/system/bin/handle_compcache" at the end of 20userinint. And you'll have full control through the GUI.
You're welcome to compare my edits to the stock scripts. The stock "handle_compcache" is just wrong for our D1s - and doesn't work. My edits make it work as intended. Likewise - the original "compcache" script has errors in its coding as well. I corrected that - and it was also corrected in the zip on the OP - but v25 also doesn't call insmod properly (we have to call it explicitly through busybox - this wasn't a problem in UD23).
Thanks Chipster, This worked perfectly!The proper solution - as I'd posted before:
Use Root Explorer to find the files in /system/bin - set to R/W - and "open in text editor".
Or... I've attached the scripts to place in /system/bin - you'll need to set proper permissions: User, RWE; Group, RE; Others, RE
Perhaps someone can place in an installable zip.
which files are we looking for in /system/bin (when you talk about "find the files")
Ive copied your two scripts into this directory also, chmod them in terminal and then ran with same issues:
modprobe: chdir(/lib/modules): No such file or directory
Failed to open dev/block/ramzswap0:
No such file or directory
swapon:can't stat '/dev/block/ramzswap0 no such file or directory
I can tell from your output that the scripts were not replaced. I used "insmod" to load the module - not "modprobe".
And the file I posted is not a zip that's installable from recovery... it only contains two files for you to move to your driod.
Make a backup of your system.. in case it gets fubar'd.
Unzip the two files - either transfer to your SDCard - or unzip them on your droid.
Use Root Explorer from the market - navigate to /system/bin. Press the R/W (read/write) button in Root Explorer.
Delete these two files (press and hold on the filename): compcache and handle_compcache.
From the zip I posted - copy or move those same edited two files to /system/bin - and set permissions as in post 162.
Then.. navigate to /etc/init.d - "open in text editor" 20userinit.
Change the last line from:
/system/bin/compcache start to
/system/bin/handle_compcache
I guess I really need to make an installable zip.
Hope that helps..
Is compcache enabled by default on the kernel it comes with? It says its on 18% by default
Chipster i've tried everything in your post from installing the compache and handle compache scripts..renaming int...re installing busy box..but everytime i check info on set cpu my swap total and swap free are reading zero? I'm using slayher's compache kernels and i'm pretty sure i had it working till i updated set cpu this morning. Is there something i can try in terminal to see if i installed it right?