What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

To get CompCache working on UD 2.0

Ummm, not exactly an error, but when I typed in "compcache stats" (after allowing su), my Droid replied with:

Code:
stats: Not a typewriter
:blink:

Mine said that before but I didn't do nothing but maybe reboot my phone, because everything works now


Sent from my Droid
I'm getting this even after a reboot....any ideas ??????? Also after I typed the line at the end of the file it added a new file called 20userinit.bak Whats up with that ????? Update deleted the .bak file (just a backup I guess) rebooted but still no swapping indication in setcpu info..using Slayer build-1.6 kernal .
 
Last edited:
Ummm, not exactly an error, but when I typed in "compcache stats" (after allowing su), my Droid replied with:

Code:
stats: Not a typewriter
:blink:

Mine said that before but I didn't do nothing but maybe reboot my phone, because everything works now


Sent from my Droid
I'm getting this even after a reboot....any ideas ??????? Also after I typed the line at the end of the file it added a new file called 20userinit.bak Whats up with that ????? Update deleted the .bak file (just a backup I guess) rebooted but still no swapping indication in setcpu info..using Slayer build-1.6 kernal .

try typing:

su
compcache start
compcache stats

and see what it says. If it displays stats after that and doesn't show the typewriter error, then you haven't entered the required line in the init file properly and rebooted.
 
Last edited:
$ export PATH=/data/local/bin:$PATH
$su
# compcache start
insmod: init_module '/system/lib/modules/ramzswap.ko' failed (File exists)
init: Device or resource busy
swapon: /dev/block/ramzswap0: Device or resource busy
# compcache stats
DiskSize: 57812 kB
NumReads: 7054
NumWrites: 7591
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
NotifyFree: 6058
ZeroPages: 41
GoodCompress: 79 %
NoCompress: 3 %
PagesStored: 1508
PagesUsed: 764
OrigDataSize: 6032 kB
ComprDataSize: 1993 kB
MemUsedTotal: 3056 kB
#

Sent from my Droid using Tapatalk
 
#!/system/bin/sh
# call a userinit.sh script if it's present on the sdcard

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

if [ -e $SD_EXT_DIRECTORY/userinit.sh ];
then
log -p i -t userinit "Executing $SD_EXT_DIRECTORY/userinit.sh";
busybox chmod +x $SD_EXT_DIRECTORY/userinit.sh;
logwrapper /system/bin/sh $SD_EXT_DIRECTORY/userinit.sh;
setprop cm.userinit.active 1;
fi;

if [ -d $SD_EXT_DIRECTORY/userinit.d ];
then
logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;
setprop cm.userinit.active 1;
fi;

if [ -e /data/local/userinit.sh ];
then
log -p i -t userinit "Executing /data/local/userinit.sh";
busybox chmod +x /data/local/userinit.sh;
logwrapper /system/bin/sh /data/local/userinit.sh;
setprop cm.userinit.active 1;
fi;
/system/bin/compcache start

And this is the file.

Sent from my Droid using Tapatalk
 
From what you've posted, compcache is properly working. When you typed "compcache start" it says that the file already exists. When you typed "compcache stats" it properly displayed the stats. The file is also configured properly.

I don't see the "not a typewriter" error that you were talking about...
 
Yea, it looks like It's working now, maybe it just needed a kick in the a **. Thanks for the help.

Sent from my Droid using Tapatalk
 
Anyone know how to get compcache working on the Incredible?
When in terminal, after typing su and compcache stats, I get:
Failed to open /dev/block/ramzswap0: No such file or directory

No-brainer thought tells me to go to that path and create a folder, but I don't know if that's right?

Any help is appreciated.
Kind regards.
 
From what you've posted, compcache is properly working. When you typed "compcache start" it says that the file already exists. When you typed "compcache stats" it properly displayed the stats. The file is also configured properly.

I don't see the "not a typewriter" error that you were talking about...
The problem is that it doesn't start on a reboot. And I would think it should because of the line /system/bin/compcache start that was added in the etc/init.d/20userinit. Iv'e noticed that in the other commands just before the command you have a line 'fi;'
then it skips a line then the command. so should the start command be input like this:

fi;
(line skip)
/system/bin/compcache start

or the way I have it:

fi;
/system/bin/compcache start
 
From what you've posted, compcache is properly working. When you typed "compcache start" it says that the file already exists. When you typed "compcache stats" it properly displayed the stats. The file is also configured properly.

I don't see the "not a typewriter" error that you were talking about...
The problem is that it doesn't start on a reboot. And I would think it should because of the line /system/bin/compcache start that was added in the etc/init.d/20userinit. Iv'e noticed that in the other commands just before the command you have a line 'fi;'
then it skips a line then the command. so should the start command be input like this:

fi;
(line skip)
/system/bin/compcache start

or the way I have it:

fi;
/system/bin/compcache start

I have it with a skipped line, and it works perfectly. Give it a try with the line skip.
 
Anyone know how to get compcache working on the Incredible?
When in terminal, after typing su and compcache stats, I get:
Failed to open /dev/block/ramzswap0: No such file or directory

No-brainer thought tells me to go to that path and create a folder, but I don't know if that's right?

Any help is appreciated.
Kind regards.

I'm sorry, I don't know anything about hacking the Inc, but it sounds like your kernel may not support compcache. The error you describe occurs when the kernel doesn't have the ramzswap (compcache) module.
 
Back
Top