yashsingh1/xdaforums huggingface dataset:
[Motorola Droid and Milestone Themes and Apps] miragu:
I'm having a very hard time compiling a module compatible with this build. I've been exchanging emails with some people that have it and nothing seems to work. Here's the latest apk (incidentally it fixes the XT720 problem that people are having in earlier posts!).

If the module doesn't load, try to load it in Terminal Emulator or something:

su

(prompt should change from $ to #)

insmod /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko

and tell me the exact error message. Also try this variation if you have busybox, which should work, dunno what's wrong:

su

busybox insmod -f /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko

Another helpful thing: You should have a bunch of stock kernel modules in /system/lib/modules (files with the extension .ko). Send a few (or all, zipped) to me so that I can compare the kernel information within them. You can copy them to the sdcard like this:

su

cp -r /system/lib/modules /sdcard/stockmodules

Then zip the stockmodules directory and post here or send it to me.

One last thing, does the file /proc/config.gz or something like /proc/config* exists? If so please post it.

Your help is very appreciated.

Tiago Sousa
[Motorola Droid and Milestone Themes and Apps] luvjones305:
hey

here go the app called temp+cpu v2
[Motorola Droid and Milestone Themes and Apps] Hahutzy:
Small request: Can you include the version number either in the app name or display version number in app's screen (even before I load module)?

Also, does anyone have the datasheet for OMAP3440?

Wondering why you selected 66 vsel (1.38V) as the safe upper limit for stable clocks.
[Motorola Droid and Milestone Themes and Apps] miragu:
The module version that displays in the app comes directly from the module itself, by reading /proc/overclock/version. This is because, in theory (sometimes practice too ;), people load modules manually, which may be different from the one the app would try to load when we click on load module. I understand the interface isn't very good. I'm not really a GUI guy, but I'll try to make the interface clearer.

The 66 was selected mostly by eye-meter and seems to work well for everyone, which is what I aim for. Naturally it can be much lower (take a look at the tables in KernelModule wiki page), if your hardware handles it, but I don't want to agressively optimize it, I just want it to work and let people tweak the values themselves. The vsels I'm using are adjusted to the Milestone/Droid of course. OMAP3440's mpu_opps table could turn out to be very different, but things seem ok so far. One useful thing would be for you to reboot the phone, load the module, and show me the contents of /proc/overclock/mpu_opps. This way we can see the default vsels of OMAP3440 in that phone.
[Motorola Droid and Milestone Themes and Apps] willflint:
Sorry for the delay, been busy, my oldest daughter had a son! I'm a (very young, LOL) grandfather! Ok, back to business!

I uninstalled the version of the app that I got from AM, then installed the newer version of the app that you gave me. Superuser gave it rights, but again the module failed to load. I used Terminal Emulator and did the following as instructed:

When I execute that, I get:

insmod: init_module '/data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko' failed (Exec format error)

Executing that just gets me a syntax error (I even tried replacing -f w/ --force, but still no go):

insmod: can't insert '-f': No such file or directory

No, that file does not exist. The modules are attached. Hope all this info helps!
[Motorola Droid and Milestone Themes and Apps] miragu:
Wow! Congratulations! :)

To celebrate, here's an apk that will surely work ;) (it's worth a try at least, hehe)

It'll ask for on boot permissions because I'm working on autoload, but it won't do anything yet.
[Motorola Droid and Milestone Themes and Apps] bandroid842:
Hey!

Miragu, thank you for your app and work :) I have a Middle-East Milestone. I have rooted it and tested the root and it works. I installed the apk and the app opens. At first there are no options, then I load the module (allow root and I give permanent root to the app) and the options open. I move the slider to 800mhz and I apply,

but the phone instantly reboots when I do that

and just reverts to 550 again. Do I need to install this in /system in order to work? Or is it a ROM issue? Can you help? Side note: I also tried setCPU but I think I must load a kernel module first or something.

Thanks for the effort and all your work :)

EDIT: Problem fixed! I uninstalled it, then reinstalled it from Android Market and it worked :)
[Motorola Droid and Milestone Themes and Apps] willflint:
We got Good News & Bad News!

THANKS! Much appreciated! Good news is, mom & baby are home and doing fine as of Friday!

Bad news is, still a no go! :( Sorry, I tried the command line methods via Terminal Emulator and got same error messages. Including when I tried the busybox insmod WITHOUT the -f it stated "invalid module format"

Hope that helps!
[Motorola Droid and Milestone Themes and Apps] bleulin:
It's so good, i overclock it on 800mhz
[Motorola Droid and Milestone Themes and Apps] somethingdope:
is busybox installed properly ? try installing it via titanium backup...
[Motorola Droid and Milestone Themes and Apps] luvjones305:
whats busy box
[Motorola Droid and Milestone Themes and Apps] willflint:
Busybox already checked, and checked again! :)

