yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] KShatzkes:
I go straight to overclocking. No need to adb push anything again.

Yes, I noticed this as well before, as it has happened to me once before. I'm personally wondering if the system is somehow reverting our changes to it. It is just surprising that its happening even without a reboot.

Again, I'm hoping its a one time thing, but if its happening to other people, it may become an issue.
[G2 and Desire Z Android Development] liberalswine:
Ok just rebooted, and tried clicking noreboot....but saying vision ko deleted not found. I am so lost...

However, clicked OC again (unedited values) and was able to get it back up to 1ghz. I would just edit the value in OC but the script doesn't seem to have any values to edit,,,oc= insmod /data/local/vision_oc.ko

Futhermore, whenever changing cpu setting, am I supposed to run noreboot everytime, or is that a one time thing?
[G2 and Desire Z Android Development] styles24:
Works great. Thanks :D
[G2 and Desire Z Android Development] ddgarcia05:
Found it. He answered my question a hours ago. It's similar.
[G2 and Desire Z Android Development] KShatzkes:
It depends on your scripts you are running. Personally, this is what I did, and I think it may be a good guide for some people here. I'm new to Android but I've been learning pretty fast.

I first adb pushed the vision_oc.ko file to the /data/local folder using my desktop computer. How do you adb push? Cyanogen Wiki has a good guide on how to get this going on your computer (A caveat with the G2 is you may run into driver issues. If this happens, download PdaNet onto your computer, and it will install all the drivers you need for adb.). I believe everyone should use adb at some point or another, since it is an invaluable tool. I then set up 6 scripts in GScript to control the overclock:

1. 1017.6 MHz Default

insmod /data/local/vision_oc.ko

2. 806.4 MHz Factory Setting

rmmod vision_oc.ko

insmod /data/local/vision_oc.ko pll2_l_val=42

3. 1209.6 MHz Overclock

rmmod vision_oc.ko

insmod /data/local/vision_oc.ko pll2_l_val=63

4. 1305.6 MHz Overclock

rmmod vision_oc.ko

insmod /data/local/vision_oc.ko pll2_l_val=68

5. 1401.6 MHz Overclock

rmmod vision_oc.ko

insmod /data/local/vision_oc.ko pll2_l_val=73

6. Change CPU

rmmod vision_oc.ko

Basically with these scripts, I can control everything. So for example, when I reboot my phone, and everything gets wiped, VISIONary runs, my phone gets rooted, and I run the 1017.6 MHz Default script to start the overclock. From there, I can click any other overclock script to change the CPU to my desired speed. There is no need to click the Change CPU script to switch between overclock settings.

The last script is included in there because in order for me to change back to the 1017.6 Default script, I need to run the Change CPU script. That is the only purpose for it. The reason why the Change CPU script is not included in the default is because then the Default script won't run in the first place after rebooting.

Hopefully this helps some people out!
[G2 and Desire Z Android Development] JXTONY:
"Beautiful"
[G2 and Desire Z Android Development] liberalswine:
thanks for the help! I finally got it at the speed I want it at now.

Now, when running setcpu, do I have to change device and auto detect and change profiles when doing a reboot. Also, what temp should I set it at to utilize lower cpu speeds? I currently set it at 120 degrees
[G2 and Desire Z Android Development] KShatzkes:
No. SetCPU settings and profiles should stay the same even through reboot. Only thing you need to worry about after a reboot is gaining root and running the overclock scripts again.
[G2 and Desire Z Android Development] sheek360:
holy crap

how the hell can the g2 be overclocked so far?!?

