yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] Crumplet:
Read post 26 and post 27. And use this app to manage the settings and to see if it is working http://xdaforums.com/showthread.php?t=505419 also use this script instead.And the red sioplus smartass2 are the only things you can change to w/e you prefer.

#!/system/bin/sh

insmod /system/lib/modules/symsearch.ko

insmod /system/lib/modules/cpufreq_pegasusq.ko

insmod /system/lib/modules/cpufreq_sakuractive.ko

insmod /system/lib/modules/cpufreq_hotplugX.ko

insmod /system/lib/modules/cpufreq_interactiveX.ko

insmod /system/lib/modules/cpufreq_smartass2.ko

insmod /system/lib/modules/sio-iosched.ko

insmod /system/lib/modules/sioplus-iosched.ko

insmod /system/lib/modules/cpu_control.ko

echo "sioplus" > /sys/block/mmcblk0/queue/scheduler

echo "smartass2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 0 300 1015 > /proc/cpu_control/tweak_cpu

echo 1 650 1195 > /proc/cpu_control/tweak_cpu

echo 2 850 1320 > /proc/cpu_control/tweak_cpu

echo 3 1050 1388 > /proc/cpu_control/tweak_cpu

echo 4 1350 1410 > /proc/cpu_control/tweak_cpu

echo "1350000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
[Motorola Droid RAZR] shakti15:
Crumplet didnt work for me

tried what you told but nothing happen

No overclock in set cpu.

Do u know y i cant overclock
[Motorola Droid RAZR] Crumplet:
After you edit the script, there will be a 10modules.bak.Delete the backup and then reboot your phone.That should fix the problem.
[Motorola Droid RAZR] shakti15:
didnt work.

tried what you said.
[Motorola Droid RAZR] Crumplet:
Idk what to say everything works for me.
[Motorola Droid RAZR] shakti15:
can u put your

10 module file

and zip file which you have install from recovery

thanks in advance
[Motorola Droid RAZR] Crumplet:
I used the ver. for xt910 on first page and used the script i previously recommended along with deleting the backup once i did that i just turned on init'd to load the modules which runs the script.And use setcpu app i recommenced to visually manage my settings.

my system ver is 982.124.14-AU
[Motorola Droid RAZR] ian888:
I'm on 98.72.16 Verizon but using in XT910... can use this script..?? just instal it via BMM...?? Thanks in any advance.. :good:
[Motorola Droid RAZR] Crumplet:
Then you probably need the xt912 zip, and yes will work with bmm. And yes you should be fine using the script I posted. Advice? Read my previous posts.
[Motorola Droid RAZR] ian888:
wookkeeyy.. thanks mate.. :D
[Motorola Droid RAZR] shakti15:
my system ver is 982.125.14.XT910.Retail.en.EU

which zip should i flash ?
[Motorola Droid RAZR] Crumplet:
Sounds like XT910-jb-extra-signed.zip to me.
[Motorola Droid RAZR] shakti15:
Didnt work should i try xt912.zip ?
[Motorola Droid RAZR] dtrail1:
It depends on your stock kernel. Biz your running an older stock rom, or an I wrong?

However, It doesn't matter what device you have, but what rom you have installed. In the Op the Vathazka described what version you have to install depending on your rom version.

Tapped from my RAZR BLADE

---------- Post added at 02:29 AM ---------- Previous post was at 02:25 AM ----------

If yours isn't listed, you probably have a kernel installed which isn't compatible.

Btw: have you tried to insmod the modules manually?

Tapped from my RAZR BLADE
[Motorola Droid RAZR] shakti15:
finally overclocked thanks
[Motorola Droid RAZR] Crumplet:
Here is my bench mark.
[Motorola Droid RAZR] anurag.dj2u:
Can anyone tell us exactly what we need to do to install this on xt910.i have tried many times but no hope yet .

It would be so much appreciable if anyone just elaborate the procedure from step one to last.