Yes its definitely installed properly. I originally installed it w/ Titanium Backup (TiB), but then ended up installing the full copy (due to a terminal app needing it or something) too. When I open TiB it shows "OK (BusyBox 1.16.0 from app)"... and it runs just fine and works properly.
[Motorola Droid and Milestone Themes and Apps] willflint:
Busybox is...

Its an app that extends the shell of Android and allows Root users to interact with Android at the SU level with root level commands and utilities found on Unix system, but not inherently (or by default) found in an Android ROM... its need by terminal apps, TiB (Titanium Backup) and a couple other root apps (I think ROM Manager needs it too, if I'm not mistaken).
[Motorola Droid and Milestone Themes and Apps] Zub7:
Must say this is good work Miragu!

i got the app working finally, i dont know why it didnt want to work, it would force close so many times, then for some reason it just started working. anyway, all is working but im curious, becuase i have read a few times now but people are using different voltages? how are they doing this? setCPU has no option for changing voltages either.

how is it done?
[Motorola Droid and Milestone Themes and Apps] spiderx_mm:
shoot!

I'm busted. i tried to set 1000000 @ 56 and forgot to un-check auto-load on start-up.

somehow, the setting is not working for my phone, and everytime it boots up. it's frozen ...

can anyone help me urgently?

------ update -------

I just found the solution myself. :D

take out the MicroSD card and put it into to the card-reader.

browse /android/data/pt.com.darksun.milestoneoverclock/files

you'll find a file name "autoload" (i thought it's a config file and tried to open it. but it's 0 Byte and there's nothing inside the file)

so i simply delete the file, put the SD card back into the phone and boot it up.

Wow!!! ... it's neat, the O/C is not loading.

then I go to the Options and put the vsel to 58. tested and working now.
[Motorola Droid and Milestone Themes and Apps] Babis_ECE:
Hi everybody, a couple of days ago I also rooted my Milestone (with Universal Androot) and thought of overclocking it!

I downloaded the "Milestone Overclock" app and opened it. I see the bar, "Selected Frequency 550MHz 56vsel", and 2 buttons:

"Load Module" - "Refresh". "The Apply" button is grey, not pushable.

What should I do to overclock it to 800MHz? Press Load Module first, then scroll the bar to the right, until it reaches 800MHz and hit Apply?

And another question: Will I see a difference in performance with 800MHz, or it isn't worth the risk?

Thank you for your time, I am just getting to know about Milestone hacks.

:)

Edit: OK, I read a few more things and did it! Problem is: When scrolling the bar to the right upto 800MHz, vsel goes directly to 66 vsel. From what i understand there's no need to do so, 56 vsel are fine. So I go to Settings, to Custom select 800Mhz and 56 vesl, but it cannot be "saved". I can only have 800Mhz with 66 vsel from the scrolling bar.

Any ideas??
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
Hi,

I'm pretty new to overclocking as well, but, you pretty much have the whole idea (Load module, select desired frequency with slider, Apply).

I'd suggest 800MHz as a start. It's pretty safe starting place from what I've read.

The best part is, if you run into any problems, just reboot, and because you haven't set the "AutoLoad" feature, it will return to the stock 550Mhz.
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
Hi,

I'm running into the same problem. When I set the "AutoLoad" option and specify my desired frequency and vsel, and then press OK, it creates the file: /sdcard/Android/data/pt.com.darksun.milestoneoverclock/files/autoload, but it's empty.

And when I reboot, it returns back to the stock frequency of 550Mhz.

Am I missing a step to make my changes persistent?

Thanks!
[Motorola Droid and Milestone Themes and Apps] miragu:
The custom rate/vsel you specify in the settings appears in the last entry of the frequency bar.

That's correct. I was fearful of putting real settings in there because the file is world writable by any app with external storage permissions, which means almost any app would have the potential to become evil and fry your cpu.

That's very strange. Keep in mind the autoload only activates when the sdcard is inserted during boot and after the disk check completes, so it may take longer than the perceived boot time. The frequency it sets is the last applied frequency in the app. As i said above, custom frequencies appear in the last entry of the frequency bar.
[Motorola Droid and Milestone Themes and Apps] Babis_ECE:
Thank you very much for your help! :)

Before doing so, which overclocked combination (Frequency-Voltage) do you think is the best regarding CPU Power-Stability-Low Battery Consumption?