isnt this like 600+ mhz over stock?
[G2 and Desire Z Android Development] ross75:
Anyone know how much we can raise the voltage without too much risk? I cant seem to find it on google
[G2 and Desire Z Android Development] Radioactive Death:
Thanks a ton! I'm just running at 1Ghz for now, bought SetCPU for support
[G2 and Desire Z Android Development] liberalswine:
Also, please let me know what temp I should set setcpu profile to. I'm not sure if 120 degrees is safe or not
[G2 and Desire Z Android Development] Corylulu:
Keep it in the low 30's C
[G2 and Desire Z Android Development] Hosermage:
How can we be sure that setCPU is reporting the right numbers? Cuz I ran the rmmod command to not overclock and went back to setCPU, it still shows I'm running at 1344MHz.
[G2 and Desire Z Android Development] ddgarcia05:
Well, one user explained how he was not able a psx game until he overclocked the device. That alone should stand for something. Another thing the higher bench marks should also be a clear indicator.
[G2 and Desire Z Android Development] KShatzkes:
Honestly, so I felt on the safe side as well, I made a script that would change the CPU to 806.4 MHz, the setting the phone is shipped with. This is so I would be sure that the overclock is off.
[G2 and Desire Z Android Development] ImSoHungry:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=53

On another note, what are the highest clock speeds anyone are getting before lock ups?
[G2 and Desire Z Android Development] waiting89:
Me not being to techky can someone put how to make new script how to make it oc and back to stock with one click.
[G2 and Desire Z Android Development] KShatzkes:
Read here. Simple enough.
[G2 and Desire Z Android Development] ImSoHungry:
He needs GScript first

Here ya go
[G2 and Desire Z Android Development] mcp2009:
I've been at 1497mhz since yesterday with no probs. Just set value to 78
[G2 and Desire Z Android Development] Jigga0o7:
Mine was stable at that speed until it restarted while I was browsing a website last night. I brought mine down to 1.3ghz for 24/7 use since theres really no need to keep it at 1.42ghz.
[G2 and Desire Z Android Development] RuncaProfundus:
You are my hero.
[G2 and Desire Z Android Development] sinistersai4d4d:
Thanks a lot man.. I did get eventually figure it out. edit- these directions were spot on.

Is everybody using 245 for the min?
[G2 and Desire Z Android Development] Dalamak:
I know lol, most of the time its just people not fully reading the insrtuctions, figured id repeat verbatim :-)
[G2 and Desire Z Android Development] dyndragon:
Think it would be possible to start implementing kernel tweaks like audio boost from other kernels (like N1)?
[G2 and Desire Z Android Development] Flippy125:
I am at 1.56GHz stable with no tweaks to the voltage

EDIT: Jinxed myself =( right after I posted this it locked up
[G2 and Desire Z Android Development] mcp2009:
O ooook. Yea well to be fair I know my instructions weren't clear and the video I made sucked, but it seems like people aren't having that much trouble anymore. I helped like 3 people through gtalk hopefully they sprend the knowledge
[G2 and Desire Z Android Development] Dalamak:
Dont be so hard on yourself lol your a winner
[G2 and Desire Z Android Development] Dalamak:
Oh god audio boost, what a god send that would be
[G2 and Desire Z Android Development] Reignzone:
http://www.tweak3d.net/forums/imagehosting/12254a885fadccc3b.gif

AMAZING!!!
[G2 and Desire Z Android Development] elracing21:
I have been trying to... hehe I have posted replies to people on here using your method.

Posted on my T-mobile G(spot)2 xD
[G2 and Desire Z Android Development] DJ ELITE:
BIG thanks coolbho3000! just bought SetCPU as well. ;)

