[krn.modules] interactive governor for X10 GB - XPERIA X10 Android Development

Hello guys,
Introduction
I've managed to compile the interactive governor (supported by SetCPU!) for X10 2.3.3 GB kernel (2.6.29-00054-g5f01537).
It was difficult to find a source that worked. This module is a compiled version of the code from here.
Screenshot. It oscillates between 245Mhz and 384Mhz while playing music!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Installing
After unpacking the zip into the folder of your choice, execute the following commands:
Code:
adb push "cpufreq_interactive.ko" /sdcard/cpufreq_interactive.ko
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/lib/modules
cp /sdcard/cpufreq_interactive.ko .
insmod cpufreq_interactive.ko
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Then you can fire up SetCPU and see that it actually detects the interactive governor and frequency changes. Reboot will reset the settings - you will need to modify your startup scripts to activate it on each reboot, or use SetCPU for this.
Settings
Although the initial interactive module only supported one setting, the min_sample_time, this one supports an additional one:
Code:
# pwd
pwd
/sys/devices/system/cpu/cpu0/cpufreq/interactive
# ls
ls
go_maxspeed_load
min_sample_time
#
which is go_maxspeed_load.
SetCPU only supports the initial setting that the module came with, the min_sample_time. By default, it is configured to 80000 here, but 50000 could also be a good value.
The settings default values and explanations:
Code:
/* Go to max speed when CPU load at or above this value. */
#define DEFAULT_GO_MAXSPEED_LOAD 85
/*
* The minimum amount of time to spend at a frequency before we can ramp down.
*/
#define DEFAULT_MIN_SAMPLE_TIME 80000;
To modify them, just echo the desired value into the sysfs files:
Code:
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
Download
Use it at your own risk!
cpufreq_interactive.zip

So glad you have got this!!!!
Loved it in DooMKernel
going to try on TripNMiUI now!!!
Regards

Really great dude! I can't wait to use it!
Sent from my X10i using EWJet GB and XDA-App

Omg!!! Another booster to my x10.... Thanks...
Sent from my X10i using XDA Premium App

Oh, can't believe it. You did it. Another governor. GREAT!

Excellent work. Got it installed on WB's 3.9 and cpu master recognized the new governor. Will test throughout the day and report back any issues. Thanks again for your great work.
Edit: Reboot looses the governor due to tweaks in install-recovery.sh, will continue to test and find a work around.
Edit again: Added insmod & echo line in install-recovery.sh and interactive governor can be selected again without affecting Z's 'OC' tweak. Still need further testing though.

Really hope Z and wolf adds this to their roms.
Sent from my X10i using XDA Premium App

I will but im busy at work now again. Vacation is over
Sent from my X10i using XDA App

Thanks viulian, I included it in EWJET rom! It's awesome! Nice work!

interactive governor \o/
it was tricky to make it start on boot but i managed to do it, now time to test it

I will but im busy at work now again. Vacation is over
Click to expand...
Click to collapse
Hah, you have vacation like aZuZu lol. How about it?
Nice governor, should try this.
EDIT: can't install. Error: cannot stat 'cpufreq_interactive.ko': no such file or directory.
I copied that file to sdcard.

silveraero said:
EDIT: can't install. Error: cannot stat 'cpufreq_interactive.ko': no such file or directory.
I copied that file to sdcard.
Click to expand...
Click to collapse
Make sure the file is really where it has to be - the error says that is not found.

Yeah I know the error. I copied that file to sdcard and C:\Windows\ (where I put adb in) too but the error keeps appearing.
EDIT: Can I do this?
- Copy cpufred_interactive.ko to system\lib\modules
- Insert "interactive" to sys\device\system\cpu\cpu0\cpufred\scaling_gorvenor
I think this will need one more step to interact the cpufred_interactive.ko with the scaling_governor but I don't know how

Lockon Stratos said:
Excellent work. Got it installed on WB's 3.9 and cpu master recognized the new governor. Will test throughout the day and report back any issues. Thanks again for your great work.
Edit: Reboot looses the governor due to tweaks in install-recovery.sh, will continue to test and find a work around.
Edit again: Added insmod & echo line in install-recovery.sh and interactive governor can be selected again without affecting Z's 'OC' tweak. Still need further testing though.
Click to expand...
Click to collapse
Can u please give the commands on how to do this?

Extract cpufreq_interactive.ko to system/lib/modules and then add following to install-recovery.sh
#modules & thanks viulin
insmod /system/lib/modules/cpufreq_interactive.ko​
#cpufreq governor
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time​