From what I am reading 800MHz-56 vsel is a good one, that's why I wanted to use that one.

Keep up the excellent work you are doing with this app!
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
Thanks for the prompt reply!

I appreciate the design details of the empty file on the SD card. That was a wise precaution.

My bad. It's working exactly the way you detailed. I wasn't waiting long enough and the SD card check didn't have time to complete before I checked the CPU speed.

It was very helpful to know that the custom specifications was on the far left (last entry of the slider).

I would like to suggest possibly adding these details to the applications info dialog or the main page for future versions.

Thanks very much for your help, and for your efforts in creating such a useful app.
[Motorola Droid and Milestone Themes and Apps] miragu:
There's no "best". 800 Mhz is regarded as pretty safe. I'm very conservative with the vsel but it's true that you can use lower values than the default ones in the app.

Read the FAQ (last question): https://code.google.com/p/milestone-overclock/wiki/FAQ

And the table at android-hilfe: https://code.google.com/p/milestone-overclock/wiki/KernelModule#Frequencies
[Motorola Droid and Milestone Themes and Apps] Babis_ECE:
Thnx again, now I understand..

I will try to Overclock @ 1GHz and use your default settings. ;)
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
Hi miragu,

When I run Milestone-Overclock with setCPU, it seems like Milestone-Overclock always loads the minimum frequency selection (not my custom one) at boot.

I'm able to manually change it after. Before I installed setCPU, it Milestone-Overclock properly set my custom frequency on boot every time.

Am I missing something to get them to work together better when booting?

Thanks!
[Motorola Droid and Milestone Themes and Apps] Beako:
I'm using 1.4 on my XT720, but there's no Auto-Load on Boot checkbox in the settings. How do I get it to show up?

Edit: Got 1.4.2, now it shows up!
[Motorola Droid and Milestone Themes and Apps] solnyshok:
Hi, I use 44vsel with 800mhz. What are Vsel values set for 125, 250, 500 mhz? I am afraid those values are set automatically too high, but I don't know how to set those manually
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
For some reason, Milestone-Overclock doesn't let me move the slide bar all the way to the right any more to access the custom setting.

What would cause this? Or is this a bug?

Thanks!

Update:

I discovered that if you change a parameter in the advanced custom settings (eg vsel), the slider moves all the way to the right again.

The app is behaving like I hadn't already entered custom values earlier. If I hadn't, I'd understand why I couldn't move the slider to the custom area to the right, but, I had previously.

Thanks!
[Motorola Droid and Milestone Themes and Apps] Ph0z3:
Quick question...

If I'm using milestone-overclock, does it matter if I use the over-clock menu in the GOT-recovery menu? I have it set to 125/1ghz @ 56Vsel. I use the "on demand" throttler for control, but still curious as to whether or not the got-overclock menu works better.

Also, if I use that would I still need to use milestone-overclock?
[Motorola Droid and Milestone Themes and Apps] njmata:
SetCPU time in state

Hi, I have this problem, I set manually my table of frecuencies with min freq is 175. When I run SetCpu show me that is running at that frecuencies, but at the info on time in state the min value show is 125 and no show me 175, how can I correct this problem? Exist any solution for this?
[Motorola Droid and Milestone Themes and Apps] mardurhack:
I would like to know the same thing...How are the lowest values' VSELs set? I mean: if I set the max VSEL at 48 then ANY frequencies won't overcome this value right? Even if 700 Mhz default VSEL is (i.e.) 56 the app will limit it to 48? Am I wrong? Thanks in advance!
[Motorola Droid and Milestone Themes and Apps] petyo.tsanov:
this is my "71_overclock.sh" :

#!/system/bin/sh

/system/bin/insmod /system/lib/modules/overclock.ko omap2_clk_init_cpufreq_table_addr=0xc004e4b0
echo 62 > /proc/overclock/max_vsel
echo 1100000 > /proc/overclock/max_rate
echo "1 800000" > /proc/overclock/freq_table
echo "4 800000000 42" > /proc/overclock/mpu_opps
echo "2 550000" > /proc/overclock/freq_table
echo "3 550000000 30" > /proc/overclock/mpu_opps
echo "3 250000" > /proc/overclock/freq_table
echo "2 250000000 20" > /proc/overclock/mpu_opps

in conservative governor work nice :)
[Motorola Droid and Milestone Themes and Apps] AlmaMater:
Greetings,

Exactly were do you have this .sh located in your root directory?

I ahve been reading and doing several testing and I cannot get it to work.

1. test A

Renamed mot_boot_mode to mot_boot_mode.bin, and created a mot_boot_mode like this:

#!/system/bin/sh
export PATH=/system/bin:$PATH
#run the original binary
mot_boot_mode.bin
insmod /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko
echo 60 > /proc/overclock/max_vsel
echo 900000 > /proc/overclock/max_rate
echo "1 750000" > /proc/overclock/freq_table
echo "4 750000000 58" > /proc/overclock/mpu_opps
echo "2 500000" > /proc/overclock/freq_table
echo "3 500000000 56" > /proc/overclock/mpu_opps
echo "3 250000" > /proc/overclock/freq_table
echo "2 250000000 40" > /proc/overclock/mpu_opps
insmod /system/lib/modules/cpufreq_conservative.ko
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

chmod 775 both files afterwards

Result = does not pass the motorola Logo (tried different vsel values as well)

cpufreq_conservative.ko and overclock.ko are in the correct folders

Tried also with:

/system/bin/insmod /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko omap2_clk_init_cpufreq_table_addr=0xc004e4b0
echo 0xc0295704 > /proc/overclock/cpufreq_stats_update_addr
echo 60 > /proc/overclock/max_vsel
echo 900000 > /proc/overclock/max_rate
echo "1 125000000 28" > /proc/overclock/mpu_opps
echo "2 250000000 40" > /proc/overclock/mpu_opps
echo "3 500000000 56" > /proc/overclock/mpu_opps
echo "4 750000000 58" > /proc/overclock/mpu_opps
echo "0 1000000" > proc/overclock/freq_table
echo "1 500000" > proc/overclock/freq_table
echo "2 250000" > proc/overclock/freq_table
echo "3 125000" > proc/overclock/freq_table

And again, I cannot boot

What is the best aproach to load the overvlock module with conservative governor?

Thanks
[Motorola Droid and Milestone Themes and Apps] petyo.tsanov:
/system/bin/boot_script

here is my "71_overclock.sh"

http://android.doshaska.net/conservative
[Motorola Droid and Milestone Themes and Apps] AlmaMater:
Thanks

I finally got it to work. It was a problem with the permission of the overclock module.

I have it like this:

#!/system/bin/sh
export PATH=/system/bin:$PATH
#run the original binary
mot_boot_mode.bin
insmod /system/lib/modules/overclock_stats.ko
echo 62 > /proc/overclock/max_vsel
echo 900000 > /proc/overclock/max_rate
echo "1 750000" > /proc/overclock/freq_table
echo "4 750000000 58" > /proc/overclock/mpu_opps
echo "2 500000" > /proc/overclock/freq_table
echo "3 500000000 56" > /proc/overclock/mpu_opps
echo "3 250000" > /proc/overclock/freq_table
echo "2 250000000 40" > /proc/overclock/mpu_opps
insmod /system/lib/modules/cpufreq_conservative.ko
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

Using overclock_stats.ko from http://android.doshaska.net/statspatch

:)
[Motorola Droid and Milestone Themes and Apps] petyo.tsanov:
oki :) Why not try it with lower voltage?

#!/system/bin/sh
export PATH=/system/bin:$PATH
#run the original binary
mot_boot_mode.bin
insmod /system/lib/modules/overclock_stats.ko
echo 56 > /proc/overclock/max_vsel
echo 1000000 > /proc/overclock/max_rate
echo "1 750000" > /proc/overclock/freq_table
echo "4 750000000 42" > /proc/overclock/mpu_opps
echo "2 500000" > /proc/overclock/freq_table
echo "3 500000000 30" > /proc/overclock/mpu_opps
echo "3 250000" > /proc/overclock/freq_table
echo "2 250000000 20" > /proc/overclock/mpu_opps
insmod /system/lib/modules/cpufreq_conservative.ko
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

or

#!/system/bin/sh
export PATH=/system/bin:$PATH
#run the original binary
mot_boot_mode.bin
insmod /system/lib/modules/overclock_stats.ko
echo 60 > /proc/overclock/max_vsel
echo 1000000 > /proc/overclock/max_rate
echo "1 750000" > /proc/overclock/freq_table
echo "4 750000000 48" > /proc/overclock/mpu_opps
echo "2 500000" > /proc/overclock/freq_table
echo "3 500000000 36" > /proc/overclock/mpu_opps
echo "3 250000" > /proc/overclock/freq_table
echo "2 250000000 26" > /proc/overclock/mpu_opps
insmod /system/lib/modules/cpufreq_conservative.ko
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

my scaling now is

work nice, no random reboots for 1-2days
[Motorola Droid and Milestone Themes and Apps] AlmaMater:
I lowered the voltages and everything is working great :)
[Motorola Droid and Milestone Themes and Apps] GUARDIANBD:
my milestone rooted with "universal androot" and @Ce'd with "Milestone Overclock"

