Related
Hello people!
Here is something interesting for everyone..
You can get the Governer of your choice on your Custom ROM or Kernel.
Governers Present in this pack-
Lazy
Scary
Brazilianwax
Minmax
Lionheart
SmartassV2
Conservative
Userspace
Ondemand
Interactive
InteractiveX
Savagedzen
Lagfree
Download this zip and flash it via CWM
Make sure you have atleast 2mb of space free in /system.
Incase you do not wan't to use a particular governer.
Using Root Explorer , go to /system/etc/init.d
Open up 'insmod_governers' with text editor.
For Eg. If you do not wan't lagfree governer, strike out this line.
Code:
insmod /system/lib/modules/governers/cpufreq_lagfree.ko
Same applies for other Governers.
NOTE TO ALL ROM Developers:
If you wish to use a particular governer, simple copy over the module to /system/lib/modules/governers
In your updater script add this line while setting permissions,
For Example:
Code:
set_perm(0, 0, 0777, "/system/lib/modules/governers/cpufreq_lagfree.ko");
Now final step,
Open up any init.d script and add this line,
Code:
insmod /system/lib/modules/governers/cpufreq_lagfree.ko
Here I have taken lagfree as an example , you may use any governer of your choice.
PS: This will work only on Universal-CF-ROOT or Kernels with CF-ROOT Ramdisk.
The Idea-
The idea here was building the cpufreq drivers as Loadable modules. Here by 'insmod' we load the module thereby making the Cpufreq driver i.e Governer to work.
Hit Thanks if this helped you! Enjoy, Cheers , bye
WOW! Nice work!
Will this work on Bam Custom Kernel #13.. yes I am using the universal one with the CF-root ramdisk. Will this work?
Silentkiller101197 said:
Will this work on Bam Custom Kernel #13.. yes I am using the universal one with the CF-root ramdisk. Will this work?
Click to expand...
Click to collapse
Yes it will work.
Sent from my GT-I9003 using xda premium
Adi_Pat said:
Yes it will work.
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
i am little confused. Do u mean if I am using xda_bam kernel & if that kernel dont have lagfree governer then using this mod we can add that governer in kernel. Please correct me I am wrong
vishal24387 said:
i am little confused. Do u mean if I am using xda_bam kernel & if that kernel dont have lagfree governer then using this mod we can add that governer in kernel. Please correct me I am wrong
Click to expand...
Click to collapse
Yeah right.
Sent from my GT-I9003 using xda premium
vishal24387 said:
i am little confused. Do u mean if I am using xda_bam kernel & if that kernel dont have lagfree governer then using this mod we can add that governer in kernel. Please correct me I am wrong
Click to expand...
Click to collapse
And then, by editting init.d can we delete some governers of the list?
Are all the governors optimized to work well with our device?
Simply brilliant dude !
Can we use it with ICS kernel ? Currently that's the one which needs lot of love
silentvisitor said:
Simply brilliant dude !
Can we use it with ICS kernel ? Currently that's the one which needs lot of love
Click to expand...
Click to collapse
Yes I concur. Great work, is it implementable on the ics kernel?
Edit:btw, I saw that in the op that only amit's kernel will work, just clarifying. And if not possible can this be ported? Thanks for your work
Cheers
Sent from my GT-i9003 powered by Stable and Smooth CyanogenMod 9!
bscraze said:
Yes I concur. Great work, is it implementable on the ics kernel?
Edit:btw, I saw that in the op that only amit's kernel will work, just clarifying. And if not possible can this be ported? Thanks for your work
Cheers
Sent from my GT-i9003 powered by Stable and Smooth CyanogenMod 9!
Click to expand...
Click to collapse
This shud work on All galaxy sl software combos,including ICS
It should work since ics also has init.d and updater-script (i think). The best way is trying and testing
Enviado desde mi GT-I9003 usando Tapatalk
luiseteyo said:
It should work since ics also has init.d and updater-script (i think). The best way is trying and testing
Enviado desde mi GT-I9003 usando Tapatalk
Click to expand...
Click to collapse
Send me any module from ICS kernel ramdisk. I will change the vermagic and recompile the governers.
Sent from my GT-I9003 using xda premium
great job!
sakindia123 said:
This shud work on All galaxy sl software combos,including ICS
Click to expand...
Click to collapse
This imho will work in actual version of ICS for our device because the kernel is the simply samsung kernel with modifier ramdisk to boot ics and not kernel 3.x
( of course , maybe , it can work also in 3.x kernel )
anyway great idea, thanks!
Adi_Pat said:
Hello people!
Here is something interesting for everyone..
You can get the Governer of your choice on your Custom ROM or Kernel.
Governers Present in this pack-
Lazy
Scary
Brazilianwax
Minmax
Lionheart
SmartassV2
Conservative
Userspace
Ondemand
Interactive
InteractiveX
Savagedzen
Lagfree
Download this zip and flash it via CWM
Make sure you have atleast 2mb of space free in /system.
Incase you do not wan't to use a particular governer.
Using Root Explorer , go to /system/etc/init.d
Open up 'insmod_governers' with text editor.
For Eg. If you do not wan't lagfree governer, strike out this line.
Code:
insmod /system/lib/modules/governers/cpufreq_lagfree.ko
Same applies for other Governers.
NOTE TO ALL ROM Developers:
If you wish to use a particular governer, simple copy over the module to /system/lib/modules/governers
In your updater script add this line while setting permissions,
For Example:
Code:
set_perm(0, 0, 0777, "/system/lib/modules/governers/cpufreq_lagfree.ko");
Now final step,
Open up any init.d script and add this line,
Code:
insmod /system/lib/modules/governers/cpufreq_lagfree.ko
Here I have taken lagfree as an example , you may use any governer of your choice.
PS: This will work only on Universal-CF-ROOT or Kernels with CF-ROOT Ramdisk.
The Idea-
The idea here was building the cpufreq drivers as Loadable modules. Here by 'insmod' we load the module thereby making the Cpufreq driver i.e Governer to work.
Hit Thanks if this helped you! Enjoy, Cheers , bye
Click to expand...
Click to collapse
Nice idea to distribute IO governor as a kernel module. Althought I do not own a I9003 any more, I still feel nice to see such a development on I9003 forum.
btw, since you are distributing the binary compiled from GPL src code, make sure you upload and distribute the src code as well.
UnknownzD said:
Nice idea to distribute IO governor as a kernel module. Althought I do not own a I9003 any more, I still feel nice to see such a development on I9003 forum.
btw, since you are distributing the binary compiled from GPL src code, make sure you upload and distribute the src code as well.
Click to expand...
Click to collapse
Please see my github Its the same as my i9003 source
Sent from my GT-I9003 using xda premium
Hey adi_Pat. Shouldn't the init.d insmod_governers have numeration? Something like....
01insmod_governers
02insmod_governers~
?
Hey adi_pat dont works for me, i have KPU and cf-root bam kernel 12. I flashed your zip and gives me bootloop, i had deleted insimod_goveres from init.d
luiseteyo said:
Hey adi_Pat. Shouldn't the init.d insmod_governers have numeration? Something like....
01insmod_governers
02insmod_governers~
?
Click to expand...
Click to collapse
Numbers are useful to organize init.d scripts, because they are always executed in alphabetic order (numbers have the priority over letters).
Sometimes scripts need to be executed in a determined order, but not this/these.
You can delete insmod_governers~. Usually, files that end with '~' are a backup copy made by text editors: http://en.wikipedia.org/wiki/Tilde#Backup_filenames
@Adi_Pat
I think it's better to remove it from the flashable zip, because when you extract a zip, extracted files usually get "Execute" permission, so users will have the same script executed two times, but I'm not sure.
(there's updater-script~ too, but this one shouldn't give problems)
EDIT:
The backup copy is different and I think it does nothing, but it's still better to remove it.
@IoSconoscutio
I actually set permissions for modules to chmod 777 as well as chmod 777 for the init.d script. I made it flashable because people may find it difficult to manually insert each module.
Sent from my GT-I9003 using xda premium
I compiled overclock modules to work with our kernel. I repeat i did not make modules i only compiled them.
Here is original thread:
You can change freq and voltage of cpu.
Thanks to whirleyes
http://forum.xda-developers.com/showthread.php?t=1754888
Usage:
Root is needed
copy symsearch.ko and cpu_control.ko to /system/lib/modules
change permissions to rw-r-r and owner to root-root
open terminal and type
Code:
su
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpu_control.ko
always load symsearch first.
to get default freq and voltage table:
Code:
cat /proc/cpu_control/opp_table_default
example for our cpu:
Id Freq Volt(mV)
0 300 1025
1 600 1200
2 800 1325
3 1000 1388
to get current freq and voltage table:
Code:
cat /proc/cpu_control/opp_table_current
to get current CPU & GPU frequency
Code:
cat /proc/cpu_control/frequency_current
to change freq and voltage type or make a script to do it:
echo id frequency(Mhz) voltage(mV) > /proc/cpu_control/tweak_cpu
Code:
echo 0 300 980 > /proc/cpu_control/tweak_cpu
echo 1 600 1200 > /proc/cpu_control/tweak_cpu
echo 2 800 1300 > /proc/cpu_control/tweak_cpu
echo 3 1200 1370 > /proc/cpu_control/tweak_cpu
You will have to try what is best for you.
And it is you own fault if you do something wrong with your phone. You are responsible for any damage not me.
This will work on all ICS omap4430 lg phones like p940 su640 su760 p760 p720 su870 with 3.0.21 kernel
Comfirmed working on L9:
http://forum.xda-developers.com/showthread.php?p=34192656
Attached OC modules for P940 Prada with 3.0.21-00002-OMAP-Android kernel TESTED working:
http://forum.xda-developers.com/showthread.php?p=34469297
Added modules for CM10
EDIT:
I found a way to add init.d support it works perfect:
http://forum.xda-developers.com/showthread.php?t=1938782
I Never get 4000 with gingerbread.
Only OC to 1200. Nice.
Sent from my LG-P940 using xda app-developers app
Once again Well Done!.
Your contributions to the P920 community are always appreciated.
At least from me. :thumbup:
Sent using xda app-developers app from my "4.0.4 SuperG Jellybeanized LG-P920"
This is awesome 4000 is crazy for 03D on a stock rom. IODAK
Lol the O3D has been Given new Life hehe
I wonder when will come GPU and RAM overclock :laugh:
Pesach85 said:
I wonder when will come GPU and RAM overclock :laugh:
Click to expand...
Click to collapse
There is no point in oc gpu. You dont get any speed up, bus is slow. RAM can be OC when source i out.
Sent from my LG-P940 using xda app-developers app
SU870 was supposed to be out like last week but i suppose they delay was they were maybe using same source for su760 now that it's out they shouldn't delay
OK, the insmod of this two modules can be added with the autostart.sh script of the other three modules, is right?
And the echo should be added into the init.d but is our actual kernel able to read init.d ?
Pesach85 said:
OK, the insmod of this two modules can be added with the autostart.sh script of the other three modules, is right?
And the echo should be added into the init.d but is our actual kernel able to read init.d ?
Click to expand...
Click to collapse
You can add insmod to autostart. Init.d is not supported by kernel. I run script manual it is safer if you set wrong or to big freq or voltage, so it dont get run on boot again.
Sent from my LG-P940 using xda app-developers app
Is it possible for someone to but together a flashable.zip of this, for us folks not really good with terminal... Please and thank you... Great work...
Sent from my Pimpout LG THRILL / LG-SU760 running 4.0.4 ICS.... Rooted...
Huge thanks this works great.
6400+ is a nice antutu score for stk rom at 1200.
Also you can use rom toolbox to make a module loading script and run at boot. It also has memory management, kernel, and sd read ahead tweaks that work on this rom.
Sent from my LG-P925 using xda premium
init.d support
Added how to add init.d support link to first post! Since we cant moddify boot.img to do it.
Do this mean we can flash zip in first post with cmw?
Sent from my Pimpout LG THRILL / LG-SU760 running 4.0.4 ICS.... Rooted...
dkdk1fam said:
Do this mean we can flash zip in first post with cmw?
Sent from my Pimpout LG THRILL / LG-SU760 running 4.0.4 ICS.... Rooted...
Click to expand...
Click to collapse
No. I dont see why cwm zip is needed it is not hard to copy two files in place.
Script is in the modules zip you just need to modify it how you like and run it.
Sent from my LG-P940 using xda app-developers app
iodak said:
I compiled overclock modules to work with our kernel. I repeat i did not make modules i only compiled them.
Here is original thread:
You can change freq and voltage of cpu.
Thanks to whirleyes
http://forum.xda-developers.com/showthread.php?t=1754888
Usage:
Root is needed
copy symsearch.ko and cpu_control.ko to /system/lib/modules
change permissions to rw-r-r and owner to root-root
open terminal and type
Code:
su
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpu_control.ko
always load symsearch first.
to get default freq and voltage table:
Code:
cat /proc/cpu_control/opp_table_default
example for our cpu:
Id Freq Volt(mV)
0 300 1025
1 600 1200
2 800 1325
3 1000 1388
to get current freq and voltage table:
Code:
cat /proc/cpu_control/opp_table_current
to get current CPU & GPU frequency
Code:
cat /proc/cpu_control/frequency_current
to change freq and voltage type or make a script to do it:
echo id frequency(Mhz) voltage(mV) > /proc/cpu_control/tweak_cpu
Code:
echo 0 300 980 > /proc/cpu_control/tweak_cpu
echo 1 600 1200 > /proc/cpu_control/tweak_cpu
echo 2 800 1300 > /proc/cpu_control/tweak_cpu
echo 3 1200 1370 > /proc/cpu_control/tweak_cpu
You will have to try what is best for you.
And it is you own fault if you do something wrong with your phone. You are responsible for any damage not me.
This will work on all ICS omap4430 lg phones like p940 su640 su760 p760 p720 su870 with 3.0.21 kernel
EDIT:
I found a way to add init.d support it works perfect:
http://forum.xda-developers.com/showthread.php?t=1938782
Click to expand...
Click to collapse
What do you mean by'' Open Terminal ???? what do i have to open? and how do i do it?
@tpag02 just instal terminal emulator from google play store.
Sent from my LG-P920 using xda app-developers app
skilovan said:
@tpag02 just instal terminal emulator from google play store.
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
Ok, thanks i did that, now my issue is that when i type those code for tweaking my device it says that cannot :S
iodak said:
Added how to add init.d support link to first post! Since we cant moddify boot.img to do it.
Click to expand...
Click to collapse
this can only be done in the bin file so have to reflash ics if boot.img is modified
This metod is working nice so is no need to do that.
Sent from my LG-P940 using xda app-developers app
tpag02 said:
Ok, thanks i did that, now my issue is that when i type those code for tweaking my device it says that cannot :S
Click to expand...
Click to collapse
Can you say what part did you do and what is the problem. Did you copied and insmod modules?
Sent from my LG-P940 using xda app-developers app
This in my first project for build kernel for galaxy y
I am very happy because it can make the kernel from source
thank all my friends and all the members here
source taken from open source samsung galaxy y update 3
Change log:
UPDATE #3
Added 17 Governor
Code:
1.brazilianwax
2.interactive
3.scary
4.Userspace
5.Lazy
6.Smoothass
7.Savagadzen
8.Interactive
9.Lagfree
10.Minmax
11.SmartassV2
12.Consevative
13.Ondemand
14.Powersave
15.bcm21553
16.Lionheart
17.Performance
I/O Scheduler
Code:
1.Noop
2.Deadline
3.cfq
4.VR
5.SIO
If you have SWAP partition this kernel fungtion to activate this feature create file on init.d folder
Code:
#! /system/bin/sh
#
# Mount swap partition
# Print sembre kernel Print startup
#
swapon /dev/block/mmcblk0p3
sysctl -w vm.swappiness=60
sysctl -p
sleep 1
save and rename 02mntswap
DOWNLOADS HERE FLASH VIA RECOVERY
#2
Activated CPU governor
CONSERVATIVE
USERSPACE
POWER SAVE
ONDEMAND
BCM21553
PERFORMANCE
#1
Standart kernel factory samsung galaxy Y
enabled ext4 partition (but idont know is work or not)
enabled init.d (untested )
enabled ram swap (idont know is work or not)
I Try scaling cpu but not working
I Try edit governor and IO scheduler but bootloop
i'm noob....... but learn every day for looking something new
install via odin as PDA
my git :
https://github.com/sembre?tab=repositories
Reserved
Any details on kernel?
details please tnx
Sent from my GT-S5360 using xda premium
You have to give the full descriptions in layout
Kernel Name:
Frequencies:
Governors:
I/O Schedulers:
Version:
Along with the source uploaded on your git!
What are the frequences?
give us more detail broo
why do you guys keep reinventing the wheel while you could all go to the merruk git and contribuite there???
works in cm7?
sireangelus said:
why do you guys keep reinventing the wheel while you could all go to the merruk git and contribuite there???
Click to expand...
Click to collapse
yes in fact I want to contribute in merruk git, but this is my joy can make the kernel from source
Feature list???
---- by ----
Ganesh,
R.C. @ XDA
Tested the kernel on my ExplodeY rom
2 frequences(312 and 832 only)
I/O noop and cfq
Governor bcm21553 and performance
Version 2.6.35.7 name [email protected]_ASUS_A45vD#1
Stock recovery(CWM isn't integrated)
tom411 said:
Tested the kernel on my ExplodeY rom
2 frequences(312 and 832 only)
I/O noop and cfq
Governor bcm21553 and performance
Version 2.6.35.7 name [email protected]_ASUS_A45vD#1
Stock recovery(CWM isn't integrated)
Click to expand...
Click to collapse
Same as stock..
sembre said:
yes in fact I want to contribute in merruk git, but this is my joy can make the kernel from source
Click to expand...
Click to collapse
No worries Dude..it is a good start and don't stop developing this..we will sure help..the tradition of XDA
death_sinker said:
You have to give the full descriptions in layout
Kernel Name:
Frequencies:
Governors:
I/O Schedulers:
Version:
Along with the source uploaded on your git!
Click to expand...
Click to collapse
Next time i uploaded on my git
Sent from my GT-S5360 using xda premium
tom411 said:
Tested the kernel on my ExplodeY rom
2 frequences(312 and 832 only)
I/O noop and cfq
Governor bcm21553 and performance
Version 2.6.35.7 name [email protected]_ASUS_A45vD#1
Stock recovery(CWM isn't integrated)
Click to expand...
Click to collapse
Give me report
swap memory work or not
Thanks
Sent from my GT-S5360 using xda premium
duduaxe said:
works in cm7?
Click to expand...
Click to collapse
I think is work on cm7
But try your self
Ineed tester
Report here
Thanks
Sent from my GT-S5360 using xda premium
@sembre: Good kernel! Any update?
TheDemiGod said:
@sembre: Good kernel! Any update?
Click to expand...
Click to collapse
under construction and development
Hi all, thank you all for the great rom and mod. Due to my few post (none until now). I can't post in the NICSv2 rom thread.
I recently installed this rom and after that i tried to apply the smartass2 governor from this thread http://http://forum.xda-developers.com/showthread.php?t=2113211. With the revolution ics HD rom work perfects if i activate init.d support from the app Pimp my rom. But for NICSv2 rom this didn't work. The thread said something about xVALUE. Because running the script manually with romtoolbox and then writing 'lsmod' in terminal, i can saw that the script is running but i couldn't see on cpu control the option for smartass2 governor. The sio scheduler work fine with the manual script.
P.S: My manual script only include the command insmod. I don't know if for smartass governor is needed anything else.
Sorry for my english. Cheers.
Problem solved. .
For some reason the scripts files from the zip installer of samrtass and sio didn't load. I do it manually.
I imported the both script from the directory were the zip installer put it and set both on boot. Know i have smartass2 running.
Thank you all again for all the work on Roms and Mods and everything. Cheers.
Hi would I know that any the sensation rom has the Fast Charge enabled, likewise when I Install any new custom rom where can I find ? beside the thread somewhere which is not mentioned or noob like me cant understand, so is there any command in Terminal emulator ? or Build.prop ?
Build.prop which still I haven't understand coz I cant set the max or min cpu clocks or voltages either kernel tuner is not friendly to me . And does the build.prop located in system folder ?
And what is 99z ?
So anyone who can guide me I will be very pleased
Pretty much the answers to your questions are in 99kernel file. It is located in /system/etc/init.d
You need a root explorer like es file manager or cm file manager to edit 99kernel settings.
You can set the min/max CPU values, undervolting(if your kernel allows), fast charge (depending on kernel) in the 99kernel file.
And yes, build.prop is located in /system folder.
Sent from my Ouya
[email protected] said:
Hi would I know that any the sensation rom has the Fast Charge enabled, likewise when I Install any new custom rom where can I find ? beside the thread somewhere which is not mentioned or noob like me cant understand, so is there any command in Terminal emulator ? or Build.prop ?
Build.prop which still I haven't understand coz I cant set the max or min cpu clocks or voltages either kernel tuner is not friendly to me . And does the build.prop located in system folder ?
And what is 99z ?
So anyone who can guide me I will be very pleased
Click to expand...
Click to collapse
Hey,
most of the stuff you want to do i.e Fastcharge, over clocking, under volting, etc can be achieved through flashing a kernel such as Sulatn, bricked, faux and others. These all kernels have interactive aroma installation option which is very easy to handle for a new user. Just download the zip file and flash in recovery and the installation process will take over.
This way you can avoid 99z.....build.prop is a whole different thing...its about changing device parameters such as device build no, pixel density etc..
Hope that helps
murtazasamiwala said:
Hey,
most of the stuff you want to do i.e Fastcharge, over clocking, under volting, etc can be achieved through flashing a kernel such as Sulatn, bricked, faux and others. These all kernels have interactive aroma installation option which is very easy to handle for a new user. Just download the zip file and flash in recovery and the installation process will take over.
This way you can avoid 99z.....build.prop is a whole different thing...its about changing device parameters such as device build no, pixel density etc..
Hope that helps
Click to expand...
Click to collapse
Thanks but I knew these things... My question how wud I know abt any rom ? Is it kernel tuner ? 99z or what ?
And yes it help to change the parameters but how ?
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
[email protected] said:
Thanks but I knew these things... My question how wud I know abt any rom ? Is it kernel tuner ? 99z or what ?
And yes it help to change the parameters but how ?
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
Click to expand...
Click to collapse
yes withing the rom these settings are editable at
/system/etc/init.d/99kernel
i dont know about kernel tuner....I am not comfortable with letting a 3rd party app mess around with my kernel.... so i prefer to change the settings by editing 99kernel file in any text editor...or even ES file explorer
the kernel script will be some thing like this
Code:
# Config default CPU Gonvernor (Disabled by default: When disabled uses internal Kernel setting)
# For better battery life switch to badass
# Kernel Default: ondemand
# Possible values
# badass
# ondemand
# interactive
#= lagfee
# performance
GOV=ondemand;
to edit your settings change the part after the = sign....eg if you want to chage governor to badass... after "GOV=" change the text to whatever option you want
eg
GOV=badass changes governor to badass
For build.prop tweaks
see here
http://forums.droidbeans.com/develo...s/?PHPSESSID=1f70135638cad512493f6690b907f2e8
you will find more and better guides if you google.