Thx in advance
[Motorola Droid RAZR] mattisekk722:
Works on stock JB retail. EU
[Motorola Droid RAZR] hansip87:
Thanks for this, my razr is fast yet again, with the pegasusq and sio :) btw, does the cpu_control have the same control script like whirleyes?

Btw, if anybody interested, this is my init.d script

#!/system/bin/sh
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/sio-iosched.ko
insmod /system/lib/modules/cpufreq_pegasusq.ko

echo "sio" > /sys/block/mmcblk0/queue/scheduler
echo "sio" > /sys/block/mmcblk1/queue/scheduler
echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
[Motorola Droid RAZR] Vatazhka:
Yes, the interface is unchanged, I haven't modified cpu_control so far - only recompiled it.

Please try it out and tell me, I don't own one.

It seems that you're trying to run the script again, the modules are already in the kernel (use lsmod to verify this). And also have a peek into /sys/block - you may need to use shortened paths to devices (I'll switch to using them in my example init.d script starting from the next release).
[Motorola Droid RAZR] artur0588:
Hi, I fund size of governors and scheduler changed after last update, any changes except of added cpucontrol?
[Motorola Droid RAZR] Vatazhka:
I'm working on a more robust build tree, that's why there's no source code at this time - I moved around header files etc., but this shouldn't impact executables. Please note that I have switched to the Android stock toolchain (see here), that's why the size differs between releases. I rebuild the whole source code with every release.
[Motorola Droid RAZR] Crumplet:
Ok so I have root explorer app with root access and write permissions, also with universal init. d installed and working as intended, along with the zip downloaded from original post. So please can some one give me a official guide on how to get this running.?
[Motorola Droid RAZR] xtam:
1 download xt910 extra signed from first post

2 boot into bmm boot menu manager

3 switch to sytstem where you have .14 rom installed

4 install zip from sdcard

5 select this file where you have it

6 reboot

if you want more governors go with root explorer to /etc/init.d open file 10modules

add line like for example

insmod /system/lib/modules/cpufreq_pegasusq.ko
[Motorola Droid RAZR] hansip87:
Have it rooted

Install init.d Toggler from market, enable init.d

Flash the OP package from BMM (0.3.4) or SS (never tried, but should work)

tweak the init.d if you want to switch governor or anything else inside /system/etc/init.d
[Motorola Droid RAZR] artur0588:
I have ini:

#!/system/bin/sh

insmod /system/lib/modules/symsearch.ko

insmod /system/lib/modules/cpu_control.ko

insmod /system/lib/modules/sio-iosched.ko

insmod /system/lib/modules/cpufreq_lulzactive.ko

insmod /system/lib/modules/cpufreq_pegasusq.ko

insmod /system/lib/modules/cpufreq_sakuractive.ko

echo "sio" > /sys/block/mmcblk0/queue/scheduler

echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 0 196 980 > /proc/cpu_control/tweak_cpu

echo 1 500 1195 > /proc/cpu_control/tweak_cpu

echo 2 750 1320 > /proc/cpu_control/tweak_cpu

echo 3 1000 1388 > /proc/cpu_control/tweak_cpu

echo 4 1350 1410 > /proc/cpu_control/tweak_cpu

echo "1350000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

then open No-frills Cpu Control and see that everything init and the only max freq still 1.2Mgz.
[Motorola Droid RAZR] hansip87:
Iirc while in ics, the oc is not visible directly with any oc app, even the monitoring app will never report the correct frequency. But if you benchmark it, it will increase though.
[Motorola Droid RAZR] Vatazhka:
Works for me... Are you sure that your script is actually being executed? What is in the kernel log?

EDIT: hansip87 is correct, cpufreq stats are not being updated by this module, so most apps won't show correct frequencies. The interface is a custom one, so apps other than Tweakerz don't support it. I'm looking into making it compatible with Live OC interface (which is supported by. e.g. Trickster MOD app), but this would require a major overhaul of the module or may be impossible at all, perhaps only with a kexec kernel.
[Motorola Droid RAZR] Crumplet:
Works great with setcpu, from google play.Thank you so much everyone.
[Motorola Droid RAZR] artur0588:
Really only tweakerz app show true freq and volt.
[Motorola Droid RAZR] Vatazhka:
New release:

Removed lulzactive.

Changed pegasusq base to Gokhan Moral's version. I also tweaked it to be a bit more responsive rather than battery friendly.
[Motorola Droid RAZR] Crumplet:
Can you add hotplugx?
[Motorola Droid RAZR] macondo62:
Can it be flashed upon the old one? Or is it better to manually remove old governors?

Inviato dal mio XT910 con Tapatalk 2
[Motorola Droid RAZR] chiahead52:
So I am assuming this will not work on my xt912?
[Motorola Droid RAZR] Vatazhka:
How do you know my hotplate is partially broken?! ;) If you meant hotplug - it's already in the stock. But please note that both pegasusq and sakuractive can hot plug the 2nd CPU core.

The installer script is very simple, it only replaces files, so you may want to remove lulzactive manually. Beware, 10modules will be also overwritten.
[Motorola Droid RAZR] mydoom:
Any news ?
[Motorola Droid RAZR] Vatazhka:
I'm currently exploring "kexec kernel on stock firmware" option.
[Motorola Droid RAZR] dtrail1:
Well, why you didn't just ask? I have compiled those modules exactly for this kernel some weeks ago :)

Edit: For the "Kexec on stock rom" project, I am also digging into this at the moment. If you like some help we could work together.
[Motorola Droid RAZR] artur0588:
I have tryed your modules and they do not work with 982.124.14 Kernel. But working well from Vatazhka.
[Motorola Droid RAZR] dtrail1:
You probably tried those I compiled for the kexec kernel ;) I made three different zips, but didn't open a new thread and they are spread over the whole forums :D

So, good job Vatazhka!
[Motorola Droid RAZR] Vatazhka:
Well, I published the 1st release a day after Motorola released full JB kernel sources for XT910. Anyway, I'm glad that it works and has been picked up by modders like artur0588 :)

I'm open to suggestions - if anyone wants any module badly, I can take a look at it (Just be reasonable, there's little point of porting 10+ exotic cpufreq governors using symsearch if nobody's ever going to use it.).
[Motorola Droid RAZR] hansip87:
Mate, the latest pegasusq seems like to put the second core to sleep more often than not, even though the core 1 is 100% loaded. I revert back to your old version, and it came to normal again (both core on), but seems it is at the other end, it puts the 2nd core almost on all the time. I checked with System panel Lite. Could you balance in between? Thanks and cheers :) or do you recommend sakuractive more than pegasusq?
[Motorola Droid RAZR] chiahead52:
Any chance on getting these to run on my xt912?
[Motorola Droid RAZR] Crumplet:
Idk what you did wrong but with this deb's original upload and on 982.124.14 I have no problems.
[Motorola Droid RAZR] bladehu2:
some weeks ago? :eek: how did you do that without kernel source? and where can I find your JB modules (not kexec, but for stock JB kernel)? your last post in original "extra modules pack" thread was "But I'm working on the 3.0.8 kernel and hope to get it working more stable soon..." on 1st May 2013, 05:27 AM. I'm just wondering why we didn't know about your modules if they are ready since weeks.
[Motorola Droid RAZR] Vatazhka:
I have a fresh release for you, this time I have added hotplugX and interactiveX. I hope you'll find them useful if pegasusq and sakuractive don't suit your needs.

BTW, free version of the Trickster MOD app offers a nice GUI for setting I/O schedulers and cpufreq governors as well as tweaking cpufreq governors' tunables on the fly.

My attempt was borked (the 2nd core stayed plugged in all the time), so I reverted to a proven version from Gokhan Moral. If it doesn't suit your needs as shipped, please try to tweak it via sysfs tunables. However, it can be quite tricky to get the desired outcome since pegasusq is quite complicated.