Installed on stock 2.3.3, and get incredible battery life with great preformance, much more usable than smartass one. Thanks for the module!
Looking forward to see more settings available for that governor.

first time seen the other frequencies being used. thanks.
btw, is there any limitation of not going to deep sleep while charging?

can any body explain me how to do it plzzzzzzzzzzzzzzzzzzzzzz

awesome...........,

tayub said:
can any body explain me how to do it plzzzzzzzzzzzzzzzzzzzzzz
Click to expand...
Click to collapse
the ans is rite here...as WB mention
Wolfbreak said:
Extract cpufreq_interactive.ko to system/lib/modules and then add following to install-recovery.sh
#modules & thanks viulin
insmod /system/lib/modules/cpufreq_interactive.ko​
#cpufreq governor
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time​
Click to expand...
Click to collapse
the install-recovery.sh is at system/etc.
Anyway...is it possible to use smartass AND this together?

Related

[krn.module] smartass governor for X10 GB (updated, configurable!)

Hello guys,
I've managed to compile the module from here: http://forum.xda-developers.com/showthread.php?t=1159899 updated by AnDyX for X8 which I updated for X10. Initially the module was offered by erasmux.
It works for 2.3.3 kernel that is: 2.6.29-00054-g5f01537.
You can configure various parameters:
Code:
# pwd
pwd
/sys/devices/system/cpu/cpu0/cpufreq/smartass
# ls
ls
debug_mask
up_rate_us
down_rate_us
up_min_freq
sleep_max_freq
sleep_wakeup_freq
awake_min_freq
sample_rate_jiffies
ramp_up_step
ramp_down_step
max_cpu_load
min_cpu_load
sleep_rate_us
#
Install guide:
Copy the cpufreq_smartass.ko to the root of your SD card and then execute the following commands with the phone connected to the PC:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/cpufreq_smartass.ko /system/lib/modules
cd /system/lib/modules
insmod cpufreq_smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
You can confirm that installation works either by SetCPU (it will report scaling "smartass") or by executing the following command:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Results:
Below are my 17 hours run:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I was running this governor today and I managed to get 47% of battery in 17 hours (listening to music 2 hours, with screen on at 0% brightness, reading the news in the metro 10-15 minutes, and 4 email accounts syncing every 15 minutes). During the night (6 hours), it only lost 2% of the battery.
As far as I can see, when it goes to deep sleep, it stays there, if you minimally use the phone, it should last a long time. But once you turn on the phone, it will kick into high gear (998Mhz) very fast, to allow for fast response - and won't use any other intermediate frequencies.
Settings:
/*
* The minimum amount of time to spend at a frequency before we can ramp up.
*/
#define DEFAULT_UP_RATE_US 24000;
/*
* The minimum amount of time to spend at a frequency before we can ramp down.
*/
#define DEFAULT_DOWN_RATE_US 49000;
/*
* When ramping up frequency with no idle cycles jump to at least this frequency.
* Zero disables. Set a very high value to jump to policy max freqeuncy.
*/
#define DEFAULT_UP_MIN_FREQ 0
/*
* When sleep_max_freq>0 the frequency when suspended will be capped
* by this frequency. Also will wake up at max frequency of policy
* to minimize wakeup issues.
* Set sleep_max_freq=0 to disable this behavior.
*/
#define DEFAULT_SLEEP_MAX_FREQ 245760
/*
* The frequency to set when waking up from sleep.
* When sleep_max_freq=0 this will have no effect.
*/
#define DEFAULT_SLEEP_WAKEUP_FREQ 998400
/*
* When awake_min_freq>0 the frequency when not suspended will not
* go below this frequency.
* Set awake_min_freq=0 to disable this behavior.
*/
#define DEFAULT_AWAKE_MIN_FREQ 0
/*
* Sampling rate, I highly recommend to leave it at 2.
*/
#define DEFAULT_SAMPLE_RATE_JIFFIES 2
/*
* Freqeuncy delta when ramping up.
* zero disables and causes to always jump straight to max frequency.
*/
#define DEFAULT_RAMP_UP_STEP 220000
/*
* Freqeuncy delta when ramping down.
* zero disables and will calculate ramp down according to load heuristic.
*/
#define DEFAULT_RAMP_DOWN_STEP 160000
/*
* CPU freq will be increased if measured load > max_cpu_load;
*/
#define DEFAULT_MAX_CPU_LOAD 75
/*
* CPU freq will be decreased if measured load < min_cpu_load;
*/
#define DEFAULT_MIN_CPU_LOAD 25
/*
* When screen if off behave like conservative governor;
*/
#define DEFAULT_SLEEP_RATE_US (usecs_to_jiffies(500000))
To update one of the settings, the standard echo command should be executed:
Code:
echo "80" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
(in this example, the max_cpu_load will get the value 80, meaning that the CPU should be 80% at least, before a jump in frequency happens.
User biscoitu has a list of settings here http://forum.xda-developers.com/showpost.php?p=16256835&postcount=161 but for X8 I think. They could be a starting point for X10 tuning I will also try to see which settings work best, but it will take a while.
Download:
Use it at your own risk!
cpufreq_smartass.ko
Enjoy!
Special thanks to:
a) wolf which gave me hope with X10
b) all guys that made flashing X10 a reality
c) AnDyX for the source code and the workaround for the missing kernel symbols.
Awesome dude!!! Will have a try when I get home
Regards
Sent from my X10i using XDA Premium App
dude! I want to test it, how do I install it (i mean step by step for a noob like me)
so smartass is not so smart for now... will wait till smartass iq get higher... but nice work dude... btw don't be smartass and give to smartass some more iq soon... thanks!
Thanks for support guys!
Later edit: I've modified first post to include the installation steps.
viulian said:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
better to use
HTML:
mount -o remount rw /system
or
busybox mount -o remount rw /system
lot better and removes the need to selecting mtd block corrrectly coz that differs sometimes.
automatic enabling of smartass
type this in your install-recovery.sh
Code:
insmod /system/lib/modules/smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
This should make it your setting as needed on every reboot
Can this be made into a zip to.flash ?
Sent from my X10i using XDA Premium App
I'm sorry, I don't have experience in creating .zips to be flashed ... anyway - is faster to copy manually and you don't need to reboot the phone or anything.
Once I finish it (to get it to be configurable over sysfs) then I will investigate this possibility of flashing.
Cant I do it through root explorer?
Sent from my X10i using XDA Premium App
insmod /system/lib/modules/smartass.ko
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Click to expand...
Click to collapse
Seems that placing these lines directly in install-recovery.sh doesn't work. But placing them into additional script in /etc/init.d/98-smartass and adding 98-smartass to the install-recovery.sh works fine. Even after reboot you still have smartass governor.
Looks like CPU frequency isn't changing.
May be the problem is in acpuclock.o (compiled for Xperia Arc but not for Xperia X10???.
creage said:
BTW, be aware, that this module is not compatible with latest wolfbreak's tweaks. Actually they are just overrides your governor and cpu setup depending on device state.
Click to expand...
Click to collapse
It does not affect wolfbreak's tweaks. Those will reset the CPU state after each reboot. So you can try the governor, and if you don't like it, just reboot and old settings go back. In case you decide to keep the governor longer, then yes, the startup scripts need to be modified (not only to activate it, but to insert the module also). But we're not there yet
Karlson2k said:
Looks like CPU frequency isn't changing.
May be the problem is in acpuclock.o (compiled for Xperia Arc but not for Xperia X10???.
Click to expand...
Click to collapse
How do you expect it to change ?
whats the point of this? as per the cpuspy i think the same problem persist. only 245 and 998 mhz freq's are used.
I think this is a problem with the phone speed. Imagine this scenario:
a) user starts an application, CPU is in deep sleep (or maybe idleing at 245Mhz). Usage goes to 100%
b) application does not finish loading in the very short time (milliseconds) specified for the ramp up period. CPU is still at 100% and thus frequency goes one step higher (384Mhz)
c) application still did not finish loading again, CPU goes again one step higher.
By the time the application finishes (and they are Java, not native so imagine the work needed to load them) CPU gets to max frequency. If it would spend longer time at intermediate steps, you would describe the phone interaction as "slow".
Another advantage, you can put a max limit on the CPU speed on screen off mode (sleep mode).
For more information please check the governor developer opinion: http://forum.xda-developers.com/showthread.php?t=730471.
This module is a a different one compared to the defaults given by Sony (ondemand and performance).
Later edit:
With the new .ko I've just posted, CPY Spy also reports intermediate frequencies as used. I will update the CPUSpy screenshot tomorrow after a day of running with the governor.
viulian said:
I think this is a problem with the phone speed. Imagine this scenario:
a) user starts an application, CPU is in deep sleep (or maybe idleing at 245Mhz). Usage goes to 100%
b) application does not finish loading in the very short time (milliseconds) specified for the ramp up period. CPU is still at 100% and thus frequency goes one step higher (384Mhz)
c) application still did not finish loading again, CPU goes again one step higher.
By the time the application finishes (and they are Java, not native so imagine the work needed to load them) CPU gets to max frequency. If it would spend longer time at intermediate steps, you would describe the phone interaction as "slow".
Another advantage, you can put a max limit on the CPU speed on screen off mode (sleep mode).
For more information please check the governor developer opinion: http://forum.xda-developers.com/showthread.php?t=730471.
This module is a a different one compared to the defaults given by Sony (ondemand and performance).
Later edit:
With the new .ko I've just posted, CPY Spy also reports intermediate frequencies as used. I will update the CPUSpy screenshot tomorrow after a day of running with the governor.
Click to expand...
Click to collapse
Thanks alot for this nice Governor, can i use it in my ROM?
Wolfbreak said:
Thanks alot for this nice Governor, can i use it in my ROM?
Click to expand...
Click to collapse
i want to be your first beta tester
Wolfbreak said:
Thanks alot for this nice Governor, can i use it in my ROM?
Click to expand...
Click to collapse
Me too.
Please your help.
We need your working!
thanks for this tweak
it work well on Trip's latest rom
and here a screen shot shows that diff cpu freq is in use
kinglargo said:
dude! I want to test it, how do I install it (i mean step by step for a noob like me)
Click to expand...
Click to collapse
1. download terminal emulator
2. begin new session in emulator
3. type in code on first post(install guide)
4. go to set cpu and see if it's on
5. enjoy a fast muthafuggin xperia that sleeps balls deep!