and equal thanks to mcp2009 for the SH files! :D
[G2 and Desire Z Android Development] NikolaiT:
So, its 0.02 ghz faster than the new macbook airs. Makes me laugh. (no trolling here, I'm just stating how funny it is a phone can theoreticlly faster then a netbook (by GHz, however that's not everything.)
[G2 and Desire Z Android Development] cam_hamlin:
Yeeeesssssss...!!!!
[G2 and Desire Z Android Development] soundslikemitch:
What he said. I am going to download setcpu from the market and it is blazing. I AM SO HAPPY!
[G2 and Desire Z Android Development] KShatzkes:
Okay, I understand that. I have ADB installed on my computer without SDK. I am wondering where do I put vision_oc.ko on my computer to push it to my phone? Which folder?
[G2 and Desire Z Android Development] mcp2009:
i just made made some sh files and use gscript (free version in market) and just load the scripts and run them as I please. The one to change overclock without rebooting is called noreboot.sh, the one for ocing to 1ghz is called oc.sh and the one for ocing to 1.42ghz is called oshitttt.sh. I attached all 3 in a zip just unzip and put them into a folder called gscript on your sd then download gscript and open it, press menu, and add script and load file. I like using gscript more then typing in the terminal :) hope this helps

Edit: heres one to copy the ko file to /data/local/ its called cpoc.sh and it's zipped too. just make sure the ko file is on the root of the sd card

Edit 2: Great video tutorial made by ddgarcia05 (good job man) http://www.youtube.com/watch?v=f4xZ7lnP_yQ and also try kingklicks modded governor it's awesome
[G2 and Desire Z Android Development] soundslikemitch:
it shouldn't matter just do adb push <path to file> /data/local
[G2 and Desire Z Android Development] Arcadia310:
ADB is within the android sdk right? What exactly does the term push mean? Do I just copy the code that's in the original post into the terminal emulator and change the value to what I want?
[G2 and Desire Z Android Development] soundslikemitch:
adb push is what send the file from your computer onto the phone.
[G2 and Desire Z Android Development] haxzamatic:
Awesome work! About to get toasty :)
[G2 and Desire Z Android Development] Arcadia310:
So with this method I can overclock the phone without using a computer?
[G2 and Desire Z Android Development] mcp2009:
try what i posted
[G2 and Desire Z Android Development] aacrabtree:
The same folder that adb is in. Or you can manually locate it, in which case the easiest thing to do is put it on your C:\ drive in Windows, or your user folder on a Mac. Linux, I'm not positive, but I think it's the same as (or similar to) the Mac.

So Windows, it would go something like

adb push C:\vision_oc.ko /data/local

Mac

adb push users/yourname/vision_oc.ko /data/local
[G2 and Desire Z Android Development] soundslikemitch:
Best part of this is the fact I can play PSX games with no lag. This is now running better then my N1. All I need now is a radio update and I will be 100% happy with this phone.
[G2 and Desire Z Android Development] soundslikemitch:
you will still need your computer to push the files
[G2 and Desire Z Android Development] KShatzkes:
Okay, I think I got it. Basically, if I am seeing setCPU show 1017 MHZ, it must have worked, right?
[G2 and Desire Z Android Development] mcp2009:
no you don't you can use root explorer or terminal commands. for example put the ko file on root of sd and run cp /sdcard/vision_oc.ko /data/local/ . I made some sh scripts try em
[G2 and Desire Z Android Development] flarbear:
It would be interesting to see the Quadrant Advanced sub-scores for this mod. The stock G2 has a slightly lower CPU score than N1, but a way higher IO score. The memory and GPU scores are very similar or only marginally better than the N1 (probably bad weights in calculating their overall score).
[G2 and Desire Z Android Development] Jigga0o7:
I ramped mine up to 1.54ghz and got the #1 spot for G2's on Linpack. Sweeeeeeeeet.
[G2 and Desire Z Android Development] Jigga0o7:
I'll have it for you in a min.
[G2 and Desire Z Android Development] wilnotdie:
Exactly as mcp says. U don't need a comp.

Download and save to root of ur sdcard. Open terminal..

Su

Cp /sdcard/vision_oc.ko /data/local/vision_oc.ko

Insmod /data/local/vision_oc.ko

This will get u the default 1ghz

If u want more, just do

rmmod vision_oc.ko

insmod /data/local/vision_oc.ko pll2_l_val=74

This will reset it and the 2nd cmd will set it to 1.42ghz