XT912 sources were released earlier (Archive with XT910 kernel source code was corrupted and it took some time and prodding for Motorola to post the uncorrupted archive.). There's a fair chance that modules built for XT912 stock JB will load on XT910 EU/China/LATAM stock JB, but as I read that mixing kernel and modules of leaked and final XT912 JB builds gives trouble, I decided to wait for XT910 sources.

There can also be some confusion with regard to several distinct kernels being referred to as "3.0.8" - currently we have a number of 3.0.8 stock JB and 3.0.8 kexec JB kernels in circulation, not to mention 3.0.8 stock ICS ones...
[Motorola Droid RAZR] chiahead52:
Can anyone please help me with this question? Thanks in advance:laugh:
[Motorola Droid RAZR] hansip87:
Now i use the hotplugX and it works perfectly, just how i want it :) Thanks!
[Motorola Droid RAZR] artur0588:
You can find in my mod for xt912.
[Motorola Droid RAZR] chiahead52:
I don't understand?
[Motorola Droid RAZR] DelGreco:
These modules work on CM 10.1 ?
[Motorola Droid RAZR] artur0588:
No
[Motorola Droid RAZR] dtrail1:
Look in the old kernel modules thread, there are modules for CM10.1 3.0.31 kernel... But wait 5 minutes. I will post modules for current 3.0.8 CM kernel..
[Motorola Droid RAZR] DelGreco:
Thanks
[Motorola Droid RAZR] dtrail1:
Had to work something (sitting in the office :)) But now compiling it..

---------- Post added at 05:35 PM ---------- Previous post was at 05:18 PM ----------

Modules for 3.0.8 Kexec Kernel:

www.dtrailer.de/kernel_modules_308_kexec.zip
[Motorola Droid RAZR] Vatazhka:
Please note that these are not compiled from the sources I provided - they can behave differently. If you want to discuss anything about them, please go to this thread in order to avoid confusion.
[Motorola Droid RAZR] Crumplet:
Hey thanks alot for hotplugX. Check out my stock JB running you modules.
[Motorola Droid RAZR] Crumplet:
#!/system/bin/sh

insmod /system/lib/modules/symsearch.ko

insmod /system/lib/modules/cpu_control.ko

insmod /system/lib/modules/sio-iosched.ko

insmod /system/lib/modules/cpufreq_lulzactive.ko

insmod /system/lib/modules/cpufreq_pegasusq.ko

insmod /system/lib/modules/cpufreq_sakuractive.ko

insmod /system/lib/modules/cpufreq_hotplugX.ko

insmod /system/lib/modules/cpufreq_interactiveX.ko

echo "sio" > /sys/block/mmcblk0/queue/scheduler

echo "hotplugX" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 0 196 980 > /proc/cpu_control/tweak_cpu

echo 1 500 1195 > /proc/cpu_control/tweak_cpu

echo 2 750 1320 > /proc/cpu_control/tweak_cpu

echo 3 1000 1388 > /proc/cpu_control/tweak_cpu

echo 4 1350 1410 > /proc/cpu_control/tweak_cpu

echo "1350000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

#!/system/bin/sh

insmod /system/lib/modules/symsearch.ko

insmod /system/lib/modules/cpu_control.ko

insmod /system/lib/modules/sio-iosched.ko

insmod /system/lib/modules/cpufreq_lulzactive.ko

insmod /system/lib/modules/cpufreq_pegasusq.ko

insmod /system/lib/modules/cpufreq_sakuractive.ko

insmod /system/lib/modules/cpufreq_hotplugX.ko

insmod /system/lib/modules/cpufreq_interactiveX.ko

echo sio > /sys/block/mmcblk0/queue/scheduler

echo hotplugX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 0 196 980 > /proc/cpu_control/tweak_cpu

echo 1 500 1195 > /proc/cpu_control/tweak_cpu

echo 2 750 1320 > /proc/cpu_control/tweak_cpu

echo 3 1000 1388 > /proc/cpu_control/tweak_cpu