[krn.module] smartass v2 governor for X10 GB

I've finally managed to compile smartass v2 governor (source code) and get it to work on X10.
Few members insisted if I could give it a try and I accepted the challenge
It is ment for X10 GB stock kernel 2.6.29-00054-g5f01537 preempt mod_unload ARMv7
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(courtesy of iridaki)
You can configure various parameters:
Code:
bash-3.2# pwd
/sys/devices/system/cpu/cpu0/cpufreq/smartassV2
bash-3.2# ls
debug_mask
up_rate_us
down_rate_us
sleep_ideal_freq
sleep_wakeup_freq
awake_ideal_freq
sample_rate_jiffies
ramp_up_step
ramp_down_step
max_cpu_load
min_cpu_load
Installation guide:
Download the archive and copy the cpufreq_smartass2.ko onto the root of your /sdcard/. Then, type in the following commands:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
cd /system/lib/modules
cp /sdcard/cpufreq_smartass2.ko .
insmod cpufreq_smartass2.ko
Then you can switch to the smartassV2 governor using SetCPU.
Configuration:
SetCPU does not support configuring it - so you will have to manage from command line. Have a look at this thread to understand how to configure - it is for the old smartass module for X10 - but the configuration is done the same way.
Each parameter (and its meaning) is defined in the source code found above.
Download:
Use it at your own risk!
cpufreq_smartass2_x10.zip
Enjoy!
great work!
may be i should include these awesome modules in the BootManager ramdisk... will make it better
@viulian
u can have a look at the following zip:
module_x10_gb_gov_minmax.zip
it has code that will auto insert the module loading parts in install-recovery.sh
Thanks!
I'm sorry, but I don't have an X10 anymore. I compiled the module using the old kallsyms addresses that I kept - and iridaki was kind enough to test it before I released it.
So I have nothing to test it against ..
It needs the module replaced and one line changed in the install script apparently. Maybe somebody else can do it and test it ?
viulian said:
Thanks!
I'm sorry, but I don't have an X10 anymore. I compiled the module using the old kallsyms addresses that I kept - and iridaki was kind enough to test it before I released it.
So I have nothing to test it against ..
It needs the module replaced and one line changed in the install script apparently. Maybe somebody else can do it and test it ?
Click to expand...
Click to collapse
There you go!
module_x10_gb_gov_smartass2.zip
PS: Turns out I can't sleep!!!
Nice was waiting for this!
Sent from my X10i using XDA App
Didn't we already have this?
pyromatic18 said:
Didn't we already have this?
Click to expand...
Click to collapse
Seriously?
No, smartass was never part of stock SE kernel.
I think he meant the normal smartass we already had but now we have v2.
Sent from my X10i using XDA App
Wolfbreak said:
I think he meant the normal smartass we already had but now we have v2.
Sent from my X10i using XDA App
Click to expand...
Click to collapse
I think he meant that it was already included in doomkernel since 4b which was a while ago...
But this one is for stock kernel, its different.
Thanks Viulan!
Yes, for kernels 2.6.32 and onwards, the existing sources do compile (don't know if straight away, but its much more easier to get something to work).
Since smartassV2 was using features present in newer kernel releases, I had to rewrite some of the code so that it does the same, but using 2.6.29 features:
a) sysfs to use older api / parameters
b) add in the call to default_idle method, which older kernels do not provide by default.
c) fix a bug related to unloading / reloading the module (it did not do an unregister suspended state at the end).
Also I removed small parts related to new syncr. mechanisms added in newer kernels.
I am using these parameters for the governor, but still it seems to stay at max frequency most of the time when the screen is on.
Code:
#smartassV2 config
echo "24000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_ideal_freq
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_ideal_freq
echo "2" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sample_rate_jiffies
echo "220000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
echo "160000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step
echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
Anyone has any suggestions to maximize the use of intermediate frequencies?
Will this be implemented into future custom kernels?
Sent from my X10i using XDA App
iridaki said:
I am using these parameters for the governor, but still it seems to stay at max frequency most of the time when the screen is on.
Code:
#smartassV2 config
echo "24000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_ideal_freq
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_ideal_freq
echo "2" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sample_rate_jiffies
echo "220000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
echo "160000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step
echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
Anyone has any suggestions to maximize the use of intermediate frequencies?
Click to expand...
Click to collapse
I would not touch sample_rate_jiffies, up_rate_us and down_rate_us ...
ramp_up_step and ramp_down_step I believe is better to be 0, thus the governor will use the frequencies table (as far as I understand). These are the values I put (0) so no need to alter them.
And the last ones I would reduce max_cpu_load ... I would it 65 (otherwise phone is sluggish).
Smartass is not that good for intermediate frequencies, I found interactive to be the best at it.
Code:
#smartassV2 config
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_ideal_freq
echo "245760" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_ideal_freq
echo "65" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "45" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
sjondenon said:
Will this be implemented into future custom kernels?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
it has been integrated in my kernel and ThJap's kernel since almost a month now
http://forum.xda-developers.com/showthread.php?p=17294877#post17294877
How can I check smartassV2 config from command line?
sathurnn said:
How can I check smartassV2 config from command line?
Click to expand...
Click to collapse
You go into
/sys/devices/system/cpu/cpu0/cpufreq/smartassV2
folder and check each individual file using
cat <filename>
command.
sathurnn said:
How can I check smartassV2 config from command line?
Click to expand...
Click to collapse
what i do is open adb shell and in the shell, paste this
Code:
for f in /sys/devices/system/cpu/cpufreq/smartass/*; do echo -e "\n$f"; cat $f; done
Hello everybody i have a little problem with smartass2, after install it via adb tool I see it in Set CPU, but when I turn off or reboot my phone this governor is gone :-/. If someone could help me, it would be fine. Thanks for your help
Xperia X10 stock kernel & Rom X10S by championswimmer.

[KERNEL] SpeedMod SGS2 ICS [K3-32 CIFS ROOT / NO-ROOT CWM5]

Hi guys,
This is the SpeedMod kernel for Android ICS for the Samsung Galaxy S2 GT-I9100.
This kernel only works with Samsung ICS based ROMs.
SpeedMod's core features are:
- Super stable: No undervolting, overclocking or potentially unstable modifications
- Fast and smooth: Compiler and code optimizations
- Excellent battery life: Remove unecessary logging and debugging
>>> CLICK HERE for more info and the DOWNLOAD links.
>>> CLICK HERE for the Frequently Asked Questions list.
Current features:
Root and CWM:
- Automatically installs root (su) but can be disabled
- CWM recovery 5.x
Screen and misc tweaks:
- init.d, TUN, CIFS, IPV6 Privacy support
- MMC_CAP_ERASE disabled to fix the hard-brick bug (this kernel is "safe")
Performance:
- CPU governor tweaks: increase responsiveness
- IO tweaks
- Read ahead tweaks
- Compiled with optimizations using Linaro GCC toolchain
- Switched to SLAB instead of SLUB
- Multi-core aware scheduler SCHED_MC
Turned off unnecessary logging for better smoothness and efficiency:
- Disabled Android Debug Logger / logcat
- Disabled Samsung debug
- Disabled various kernel debugging, statistics and tracing options
>>> CLICK HERE for the CHANGELOG.
Instructions on how to enable logcat and disable auto-root are in the 3rd post (below).
>>> CLICK HERE for more info and the DOWNLOAD links.
Source code patches are here.
Here is how to change some of the kernel configurations:
[HOW TO ENABLE LOGCAT]
If you are a developer or want to re-enable logcat for whatever reason, do this:
adb shell
su
mount -o remount,rw /system
echo ANDROIDLOGGER >> /system/etc/tweaks.conf
mount -o remount,ro /system
[HOW TO DISABLE AUTO-ROOT]
Create a file called ".noautoroot" in either /system or /data. This will disable the auto root installation. This example, shows how to remove root completely:
adb root
adb shell
mount -o remount,rw /system
rm /system/xbin/su
rm /system/app/Superuser.apk
rm /data/app/Superuser.apk
touch /system/.noautoroot
mount -o remount,ro /system
sync
reboot
[HOW TO RE-ENABLE AUTO-ROOT]
adb root
adb shell
mount -o remount,rw /system
rm /system/.noautoroot
mount -o remount,ro /system
sync
reboot
thanks hard!
nice to see another kernel for ics!.
cheers!
Know, I have to find a ICS rom... Thank you
Sent from my GT-I9100 using Tapatalk
Wait for a long time...
Look forward to it!! Thank you!!
Awesome
waiting this for long...
Will it be aosp compatible?
OMG OMG hardcore you made my day!
Fap fap fap fap
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my little monster GS2
Anyone can sell me a F5-only keyboard?
Sent from my GT-I9100 using xda premium
Jizz in my pants
Hardcore you know the score
K2-21 remains the best ever kernel for the SGSII (obviously before ICS)
So as soon as CheckRom - GC and Leo are finished their work and it is updated i will undoubtely be flashing only 1 kernel and it'll be this one
---------- Post added at 02:06 PM ---------- Previous post was at 02:05 PM ----------
bervin said:
Jizz in my pants
Click to expand...
Click to collapse
have you just been watching porn
relax mate it's only a kernel not some hot babe
My bad day just got a whole load better
Sent from my GT-I9100 using xda premium
Great !! Finally i'll update to ICS soon
Any ROM/Build released actually ?
Sent from my GT-I9100 using xda premium
Nice.... Now I have more option on ICS kernel..
Thanks Hardcore..
Good to see you back!
I was a bit afraid that you made the sensible switch to Galaxy Nexus as well. Looking forward to see your SGS2-ICS kernel
Alright guys, download links are up on the first post.
This should be a stable version, but it does not have CWM yet.
hardcore said:
Alright guys, download links are up on the first post.
This should be a stable version, but it does not have CWM yet.
Click to expand...
Click to collapse
I'm happy download
Inviato dal mio GT-I9100 usando Tapatalk
hardcore said:
Alright guys, download links are up on the first post.
This should be a stable version, but it does not have CWM yet.
Click to expand...
Click to collapse
sorry mate could not read anywhere as to what ICS roms you support. what i mean does this flash fine with cm9 or any aosp roms? many thanks
Just samsung roms.
Sent from my GT-I9100 using XDA

[MOD] 1.8GHz+ overclock module for HTC EVO 4G LTE

EDIT: Perflock really doesnt allow the settings to stick. Sure you can change them in Set CPU or a similar app, but after using CPU Spy and realizing that the phone does not clock to above 1.5GHZ unless Set CPU is open this is considered pretty much useless until a custom kernel comes that disables perflock. Sorry.
First I want to say thanks to Haus for showing me how to do this, his thread is here. This is not my own release but rather I modded coolbho3000's original module to work with our phones. The rest of the post will be word for word verbatim of his post.
Instructions
Install the overclock (only once):
1. Push the kernel module to your device, make sure it is the krait_oc.ko file, not the krait_oc.ko.bak file:
Code:
adb push krait_oc.ko /data/local
2. Install the new thermald.conf, making sure to back up the old one, and reboot. The thermald.conf is included in the download. If you want to target a frequency other than 1809000 KHz, you should edit the thermald.conf and replace "1809000" to whatever frequency you want to target.
Code:
adb push thermald.conf /data/local
adb shell
su
mount -o rw,remount /system
cp /system/etc/thermald.conf /system/etc/thermald.conf.bak
rm -r /system/etc/thermald.conf
cp /data/local/thermald.conf /system/etc
reboot
Load the overclock (every time you reboot):
1. Load the kernel module (replace pll_l_val and vdd_uv with your desired voltages and L value as explained above. It defaults to 67 and 1300000 if you don't give it any parameters):
Code:
adb shell
su
insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000
2. Bring core 1 temporarily offline so it gets updated with the new max frequency:
Code:
echo 0 > /sys/devices/system/cpu/cpu1/online
3. You'll now have an additional CPU frequency! SetCPU can configure your maximum frequency up to this speed. You can also choose to keep running at 1.5GHz at any time - this method doesn't eliminate any available frequencies. Set the max at 1.8GHz to verify it's stable here.
4. Restart thermald by running "ps". Look for "thermald" in the list, and find thermald's pid (it's usually a number in the low hundreds, higher up in the list). Run "kill [thermald's PID]" in adb shell. The kernel does not currently have kernel-level temperature throttling turned on, so thermald is important for now.
Remove the overclock by restoring your backup of thermald.conf:
Code:
adb shell
su
mount -o rw,remount /system
rm -r /system/etc/thermald.conf
cp /system/etc/thermald.conf.bak /system/etc/thermald.conf
rm -r /system/etc/thermald.conf.bak
reboot
Rebooting clears any kernel modules that are loaded, so you're now clean. You can then delete anything left over in /data/local, but it doesn't matter.
Download
Link to Modded Krait_OC Modules for HTC EVO 4G LTE
Whaaa? Thanks!
Sent from my EVO using Tapatalk 2
This is amazing. We can overclock before kernel source drops... Thank you devs once again for exceeding my expectations!
Sent from my EVO using xda app-developers app
yeZZZZURRRRRR!!!!! sweet nice work brA!!!!!!!! THANKS :victory::highfive:
Nice work
Sent from my EVO LTE
Seems a little complicated for me but can't wait to see how this thing does oc'd so we know what to expect when Kernel source is released ..
Code:
echo 0 > /sys/devices/system/cpu/cpu1/online
I get permission denied at this point.
utnick said:
Code:
echo 0 > /sys/devices/system/cpu/cpu1/online
I get permission denied at this point.
Click to expand...
Click to collapse
Are you running it as root?
Sent from my LTEvo
locked and loaded running at 1.8 nice :good: have it set to 1.8 ondemand
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i hope someone makes a video on this..im still a noob pretty much!! so i plug my phone in to my desktop and then what?? what to i have to put my phone in??
I'm working on making this an app fyi
Sent from my EVO LTE
what do i do what the zip??? lol sorry i know flash it but whats it do ?? i dont understand?? do i just flash the zip over my rom then do all that abd stuff???
evo401 said:
what do i do what the zip??? lol sorry i know flash it but whats it do ?? i dont understand?? do i just flash the zip over my rom then do all that abd stuff???
Click to expand...
Click to collapse
This is definitely not a flashable zip. Everything you need to do is in the OP, step by step.
Gibson.Dubs said:
Are you running it as root?
Sent from my LTEvo
Click to expand...
Click to collapse
Yes, yes I am.
evo401 said:
i hope someone makes a video on this..im still a noob pretty much!! so i plug my phone in to my desktop and then what?? what to i have to put my phone in??
Click to expand...
Click to collapse
If you are a newbie I would hold off on this. I don't consider my self a newbie and there is just something that scares me about messing with the kernel unless I'm 100% sure of what I'm doing.
It may need to be tweaked a bit. I crash a lot a 1.8. I'm not sure how you ran a qruadrant.
sracercelica said:
If you are a newbie I would hold off on this. I don't consider my self a newbie and there is just something that scares me about messing with the kernel unless I'm 100% sure of what I'm doing.
Click to expand...
Click to collapse
i never used abd shell ect.. all i kno how to do is flash radio's.. roms..kernels.. recoverys.. and root my last 3 evo's.. lol i never had to do anything like that?? im deff a noob to that!!:laugh: quess ill just have to wait till we get kernels!!
---------- Post added at 12:57 AM ---------- Previous post was at 12:53 AM ----------
Dread 7us said:
I'm working on making this an app fyi
Sent from my EVO LTE
Click to expand...
Click to collapse
that would be super sweet! :good:
this is similar to how we oc the E3D prior to kernel release, when we just had temp root. We used terminal emulator.
this does not play well with dual core mods. if you're running one then disable it.
the dual core mod won't let you turn off the second core to let it update the frequency.
dual core mod back to stock
Art2Fly said:
Code:
adb push thermald.conf /data/local
adb shell
su
[B]mount -o rw,remount /system[/B]
cp /system/etc/thermald.conf /system/etc/thermald.conf.bak
rm -r /system/etc/thermald.conf
cp /data/local/thermald.conf /system/etc
reboot
Click to expand...
Click to collapse
Shouldn't that be "mount -o remount,rw /system" ?

[KERNEL MODULE] For ICS .587 Stock Kernel with Locked Bootloader [SMARTASSV2/SIO]

First of all,
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM/kernel/mods
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
now this is for anyone with stock kernel and can't or wont unlock bootloader due to certain reason only they knew.
but for anyone who already unlocked bootloader don't bother with this, u got many choices of great kernel to flash
anyway for now i've compiled smartassv2 cpu governor and sio disk io scheduler as module that can be loaded onto stock kernel. tested by anerik on his locked bootloader phone. module is compiled using .587 kernel source, against lww/coconut defconfig but since all xperia 2011 shared the same source i assume this would work on all xperia 2011 running .587 stock kernel.
requirement:
- rooted
- busybox installed.
- cwm recovery for flashing.
- rom support init.d sysinit to load the module script automatically on boot, or smanager installed for u to load the script using it yourself.
- running stock .587 kernel
howto:
just flash via cwm and reboot. then use nofrills cpu control to change to smartassv2 or sio.
changelog:
smartassv2 update1:
- added fix for sysfs interface by M66B. should be able to tune smartassv2 via setcpu in governor tab.
- modify init.d script to calculate kallsyms_lookup_name address automatically.
credits:
AnDyX who originally posted thread on neo v forum and giving source on his github
anerik for testing this on his phone.
another placeholder.
another one just to be sure
Re: [KERNEL MODULE] For ICS .587 Stock Kernel with Locked Bootloader
The 'NEW' Module-Man was born
:thumbup:
yes, i sent from my phone using Xda Premium, so what?
Click to expand...
Click to collapse
Can I put more than one governor? And how?
pojhe said:
Can I put more than one governor? And how?
Click to expand...
Click to collapse
don't quote whole op. Maybe if you got files and change the commands... That's what common sense tells me, but annonymus is dev here, just tryin to help
anerik said:
don't quote whole op. Maybe if you got files and change the commands... That's what common sense tells me, but annonymus is dev here, just tryin to help
Click to expand...
Click to collapse
sorry, thanks for remind me.. another one, I put the script in init.d but it not work after I reboot the device.. any advice?
Edit : Its working! thanx!!
pojhe said:
sorry, thanks for remind me.. another one, I put the script in init.d but it not work after I reboot the device.. any advice?
Click to expand...
Click to collapse
have you got init.d support?
anerik said:
have you got init.d support?
Click to expand...
Click to collapse
yes, I have it. I mistakenly copy the wrong script, and now its working. thanx for your concern..
added sio disk io scheduler module
hi there,
tried to add this to the LT18i of my wife, but i´ve got an error message right after the first command, that grep was not found any other way to find that number without this grep thingy?
thanks in advance
probably the phone doesn't have busybox installed.
grep is one of busybox applet. so no busybox=no grep.
ok i´ll check that, it is at least rooted so shouldn´t be a problem
if its already rooted then just install busybox installer from market eg this one
Works perfectly on my SK17i. Thanks! :good:
unable to chmod [...]/sio-iosched.ko: read-only filesystem
which is weird, as I'm already using your smartassV2 module.
edit: so I just opened /system/lib/modules/ and I set the file's permissions manually to 755 (aka rwx-rx-rx) and then typed:
su
insmod /system/lib/modules/sio-iosched.ko
Click to expand...
Click to collapse
and it worked, I made the init.d the script and the sio scheduler sticks, so everything's well. just two commands instead of four, so less geeky way but the most important thing is, I'm on locked BL with smartassV2 and sio!
honest question
Just an honest question guys,
i Admit im noob.
how can i create the init.d script.
im done in doing the smartass governor and it really works.
BIG thanks for that.! :thumbsup:
but i dont know how to create the init.d script. need more help!
thanks again more Power!
doesnt work for me when I write the lines on terminal emulator nothings happens
Edit: For a simple synthax error didn't work! Good job!! but y didnt undertand how to make for got always this governor!
in reply to above 2 posts
how to make init.d script, so that you'll have smartassV2/sio after reboot:
1. copy the text from OP which is said to be put in the script
2. paste to notepad
3. choose "Save as...", type any name and select "all files (*.*)" in file type, so your file won't have any extension
4a. if your ROM has got init.d support or if you enabled it, put the script in /system/etc/init.d and set permissions to... I'm not sure, ----rwxr-x seems to work fine for me, while when using rwxrwxrwx or rwx-rx-rx the modules didn't want to stick.
4b. if you don't have init.d support and for some strange reason you don't want to enable it (how to? SEARCH), download Script Manager from Google Play, open your script with it and in popup windows tap "su" (the icon turns green) and "boot" (this one turns blue),
5. reboot and check if the modules stick
I have tried with all methods to install init.d and couldn't do it.

Categories

Resources