Just repeat the last 2 steps if u want to reset, raise or lower the speed. But as OP states its probablly not gonna be very stable at anything above 74.

I just copied and pasted into the terminal. Or make it a lil easier and use mcp's method/script

Have fun. :)
[G2 and Desire Z Android Development] coolbho3000:
Nice! Mine crashes before then. :confused:
[G2 and Desire Z Android Development] KShatzkes:
Alright, so I think I now found my ideal set up. I wanted to be able to synchronize all this with VISIONary, but I saw a bunch of people were having issues with setting up their visionary.sh script with too high an overclock and locking their systems at every reboot. So what I did was used the default 1017.6 MHz in my visionary.sh script, which is definitely stable enough that every G2 should handle. So in the visionary.sh, I had:

su
insmod /data/local/vision_oc.ko

I then adb pushed this to /data/local. This would make my phone overclock to 1017.6 MHz everytime I reboot without having to do anything. To the setup I explained in detail before, I then altered script #1 (1017.6 MHz) to this:

rmmod vision_oc.ko
insmod /data/local/vision_oc.ko

This basically allowed me to get rid of the last script (6). Now all I need to ever do if I want to change the overclock is click on that one specific script for each overclock value I set.

Might seem meaningless to some, but the less clicks I have to go through to change my settings, the happier I am. :)
[G2 and Desire Z Android Development] mcp2009:
Lol cool hopefully everybodys understanding it. Its actually quite easy once you get the hang of it

Sent from my T-Mobile G2
[G2 and Desire Z Android Development] mcp2009:
Lol thank you. I was gonna make a new youtube video but it seems as if everybody is gettin the hang of it now

Sent from my T-Mobile G2
[G2 and Desire Z Android Development] gilnino:
I had a problem with rmmod. Always got an error so took the gscript app and now can clock different speeds. It is pretty easy. Set cpu cleared up any issues I might have (although no issues at all yet ) with battery and overheating. Now I can concentrate on which rom would be best on my g1 for my son. The oooshiiiittt sh is well named also.

Sent from my G2 root by visionary using my XDA app
[G2 and Desire Z Android Development] mcp2009:
Lol yessssssss I was waiting for someone to say something bout my oshittt.sh. It fits it very well :-)

Sent from my T-Mobile G2
[G2 and Desire Z Android Development] TL24:
So is anyone else experiancing lag when unlocking their phones? If so and you've solved the issue, what exactly did you do?

I'm using the gscript route and that works just fine, but I'm not sure whats making my phone lag after i unlock it... Could it be my setCUP settings? I currently have it set to:

Max: 1420mhz

Min: 245mhz

Scaling: ondemand
[G2 and Desire Z Android Development] Radioactive Death:
Thanks for the tips.
[G2 and Desire Z Android Development] crazedfan88:
Ok everyone here is the deal. Im not a complete noob, but cannot seem to get this to work. I have done the following:

-Rooted with VISIONary

-Downloaded GScript

-Purchased SetCPU

-Read this entire thread...

-and followed the instructional video on youtube uploaded by: ddgarcia05

Seems somehow i made my cpu slower. Anyone out there willing to help me out on this???? I obviously need more speific noob help, one on one.

I AM WILLING TO PAY SOMEONE THRU PayPal.

If your interested, please hit me up on "GTALK" ASAP: crazedfan88@gmail.com

Thank you everyone here for the hard work. Wish I knew what im doing wrong.
[G2 and Desire Z Android Development] Xerott:
So I got my phone overclocked just fine and dandy. It works with the scripts to 1ghz and 1.4ghz. Go to setcpu and it reports the correct speeds.

Now is where the tricky part comes in. When I click on Profiles then go back to the Main screen is setCPU, it reports that the max is back at 800mhz. I can reoverclock it and it reports the correct speed, but as soon as I go to the profiles screen it resets it to 800mhz.

Any ideas what's going on? So far it seems like that's the only thing that resets it, though I've only had it overclocked for about 10 min now.