echo 4 1350 1410 > /proc/cpu_control/tweak_cpu

echo 1350000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
[Motorola Droid RAZR] dtrail1:
The problem with these modules is that any min frequency below 300mhz won't stay. It will set it back to 300mhz (or the nearest available above) after some time. YOu can set a cron daemon as a simple solution which will do "echo xxx > sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" as a sheduled task each 15 minutes, for example. Or someone may insert a simple codeline into the cpu_control.c file before compiling it. Something like:

/* The min frequency in this example is 150 mhz */

if (policy->min > 150000)
policy->min = 150000;

But it's also possible to let the module read the user policy by defining an extra attribute in cpu_control.c (or maybe the exisiting user.policy->min can be used - not sure..). Then it would be like that:

/* The min frequency in this example is taken from the frequency set by user */

if (policy->min > user.policy->min)
user.policy->min = user.policy->min;

OR: Just take the defined variables from cpu_control and use them instead. But I guess the best way would be an extra module which "hacks" into the omap2plus-cpufreq.c file (arch/arm/mach-omap2/).

Or just wait for a stable release of my kernel :D
[Motorola Droid RAZR] Crumplet:
If you could simplify this for me on how to edit the text above to my min feq. is correctly set to 196 i would appreciate that ty.
[Motorola Droid RAZR] dtrail1:
This was meant for devs.

This is C-code and is meant to be made in the source. If you feel comfortable with C coding you may know how to do that. After that you have to compile the modules directly over a precompiled kernel from source.

Better get some info about cron jobs and how to use them on android to set a scheduled task which sets the frequency back to custom.
[Motorola Droid RAZR] hansip87:
Hey vatazhka, just want to report that ram score goes down with antutu when i oced the cpu to 1.3ghz, drastically turn down the score behind gnex. I reverted back Wangsa the score goes up again..
[Motorola Droid RAZR] dtrail1:
This isn't unusual. As these modules are only affecting the CPU + voltage it will decrease power somewhere else if you increase the frequencies.

Vatazhka: are you still working on stock kexecing? I would like to contribute in if it's okay for you.

Gesendet von meinem A101 mit Tapatalk 2
[Motorola Droid RAZR] ChungHung.Chen:
Hi all,

I'm using hotplugX / sio but sometimes my MAXX can't weak up.

Is this normal or deep sleep issue?
[Motorola Droid RAZR] hansip87:
But in my previous experience when still using ICS and whirleyes module. the same cannot be said. the score got increased back then. So i do hope this is a fixable issue.
[Motorola Droid RAZR] Vatazhka:
dtrail1 may be right. OMAP4 has interdependent voltage/frequency/bandwidth mechanisms built in. In JB kernel they can be set up in a different way (caveat - that's just my guess), so in case of peak demand the PM-QoS layer gives priority to the CPU and other components are being starved. In this case the only answer is kexec kernel.

I haven't got past booting the kexec kernel yet. It is crashing at some point (either prior to mounting ramdisk or after), but it's impossible to debug without any means to do so. And the weather is beautiful these days so I'm enjoying my time outdoors :) I'd be glad to receive any contributions, though - the best one would be a working kernel and/or ramdisk :D

Hmm, that's definitely not normal. Are you able to get onto the device via ADB and get the kernel log?
[Motorola Droid RAZR] Jack'O:
Hi Vatazhka, i got a N7 and found the trick below in his development section, do you think it could work on Razr? And can it be usefull?

This what he replied at the same question:

Oh, and you have mp disabled, you know?
[Motorola Droid RAZR] Vatazhka:
This should work, but I think it's a bad idea to disable journaling and/or barriers. I experienced massive data corruption back in ext2 days (imagine a spontaneous reboot or hang and poof, all your data is gone - e2fsck is not able to repair all corrupted filesystems). You can change "ordered" to "writeback" as a 1st step in your testing (this is a less risky approach than disabling journaling altogether). As a side note: mobile devices should perform little I/O by design, so "tricks" like this should be irrelevant... BTW, beware of fiddling with /system, you may need to reflash it with fastboot afterwards for the device to boot again.

PM? Yes, that's on purpose.
[Motorola Droid RAZR] Jack'O:
Ok, I thought I had found a further improvement to our device :(
[Motorola Droid RAZR] Vatazhka:
Why sad face? It definitely adds a new option for consideration. This tweak can be applied to any device (including RAZR), but it comes at a price. For me this tradeoff is unacceptable, but perhaps someone has a different risk appetite.
[Motorola Droid RAZR] Jack'O:
Because it's not really the kick in the ass I hoped.
[Motorola Droid RAZR] dtrail1:
BMM does almost the same each 5th time entering recovery :)

Gesendet von meinem A101 mit Tapatalk 2

---------- Post added at 09:19 PM ---------- Previous post was at 09:16 PM ----------

This is because of hotplugx, there may be a conflicting early suspend code which doesn't play nice on jb kernel. Just don't use it ;)