@verclocked 550@56=>800@44vesl very fast and stable.

can i use lower voltage's in 800mhz?

did some1 used 900@44vesl?
[Motorola Droid and Milestone Themes and Apps] vladstercr:
Until today I was using 800mhz with 68vsel...It worked fine but the battery life was lower

Now I'm using a frequency of 800mhz and 58 vsel...so far so good...and the battery life seems to be improved.

Also using SetCpu with profiles activated.
[Motorola Droid and Milestone Themes and Apps] mardurhack:
With 800 Mhz you can safely set VSEL = 47 ;) So is mine... Great performance and a good battery life ;) Those VSELs are good for at least 1Ghz!! :P
[Motorola Droid and Milestone Themes and Apps] vladstercr:
how long have you been using a 47 vsel with 800 mhz?
[Motorola Droid and Milestone Themes and Apps] mardurhack:
3, 3.5 monts with 3 different roms (EclairMod v2, v3 and Telus V4). The system is perfectly STABLE!
[Motorola Droid and Milestone Themes and Apps] vladstercr:
great...will try it too...that configuration works with any rom, right? I still have the stock 2.1update 1 on my milestone and the phone is rooted
[Motorola Droid and Milestone Themes and Apps] Flyview:
Could someone write up how one goes about setting custom vsels for EACH of the 5 frequencies the phone scales through? The fifth being the custom overclocked one.

I don't want it to be vsel max 48 for 800MHz for example, but then go to the stock vsel 56 for slower speeds. Or is it not doing this anyway?
[Motorola Droid and Milestone Themes and Apps] vladstercr:
go to Terminal and write:

1. #su

2. #echo 800000 > /proc/overclock/max_rate

3. #echo 56 > /proc/overclock/max_vsel

56 is the vsel...you can choose whatever vsel you want...but you must choose it properly so you wont get into trouble...

Remember: very low vsels with very high cpu rate can cause damage to your phone.

Also, check the frequency table for a better understanding of this:

http://code.google.com/p/milestone-overclock/wiki/KernelModule

here's the max_vsel table:

max_vsel

Frequency	Stable (>=)	Possibly unstable	Probably unstable (<=)

550	56

800	58	56 .. 54	52

1000	60	58 .. 56	54

1100	64	62 .. 60	58

1200*	76	74 .. 70	68

1330* 84

*: Always unstable in some CPUs! Will damage CPU on prolonged use. According to OMAP3430 datasheet, max_vsel up to 66 should be acceptable. Above 80 will certainly severly damage the CPU on long-term scale. The most appropriate and stable settings seem to be either 800 MHz or 1000 MHz at max_vsel of 56 to 60.
[Motorola Droid and Milestone Themes and Apps] ElvisFAng:
awsome!!!! Thanks for sharing!
[Motorola Droid and Milestone Themes and Apps] Flyview:
Multumesc Vlad ;)

Did you mean high VSEL with high cpu rate is bad for the CPU? Didn't know too low is bad as long as it's stable...

What is terminal? I have to enter it manually every time? I want to set vself for each frequency the phone scales through, not just the top speed (which is what Milestone Overclock let's you control)
[Motorola Droid and Milestone Themes and Apps] vladstercr:
Cu placere ;)

No...i meant low vsel with very high cpu because a higher speed on the processor and a lower charge into the battery would make the system very unstable...it's a logical assumption...

Dont you know what is terminal?

it's a linux shell where you interact with the system by entering commands...it's like cmd in windows.

You can assign a vsel to each frequency you want...it is well explained in the link I provided with my earlier post...you can also set your options to be loaded on boot...just check the link... ;)
[Motorola Droid and Milestone Themes and Apps] mardurhack:
If you set max VSEL this won't ever overcome the value you decided...But I'm aware there could be another problem: What if 125Mhz uses the same VSEL as 800Mhz (48)? THIS is important to understand! Every rom should provide a way to manually change the overclock frequencies AND VSELs.
[Motorola Droid and Milestone Themes and Apps] milestonefail:
what's the best way to test/stress your cpu to see if the vsel you set for the clock speed is too low (and produces random reboots)? i thought i was stable at 900mhz 58vsel, but lately trying to do certain things, like playing intensive games, has caused my milestone to reboot. i even tested it using the stress test in setCPU. laying a game until is reboots is not a very effective way to test the vsel setting :P any suggestions?

thanks
[Motorola Droid and Milestone Themes and Apps] knowthenazz:
The two tests I do is play 50-65 levels of RoboDefence, and watch a movie or two for 3-4 hours.