Edit: It also reset itself to 800mhz after x amount of time as others have reported. :mad:
[G2 and Desire Z Android Development] sinistersai4d4d:
Im using 368 as the minimum and it seemed to fix it.

Sent from my T-Mobile G2 using telepathy and unicorn dust!
[G2 and Desire Z Android Development] TL24:
EDIT:

Yeah i've tried all that.. Still no luck... How is this not happening to anyone else?!
[G2 and Desire Z Android Development] KShatzkes:
Where is it you are running into the problem?
[G2 and Desire Z Android Development] wiimonkey9:
Bought SetCPU just to say thanks :)
[G2 and Desire Z Android Development] crazedfan88:
Hard to explain. Do you have gtalk? Like I said I am willing to pay.
[G2 and Desire Z Android Development] KShatzkes:
Eh, I generally don't like to give out any personal stuff like email and such on online forums. But we can try and help you on here.

And don't worry about paying. Thats not cool. =P
[G2 and Desire Z Android Development] crazedfan88:
ok well i dont know where i went wrong. like i said i followed that video to the "T".

Then when i goto SETCPU the max is 528????
[G2 and Desire Z Android Development] sinistersai4d4d:
Your right I spoke to soon. I will try to delete setcpu widget before deleting whole app.

Sent from my T-Mobile G2 using telepathy and unicorn dust!
[G2 and Desire Z Android Development] TL24:
I see what you did... You'll want to uninstall setCPU and re-install it... When you're prompted to select the device let setCPU select the frequencies for you - this will be the very first option.
[G2 and Desire Z Android Development] crazedfan88:
ok im gunna try that
[G2 and Desire Z Android Development] thatruth132:
or you can click menu and select device selection thats sort of a reset button for it
[G2 and Desire Z Android Development] TL24:
That too, forgot about that lol
[G2 and Desire Z Android Development] crazedfan88:
OMG that was it!!!! Thankyou so much!!!!!!!!!!

ok now for more noob questions: I am on Main for "SETCPU"

-What should the max be set at

-What should the min be set at

-scaling should be "ondemand"

thankyou so much
[G2 and Desire Z Android Development] whitie:
I as well bought setcpu to say thanks

here are some screen caps
[G2 and Desire Z Android Development] TL24:
I think I found the isse with the lag, its the setCPU widget? Ever since I took it off my phone hasn't lagged at all for the past hour or so now.

I'm crossin' my fingers that was the issue!
[G2 and Desire Z Android Development] cl2eep:
Holy crap, I this works almost too easily. I wish I could buy Setcpu twice, cause I already owned it months ago. Thanks.

Question, are you guys setting up scaling profiles on SetCPU? I notice quite a bit of battery impact even at 1ghz, and even when clocking back to 768. I set profiles up as soon as I oced, but I'm wondering if it would just be better left alone. My G2 has always had stellar battery life for an Android device, so I'd be sad to lose it. Not sad enough to turn the oc off, but pretty sad.
[G2 and Desire Z Android Development] crazedfan88:
ok update: I run the 1017 and it rubs smooth.

but when i try to run 1.42ghz "oshitttt.sh." it freezes right away.....

any ideas?
[G2 and Desire Z Android Development] KShatzkes:
Simple. Your phone can't handle that speed. Just because the OP was able to get that speed doesn't mean everyone will. Every phone is different. Just change the value in the script to a lower one until it runs smoothly.
[G2 and Desire Z Android Development] waiting89:
Totally agree with you, mines is really nice stable at 1.382GHz=72 right, I can set 73 but after a few sec it freezes. Now I today did it to my friend's phone and OMG I push it to 78 and was still working then after like a minute it froze so his is nice and stable at 77 which was lke 1.48 i think..... There is were EVERY phone is different.
[G2 and Desire Z Android Development] crazedfan88:
Thankyou for the advice and tips. It made it very simple, I changed the value to 1.382GHz=72 and now works smooth.