If you want a hotplugging governor, is hotplug. It's the best working hotplugging governor we have (also in my kexec set with 20 governors, hotplug just provides the most best balanced function).

Gesendet von meinem A101 mit Tapatalk 2
[Motorola Droid RAZR] Vatazhka:
What do you mean? BMM runs fsck and fstrim, it doesn't disable journaling. If you disable journaling, you're still at risk of losing some (if e2fsck is able to repair the filesystem you'll lose most recently written data) or all of your data.

Are you sure? Without early suspend this cpufreq governor is kind of pointless. It's not even #ifdeffed as with other cpufreq governors.

BTW, have you seen this presentation? If you skip to Kindle Fire case study (which happens to use exactly the same platform as our RAZR), you'll see that for example 2 cores running at 300 MHz consume less power than 1 core running at 600 MHz. Hotplugging the CPU only after a certain load threshold is exceeded (which is the behavior implemented by most hotplugging cpufreq governors) effectively reverses this logic! The conclusion is that the only situation where you can benefit from disabling the 2nd CPU core is when CPU is idling. Further to that, sometimes running the CPU at higher frequency leads to less power consumption, for example when you need to keep 3G modem engaged to download data which is being processed by the CPU. This is again contrary to what is implemented in most of the cpufreq governors.
[Motorola Droid RAZR] ChungHung.Chen:
Hi Vatazhka,

My XT910 is no response again after receiving a SMS message today.

Phone is in sleep, after notification sound for incoming SMS, I can't wake it up.

Only notification led is flashing and I need to reboot my phone by hot key.

It's also SMS messages incoming last time phone freeze.

I will try to get adb log if I can.

Thanks.
[Motorola Droid RAZR] dtrail1:
If you grab a a log please do dmesg. But first you need to be more specific. What was your setting of cpu , voltages and governor?

Gesendet von meinem A101 mit Tapatalk 2
[Motorola Droid RAZR] ChungHung.Chen:
Sorry for missing the settings information.

Using hotplugX / sio, others are all default.

Next time I'll try to get log if I'm home and I can access my notebook.

Thanks for your tip.
[Motorola Droid RAZR] St33l:
I have the same problem. The only modules that I can load is symsearch and cpu_control. The others give me a message "No such file or directory".

I have JB China kernel and ROM.
[Motorola Droid RAZR] Vatazhka:
Please flash the latest zip installer. You're using an old version.
[Motorola Droid RAZR] mydoom:
I had using same as china JB, i think thats the problem why cant inject the file or something we dont know.

---------- Post added at 12:41 PM ---------- Previous post was at 12:40 PM ----------

Thanks Vata, i will give a shot and on China 4.1.2 stock rom.
[Motorola Droid RAZR] St33l:
I took this today from first post. Is it latest?
[Motorola Droid RAZR] Vatazhka:
Yes, it's the latest. But the script you're calling is definitely from an older version. Please remove it and reflash the current zip installer.