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!

[KERNEL] Kernel (deprimed_test) - Break It If You Can

Sbenson,

When you say change/set this up, not sure if you mean just this Overclock file. If so, it only needs to be done once, unless you flash a new rom or kernel. The files in the init folder are run at boot, once in place. If you flash a new rom, these will be deleted.

As to permissions, seperate the concept from this OC file. Whenever you add a new file to your system, be it this overclock, a script file, image, sound, whatever, the file will need to have its permisssions set. Not needed for things on the sd card. Files on the phone system, anywhere, need to have correct permissions to work properly. So you only need to worry when copying a file from your sd card, or running a script or some other process where you are copying new files to your system.

Craig
 
I've been testing an app and discussing issues with the dev yesterday/today, I will update the kernel tomorrow with some code changes relating to the interactive and ondemand CPU schedulers among other things.

The app I referred to is called CPU Tuner, it's free and in the market (has been for some time), I will post a tutorial after a couple of changes to the application make it in.

If you currently use SetCPU, I suggest checking out CPU Tuner. It has profiles that put SetCPU to shame. (no offense to the dev of SetCPU... I paid for it even though I'm an xda member).
 
I've been testing an app and discussing issues with the dev yesterday/today, I will update the kernel tomorrow with some code changes relating to the interactive and ondemand CPU schedulers among other things.

The app I referred to is called CPU Tuner, it's free and in the market (has been for some time), I will post a tutorial after a couple of changes to the application make it in.

If you currently use SetCPU, I suggest checking out CPU Tuner. It has profiles that put SetCPU to shame. (no offense to the dev of SetCPU... I paid for it even though I'm an xda member).

i only havr 2 profiles, battery temp and cpu temp. cant really think of anything else necessary? what do you proliferate? i mean profileate
 
I've been testing an app and discussing issues with the dev yesterday/today, I will update the kernel tomorrow with some code changes relating to the interactive and ondemand CPU schedulers among other things.

The app I referred to is called CPU Tuner, it's free and in the market (has been for some time), I will post a tutorial after a couple of changes to the application make it in.

If you currently use SetCPU, I suggest checking out CPU Tuner. It has profiles that put SetCPU to shame. (no offense to the dev of SetCPU... I paid for it even though I'm an xda member).

i only havr 2 profiles, battery temp and cpu temp. cant really think of anything else necessary? what do you proliferate? i mean profileate

Smarter profiles, a few screens will do more than me describing:

63c37f02-58b1-9981.jpg
63c37f02-58d0-ac11.jpg
63c37f02-58e8-1821.jpg
 
Hey Prime, I was trying to use your latest deprimed kernel with project elite 4.2 and I can't get compcache to run. When I turn on compcache in elite settings it just freezes and elite settings FCs. If I try to run compcache start in terminal emulator it says
mkswap: lseek(1024): Invalid argument
swapon: /dev/block/zram0: Invalid argument

Is it because the scripts in project elite are different from those in CM7 or is there some other problem? If it is the scripts are there scripts I should delete from or copy to /system/bin or /system/xbin? Any help would be greatly appreciated as I like using the deprimed kernel and would love to get it running with compcache on PE 4.2.
Thanks!
 
Hey Prime, I was trying to use your latest deprimed kernel with project elite 4.2 and I can't get compcache to run. When I turn on compcache in elite settings it just freezes and elite settings FCs. If I try to run compcache start in terminal emulator it says
mkswap: lseek(1024): Invalid argument
swapon: /dev/block/zram0: Invalid argument

Is it because the scripts in project elite are different from those in CM7 or is there some other problem? If it is the scripts are there scripts I should delete from or copy to /system/bin or /system/xbin? Any help would be greatly appreciated as I like using the deprimed kernel and would love to get it running with compcache on PE 4.2.
Thanks!

Yes it uses the old method, flash reprimed and it will work.
 
Hey Prime, I was trying to use your latest deprimed kernel with project elite 4.2 and I can't get compcache to run. When I turn on compcache in elite settings it just freezes and elite settings FCs. If I try to run compcache start in terminal emulator it says
mkswap: lseek(1024): Invalid argument
swapon: /dev/block/zram0: Invalid argument

Is it because the scripts in project elite are different from those in CM7 or is there some other problem? If it is the scripts are there scripts I should delete from or copy to /system/bin or /system/xbin? Any help would be greatly appreciated as I like using the deprimed kernel and would love to get it running with compcache on PE 4.2.
Thanks!

Yes it uses the old method, flash reprimed and it will work.

Ok, Thanks Prime. So I can't use deprimed unless I'm on CM7 or a CM7 based rom?
 
Hey Prime, I was trying to use your latest deprimed kernel with project elite 4.2 and I can't get compcache to run. When I turn on compcache in elite settings it just freezes and elite settings FCs. If I try to run compcache start in terminal emulator it says
mkswap: lseek(1024): Invalid argument
swapon: /dev/block/zram0: Invalid argument

Is it because the scripts in project elite are different from those in CM7 or is there some other problem? If it is the scripts are there scripts I should delete from or copy to /system/bin or /system/xbin? Any help would be greatly appreciated as I like using the deprimed kernel and would love to get it running with compcache on PE 4.2.
Thanks!

Yes it uses the old method, flash reprimed and it will work.

Ok, Thanks Prime. So I can't use deprimed unless I'm on CM7 or a CM7 based rom?

You can use deprimed, compcache simply will not function without being activate. It's up to the ROM developers to update to zram swap instead of the outdated ramzswap method.

Here is a script that will allow you to use zram swap on any ROM:

Code:
ZSWAP=/dev/block/zram0
ZCTL=/sys/block/zram0/disksize
MODULE=zram.ko
MODULES_DIR=/system/lib/modules/

compcache stop >/dev/null;
echo 3 > /proc/sys/vm/drop_caches;
echo 1 > /proc/sys/vm/swappiness;

cd $MODULES_DIR;
busybox insmod $MODULE;
echo 40000000 > $ZCTL;
busybox mkswap $ZSWAP;
busybox swapon $ZSWAP;
 
Last edited:
Yes it uses the old method, flash reprimed and it will work.

Ok, Thanks Prime. So I can't use deprimed unless I'm on CM7 or a CM7 based rom?

You can use deprimed, compcache simply will not function without being activate. It's up to the ROM developers to update to zram swap instead of the outdated ramzswap method.

Here is a script that will allow you to use zram swap on any ROM:

Code:
ZSWAP=/dev/block/zram0
MODULE=zram.ko
MODULES_DIR=/system/lib/modules/

echo 3 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/swappiness

cd $MODULES_DIR
busybox insmod $MODULE
busybox mkswap $ZSWAP
busybox swapon $ZSWAP

Thanks for the script. I ran it with scripter and just got errors and no compcache unfortunately. It said:

stdout:
[empty]
:not found
cannot create /proc/sys/vm/drop_caches
:directory nonexistent cannont create /proc/sys/vm/swappiness
:directory nonexistent
:not found
cd: can't cd to /system/lib/modules
insmod: can't read 'zram.ko'
:No such file or directory
mkswap: can't open '/dev/block/zram0'
:No such file or directory swapon: can't stat '/dev/block/zram0'
:No such file or directory

Maybe I'll just go back to CM7, I just wanted to check out PE 4.2. The 3g drop issue and aggressive task killer of GB have been bugging me though.


-----------------
Edit: Gave up and flashed back to CM7 and everything works again.
 
Last edited:
Ok, Thanks Prime. So I can't use deprimed unless I'm on CM7 or a CM7 based rom?

You can use deprimed, compcache simply will not function without being activate. It's up to the ROM developers to update to zram swap instead of the outdated ramzswap method.

Here is a script that will allow you to use zram swap on any ROM:

Code:
ZSWAP=/dev/block/zram0
MODULE=zram.ko
MODULES_DIR=/system/lib/modules/

echo 3 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/swappiness

cd $MODULES_DIR
busybox insmod $MODULE
busybox mkswap $ZSWAP
busybox swapon $ZSWAP

Thanks for the script. I ran it with scripter and just got errors and no compcache unfortunately. It said:

stdout:
[empty]
:not found
cannot create /proc/sys/vm/drop_caches
:directory nonexistent cannont create /proc/sys/vm/swappiness
:directory nonexistent
:not found
cd: can't cd to /system/lib/modules
insmod: can't read 'zram.ko'
:No such file or directory
mkswap: can't open '/dev/block/zram0'
:No such file or directory swapon: can't stat '/dev/block/zram0'
:No such file or directory

Maybe I'll just go back to CM7, I just wanted to check out PE 4.2. The 3g drop issue and aggressive task killer of GB have been bugging me though.


-----------------
Edit: Gave up and flashed back to CM7 and everything works again.

I fixed the script, but welcome back to the darkside.

The updated script should work on any ROM... I will include it in the next update as an alternative.
 
Last edited:
I fixed the script, but welcome back to the darkside.

The updated script should work on any ROM... I will include it in the next update as an alternative.

Thanks for the updated script. I got a "new" (refurb) Droid from Asurion and actually CM7 is running great so far and haven't had any 3g drop yet. So either progress has been made or my new phone is a winner (or the whole starting from scratch thing may have helped lol). It is running strong with CM7 and deprimed. Thanks for the awesome kernel.
 
Don't know if it is just me but the overclock/primed script for deprimed no longer works on winner's RC3 build.

It fails on the insmod call. To fix, I edited the overclock script in /system/bin and replaced "MODULE = overclock.ko" with "MODULE = overclock" and changed "insmod $MODULE" to "modprobe $MODULE".

Everything works after those changes.
 
Back
Top