One more question(for now lol) I have the max at 1017600

Should the min be the same or lower???? Will it hurt the phone if they are the same?
[G2 and Desire Z Android Development] KShatzkes:
I keep my min at the lowest possible, and then have it set for "on demand." no need for the phone to be maxxed out when it doesn't need to be.
[G2 and Desire Z Android Development] fradog23:
Took me a couple of tries but I got it running at 1.42 smooth as you know what! Thanked you buy purchasing setcpu but wanted to say thanks personally.
[G2 and Desire Z Android Development] crazedfan88:
good point, i just changed mine to the lowest on min. Also I cant find that "App/program" where you can take "Screenshots on your G2"
[G2 and Desire Z Android Development] KShatzkes:
The app you are looking for is Shootme.
[G2 and Desire Z Android Development] crazedfan88:
Thankyou again. Man i love these forums!
[G2 and Desire Z Android Development] whitie:
Mine has been at 1.45 all day and hasnt hammered my battery too bad even with the constant linpack and quadrent runs.
[G2 and Desire Z Android Development] funkeee:
I ran the script at level 74 with no issues for a while until root expired. Then I rebooted and tried level 74 (1420MHz) again and it froze. As did 73 and 70. Default (53) works fine. Any reason why it worked in the first place?
[G2 and Desire Z Android Development] Arcadia310:
What profiles do you have for when the screen is turned off?
[G2 and Desire Z Android Development] dracoaffectus:
Thank you for making this!

I've had my phone running at 1.55Ghz for the last 7-8 hours, and it hasn't been giving me any problems. That's a value of 81, when I try 82 it runs ok until I try to use the browser then it freezes. Anything higher locks up the phone almost instantly.

My linpack scores are maxing out at around 54.5 Mflops (69th overall for android devices) :)

I managed to go to up to 82 just to run linpack and got 54.901 (65th overall), trying again with 83 but my phone locked up before i could run the benchmark.

Thanks again to the OP for making this! :)
[G2 and Desire Z Android Development] ddgarcia05:
Anyone know how to revert setcpu back to default. I was just got the scare of my life with a SOD. I pressed the power key, my buttons lit up but the screen was black. Home key made it vibrate and all but nothing on the screen. This was on the 1ghz script. SetCPU was at 1017 max. and 245 min. Am I over reacting? I'm a bit paranoid now, I came from an HD2 where I was plagued with SOD.
[G2 and Desire Z Android Development] TL24:
No profiles setup, but I think I found the reason for the lag... its the setcpu widget, now that I removed it, the phone is running as smooth as butter! Ill monitor it for the day tomorrow to make sure it was the issue.
[G2 and Desire Z Android Development] dracoaffectus:
Turning off your phone or pulling out the battery and restarting reverts the phone back to it's original state, without root and without overclocking.

or if you want to just get rid of the overclocking, open your terminal emulator and enter rmmod vision_oc.ko
[G2 and Desire Z Android Development] Arcadia310:
Don't even worry man, stuff like that happens all the time.
[G2 and Desire Z Android Development] ddgarcia05:
Cool, Thanks, I'll just have it on reserve for now.
[G2 and Desire Z Android Development] Zak Jones!:
I love you so much. Just sayin'. <3
[G2 and Desire Z Android Development] el2minikno:
Great work!! :eek::eek:
[G2 and Desire Z Android Development] Chuckmoney:
Has anyone tried tweaking the voltage at all?

if so, what settings are you using and how are the results.
[G2 and Desire Z Android Development] apueb008:
This. Very interested in other's settings...
[G2 and Desire Z Android Development] rudeguy:
Great work!

I'm kind of digging the fact that even if I mess up, I just have to reboot the phone and all is well again.

I'm coming from a Vibrant where any mis-step at all resulted in reflashing everything with Odin at least once...usually twice.

Keep up the good work OP!!!