yashsingh1/xdaforums huggingface dataset:
[G1 Apps and Games] damnoregonian:
well... i don't mind providing basic procedure and source, i just don't want to get dragged into level 1 support of the procedure.

i'll go ahead and package up some source, prebuilt boot images based on JF's RC33 (which is what i run) and a basic procedure.
[G1 Apps and Games] damnoregonian:
on a side note,

as the kernel is entirely GPL, in the case that this program uses a kernel module built off of the kernel sources to do the switching (as i said, cpufreq is not enabled, so this is the only way i know of to do it, but i have not analyzed how his program works as i refuse to pay for this sort of thing) he would do well to follow the word of the license and release the source to said module.

it'd be a shame to be turned into a pariah for a dollar market app.

in the case that there is some userspace interface for setting the cpu frequency, ignore this.
[G1 Apps and Games] ivanmmj:
If you make the pre-build images, I will try to learn everything I can about it and attempt to provide as much level 1 support as possible. ^_^
[G1 Apps and Games] wootroot:
this sounds great
[G1 Apps and Games] andonnguyen:
This program does its "work" by installing a script on your sdcard called ocx_tmp.sh, and runs it while modifying the value after echo to the desired cpu freq.

If you open up ocx_tmp.sh inside notepad, youll see this:

I had a chat with someone well known in the forums and they stated that the current build of the android kernal does not handle cpu freq scaling well, and said:
[G1 Apps and Games] damnoregonian:
the well known person is partially right.

the current build of the stock android kernel does not handle cpu frequency scaling at all. it's specifically disabled. instead they use hardcoded values at hardcoded points to do it.

however, with just a little tweaking you can modify those points and values until you have a reasonable battery life as well as better performance, which is how my kernel patches operate.

setting it via debugfs has several downfalls. first and foremost being that the idle loop clocks down to a specified frequency, and the jump between 528 and the idle frequency is large enough to require switch PLL circuits to accomodate. that's not a big deal, except that the clock frequencies change several times a second under normal operation and every time it switches PLL circuits and voltages this introduces latency and inefficiency. not good for business. i modified the idle loop to use the lowest frequency possible using the same PLL that 528mhz operates on to avoid this, which is why my neocore benchmarks are 27fps instead of 25. ya, it's only a 2fps increase, but given what's involved with rendering a frame, that's a lot less cycles in normal operation meaning less wasted battery.
[G1 Apps and Games] damnoregonian:
also, dynamic scaling has been present in the kernel for ages. it's just may be enabled in the android .27 while disabled in the .25

it is however very easy to turn it on in .25 (just recompile with that option enabled). you will notice that performance takes a HUGE dive if the clock switches are not removed from the idle loop while dynamic scaling is enabled.
[G1 Apps and Games] andonnguyen:
well put damnoreganian =]
[G1 Apps and Games] belding:
Can I just make that script and run it in the terminal with su?

"mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

mkdir /system/debugfs

mount /system/debugfs /system/debugfs -t debugfs

echo '528000000' > /system/debugfs/clk_rate/acpu_clk"

would this be that same effect as the program, or is more needed?
[G1 Apps and Games] MarcusMaximus04@gmail.com:
EDIT: hmm actually after trying this, it doesn't work... odd...

EDIT EDIT:After a little working at it I got it to almost work but get a permission denied when it tries to create /system/debugfs/clk_rate/acpu_clk... odd considering I'm superuser...
[G1 Apps and Games] ex87:
You need to do it each time frequency changes (when phone goes to sleep for example). It could be possible to write script that can set this value for example each second. But then sleeping(power collapse) would not be possible.

About edit edit: You shouldn't create that file. Debugfs should have that file in place. Debugfs is virtual file system, it exists only in kernel. Don't think about those files like regular settings files :)
[G1 Apps and Games] damnoregonian:
works fine for me if i do that all manually...

you doing it as root?

lol, nm you edited it and answered that question as i posted
[G1 Apps and Games] MarcusMaximus04@gmail.com:
hmm you got it to work manually? mind posting your steps? Also what tool(s) did you use for it? I'm using terminal emulator and have to run everything through busybox which is why it didn't work at all initially. What I tried is:

busybox mount -o remount,rw yaffs2 /dev/block/mtdblock3 /system

mkdir /system/debugfs

busybox mount /system/debugfs /system/debugfs -t debugfs

echo '528000000' > /system/debugfs/clk_rate/acpu_clk

and it gives a no permission error in the last step when run as superuser from terminal emulator.
[G1 Apps and Games] ivanmmj:
Type in "su" first then enter.

Wait for it to ask if you want to allow access. Then try it all in one line like that one script.
[G1 Apps and Games] MarcusMaximus04@gmail.com:
ya... I did that... that's why I said I ran it as superuser.
[G1 Apps and Games] damnoregonian:
# busybox sh

/ # mount -o rw,remount /system

/ # mkdir /system/debugfs

/ # mount -t debugfs debugfs /system/debugfs

/ # cat /system/debugfs/clk_rate/acpu_clk

245760000

/ # cat /system/debugfs/clk_rate/acpu_clk

384000000

/ # echo '528000000' > /system/debugfs/clk_rate/acpu_clk

/ # cat /system/debugfs/clk_rate/acpu_clk

528000000

/ # cat /proc/cpuinfo

Processor	: ARMv6-compatible processor rev 2 (v6l)

BogoMIPS	: 527.15

Features	: swp half thumb fastmult edsp java

CPU implementer	: 0x41

CPU architecture: 6TEJ

CPU variant	: 0x1

CPU part	: 0xb36

CPU revision	: 2

Cache type	: write-back

Cache clean	: cp15 c7 ops

Cache lockdown	: format C

Cache format	: Harvard

I size	: 32768

I assoc	: 4

I line length	: 32

I sets	: 256

D size	: 32768

D assoc	: 4

D line length	: 32

D sets	: 256

Hardware	: trout

Revision	: 0080

Serial	: 0000000000000000
[G1 Apps and Games] ivanmmj:
I didn't notice that.

Either way, typing the following worked just fine with me.

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system ; mkdir /system/debugfs ; mount /system/debugfs /system/debugfs -t debugfs ; echo '528000000' > /system/debugfs/clk_rate/acpu_clk

All in one line. Not sure why it gave you an error.
[G1 Apps and Games] Manacit:
That worked for me:

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system ; mkdir /system/debugfs ; mount /system/debugfs /system/debugfs -t debugfs ; echo '528000000' > /system /debugfs/clk_rate/acpu_clk

# cat /proc/cpuinfo

Processor	: ARMv6-compatible processor rev 2 (v6l)

BogoMIPS	: 527.15

Features	: swp half thumb fastmult edsp java

CPU implementer	: 0x41

CPU architecture: 6TEJ

CPU variant	: 0x1

CPU part	: 0xb36

CPU revision	: 2

Cache type	: write-back

Cache clean	: cp15 c7 ops

Cache lockdown	: format C

Cache format	: Harvard

I size	: 32768

I assoc	: 4

I line length	: 32

I sets	: 256

D size	: 32768

D assoc	: 4

D line length	: 32

D sets	: 256

Hardware	: trout

Revision	: 0080

Serial	: 0000000000000000

#
[G1 Apps and Games] wilsonmui:
:D:D:D

thx a lot and that work fine for me too !!!

OH ...but i reboot and i try it again, it won't work.

mount: mounting /system/debugfs on /system/debugfs failed: Device or resource busy

and

echo '528000000' > /system /debugfs/clk_rate/acpu_clk

cannot create /system: is a directory
[G1 Apps and Games] mrfrenchfry:
Hmm thats weird i have the same build as you and the 528 or w/e works for me. No lag at all on pokemon red now! A little on yellow =/.

Oh and how does this 'harm' your phone?
[G1 Apps and Games] n19htmare:
I don't understand where the overclocking comes in...from the specs the default processor is Qualcomm MSM7201A, 528 MHz.
[G1 Apps and Games] dixxa:
this doesn't seems to work for haykuro build :(

cannot create /system/debugfs/clk_rate/acpu_clk: permission denied

# cat /proc/cpuinfo

cat /proc/cpuinfo

Processor : ARMv6-compatible

BogoMIPS : 383.38

Features : swp half thumb f

CPU implementer : 0x41

CPU architecture: 6TEJ

CPU variant : 0x1

CPU part : 0xb36

CPU revision : 2

Cache type : write-back

Cache clean : cp15 c7 ops

Cache lockdown : format C

Cache format : Harvard

I size : 32768

I assoc : 4

I line length : 32

I sets : 256

D size : 32768

D assoc : 4

D line length : 32

D sets : 256

Hardware : trout

Revision : 0080

Serial : 0000000000000000
[G1 Apps and Games] tanner2007:
What do you guys think about this really? is it safe? Im kinda scared to run it, I dont want my phone to brake or die since I cant afford one for a LONG time.
[G1 Apps and Games] tehseano:
So long story short, this has no effect on NON ADP phones, or just not the max frequencey? Is this of any worth to non adp users?

EDIT: Also, I thought you couldn't purchase priced apps on the market? Or is that just protected apps.
[G1 Apps and Games] dixxa:
yep it only works on JF's build.
[G1 Apps and Games] tehseano:
I'm on a rooted Jf 1.42 rc33 modded phone, just not the ADP version.
[G1 Apps and Games] Zerodime:
And yes you can't download/see/buy protected apps (but i'm not sure on that one)

My Problem is: With normal G1/ADP1.1 Firmware, i can set the speed up with the SH script, but my phone freezes when it tries to use that speed.

At the moment i wonder if there is a middleway from 3xxMhz to 5XXMhz (because it's running from the beginning on 3xxMhz)
[G1 Apps and Games] dixxa:
try this

echo '450000000' > /system/debugfs/clk_rate/acpu_clk
[G1 Apps and Games] dixxa:
Teach Us teach us how you did this or how to enable dynamic cpu scaling.

I use many operation in parallel on my phone and it's kinda laggy. :D
[G1 Apps and Games] sino8r:
yeah, it seems to work on JF RC33. I'm not sure about the highest setting but the lowest setting works for sure. Significantly, slower with the lowest setting. and higest setting appears to work. I wish there was a way to benchmark cpu speed...
[G1 Apps and Games] tanner2007:
Is this safe to use? I do not want anything to happen to my phone I wont be able to get a new one any time at all soon
[G1 Apps and Games] ferrer:
Jf 1.42 rc33 here.

'528000000' works great and the speed increase is noticeable. Namely in scrolling the apps in the apps tab, also in web browsing using multitouch.

I am just curious about battery life, but it was already crap anyway...

thanks for this!
[G1 Apps and Games] Boeboe:
The phone changes your cpu clock speed on the fly. To conserve battery power it will only run at full speed when needed, so yes, it's a placebo effect.
[G1 Apps and Games] ferrer:
As far as I can see, it will only adjust the speed back to ~'380000000' if I reboot or let it go to sleep.

Apart from that it remains at '5280000000' and it's consistent with the value in /proc/cpuinfo (~528 BogoMIPS), which I track. So I see no automatic adjustments happening...
[G1 Apps and Games] ivanmmj:
It works on my jf 1.42 rc33.
[G1 Apps and Games] vekexasia:
For me it works for a while.. after the cat it works great.. but waiting a minute or 2 the cpu scaling goes on
[G1 Apps and Games] wootroot:
so how come my FPS goes up in Neocore and Kid GBC when i increase the speed, but goes down when i decrease? I thought placebo meant i THOUGHT it was going up and down, not that it actually was? both apps are directly affected by the settings in the overclocking app

placebo effect or not, its worth the dollar imo, because my apps ARE running faster
[G1 Apps and Games] exile20:
I am really not sure if this works or not. I have a Haykuro 4.5 on a normal G1 and it seems that it is running faster but when i set a speed whether it be 122 or 384 or 528 Mhz and press home and then go back into the program it goes to loading and then shows 284 Mhz. My battery is going down quicker, now that is no placebo effect. I wish there was a way you can definately see what speed it is at.
[G1 Apps and Games] MarcusMaximus04@gmail.com:
AHA! That would explain it, I was kinda figuring that was what it was. Meh, glad I returned it now(Maybe Haykuro can get it to work in his build too, after all he did it for the apps to sd guys, not that I'd demand it or anything but it would be nice to have a speed bump, especially with the autorotate and such.)
[G1 Apps and Games] wootroot:
speaking of apps to sd, anyone care to help me with my recently bricked g1?

was trying to do this apps to sd process, well i finally bricked my g1, go figure

aim: guitaristchris24

still trying to figure a way around it
[G1 Apps and Games] speoples20:
If you can get into recovery mode when you turn your phone on you haven't bricked it. Just reflash rc33 and then do a wipe you should be ok.
[G1 Apps and Games] KyleK29:
Hmmm .. I installed the app from the market onto my JF ADP 1.1h and was able to set 384mhz. Once I set 528mhz, it locked up. Rebooting gives me the endless android - time to reset and wipe. Hehe.
[G1 Apps and Games] Ooglez:
Wow, sounds scary. I did it to my JF1.42 RC33 and when I tried to go to 528, I froze. When I rebooted, I incremented to 384 then 528, and that works for me.
[G1 Apps and Games] coolbho3000:
Here, I just published an application that does the exact same thing. It additionally can display the /proc/cpuinfo dump. It also does not write any shell scripts the SD card. It's 99 cents on the Android Market, but for XDA members it's free (least I can do for all the great stuff that comes out of here). But please don't refund it if you already bought it. :p Mods: This isn't warez because it's my app and I post it here with my full authorization.

With Neocore my FPS jumped from 24 to 27 from 384 MHz to 528 MHz!

(please don't spread this ZIP anywhere else, and please buy it if you like it :D)

Update: 1.0.1 released. No major changes but fixes some bugs. Plus some UI changes.

Update: 1.0.5 released. Adds checkbox to lock CPU frequency even after sleep.

Update: 1.0.6 released. This disables the lock when the phone is asleep to save battery.

Update: 1.0.7 released. This fixes a minor bug where pressing any other button other than back or home would finish(); the app.
[G1 Apps and Games] raven1019:
support u but too bad i not root user
[G1 Apps and Games] wootroot:
dude just for posting it up here, im buying it anyway and uninstalling my old one even though its passed the refund time, thanks man
[G1 Apps and Games] xyrcncp:
Wow...that is nice of you, I just tried it out, but it freezes my phone when setting it to 528 MHz. :(
[G1 Apps and Games] coolbho3000:
Try it with the commands listed earlier. I'm pretty sure it's something about your phone. :(
[G1 Apps and Games] wootroot:
hey i had the same issue with overclock, adjust it to 528, give it about 20 seconds before you do anything, then hit the home key, havnt tried his version, but thats how i get around it with overclock
[G1 Apps and Games] xyrcncp:
hmm....I left it alone and the phone rebooted by itself. Dunno if it's my phone, but I'll give the commands a try.
[G1 Apps and Games] SolemnWishing:
Wow, just gave it a try, AMAZING performance increase, especially in watching high-bit rate videos. I was able to successfully play a 1440kbit video with no problem at all when the standard recommended is around 600kbit at the most. When I previously attempted it, the whole video would simply freeze.

--I am a bit concerned about the toll this may take on the processor's life time. Ill be doing a heat comparison test soon with the processor at the default and at the max.
[G1 Apps and Games] speoples20:
It shouldn't have any adverse effects on your processor. It doesn't over clock it at all just runs it at the max speed its rated. The G1 runs it under clocked this just boosts it back up to what it should run at.

Side note I am trying to run this with Hykuro 4.5 and it doesn't seem to work.
[G1 Apps and Games] FearlessG1:
anyone else having an issue where after you say yes to give it privileges the screen stays black until it says Sorry! activity SetCPU (in application SetCPU) is not responding. ? I'm running JFv1.42 for RC33
[G1 Apps and Games] coolbho3000:
Try "always." Instead of just "yes."
[G1 Apps and Games] FearlessG1:
That worked, though after saying always I had to force close it, then reopen and it came up fine. problem now is that when I set it to 528 my phone freezes, I set it and left it alone for about a minute then pressed the home key once and it restarted itself. Tried about 3 times on a fresh restart and the same thing happens.
[G1 Apps and Games] eweo911:
Using JF rc33. When I use the program posted by coolbho3000, my phone freezes after setting the clock to 528 Mhz. I have to take out the battery to reset it. I let it sit for 5 min to see if it was just taking it's time. Tried it 4 times now. ??????? I have root when I am running the program.
[G1 Apps and Games] Gimpeh:
It worked once for me but it just freezes every time now. Which of the clocking apps are better?
[G1 Apps and Games] MrOuch:
I set it to 528 mhz and it works great but once the phone sleeps and i unlock it. it sets itself back to 384 mhz. is there a way i can keep it locked at 528mhz?
[G1 Apps and Games] Gimpeh:
You can with setcpu. Theres a checkbox to keep it locked. You click that then press the home button. Has anyone use bother Overclock and Setcpu? I'm unsure of which one I want.
[G1 Apps and Games] Psychedelic-Squid:
If it makes a difference, they both (as far as I can see) do the same thing, but SetCPU is free to us XDA-Dev users, so that's one bonus.

I'm going to have to get SetCPU because, being in the UK I can't buy things on the market that only have prices in dollars. (coolbho3000, if you could open it up to UK buyers, there's a fairly good chance I'd buy it - I have yet to install, but if I have anywhere near as much success as the others who've posted here, it's an app I'd be happy paying £0.99 for :D )
[G1 Apps and Games] wizern23:
@coolbho3000. can you make your program setcpu work for those who have the magic port which is 1.5 i believe.
[G1 Apps and Games] prash:
There has to be a reason some of us on rc33 1.42 are experiencing freezes while others say it runs fine for them.

So far I've tried the apps, and manually in terminal / gscript to do this. Everytime I try to set it to 528, it freezes and reboots. With the setcpu app, it does work for the lower 2 settings.

To the creator of setcpu can you make another incremental setting in your app? 450mhz perhaps? Is that possible to do? Maybe that will make a difference for those of us experiencing the freezes.

Also thanks a lot for your work and sharing with us.
[G1 Apps and Games] coolbho3000:
I did try to set the setting to other values. It does change the file, but the CPU speed itself (under BogoMIPS) just won't budge with the current method.

If there was a possibility for more options, trust me, I would implement it. :(

In the Android Market interface, I had "All Current and Future Locations." I'll try unchecking that and just manually checking all the locations there... but that might be an Android Market bug. I can't set prices in pounds, unfortunately :( Another person was reporting that that doesn't work for UK, also.

As for 1.5... I'll look into it, but I'm just as clueless as anyone else right now. Anyone have any ideas?

I'll be on vacation for the next few days so I can answer questions (on my G1 :D) but can't develop the app further during that time.
[G1 Apps and Games] MrOuch:
I purchased the setCPU and turned on 528mhz and locked it and it works great!
[G1 Apps and Games] t1h5ta3:
just installed 1.0.6 and in the time it took to quote ya, ya go and release 1.0.7 lol... seems to have helped, i had no issues with it locking up etc... but ill go load the latest...
[G1 Apps and Games] FearlessG1:
I just downloaded and tried with the overclock app in the market and my phone does the same thing. After 1 or 2 seconds of being at 528mhz my phone will freeze then require me to either remove the battery or wait a couple minutes for the phone to reset itself.
[G1 Apps and Games] xtrip0dx:
what your doing is great really great! thank you
[G1 Apps and Games] AbsoluteDesignz:
DO NOT USE THESE APPS IF YOU USE ANY OF HAYKURO'S BUILDS.

Phone will function faster with the Overclock app for a while, then it'll slow down to around 122mhz or less and become unbearable.

***EVEN AFTER REBOOTING and WIPING***

(removing the battery solves this)

note: I do not know if the setcpu app produces the same ill results, nor do I know if it is just a personal problem and not one that'll effect all users using Haykuro builds...but be cautious.
[G1 Apps and Games] coolbho3000:
I'd imagine it would produce similar results.

Did you happen to get where exactly it slowed down to? I could probably add that as an option.
[G1 Apps and Games] MrOuch:
the setCPU program works great but the only downfall is that it DOES cause your phone to freeze randomly went locked at 528mHz and then you have to remove the battery to reset it...

possible fix for this?
[G1 Apps and Games] wootroot:
so far setcpu 1.0 has been very stable for me, not a single issue so far, id much rather pay a dollar for that version than overclock, the feature that allows it to run while the g1 asleep is something overclock does not have, this is my number one favorite feature of setcpu so far
[G1 Apps and Games] wootroot:
after you set the cpu, before you hit anything else, try waiting 5 or 6 seconds then hit the home button, see if that helps, thats what i used to do with overclock and it worked
[G1 Apps and Games] coolbho3000:
I think the "random freezing" is the same kind of freezing as described before. With the locking feature, the phone is going to change speeds around automatically, especially coming out of sleep mode, it's going from slowest to medium to 528.

Can you guys (who freeze with overclock) try it without any background apps (including third party Home apps) and the phone completely idle? It's just a hunch but maybe the freezing has some to do with current cpu load at the time the overclock is switched on.
[G1 Apps and Games] coolbho3000:
I think I have thought up a pretty viable fix to the freezing problem, but I unfortunately cannot do anything about it until I return from holiday (no computers here =P).
[G1 Apps and Games] BSDADON:
just downloaded SetCPU and i have it locked to 384 MHz so now when my i hit menu from sleep mode it responds automatically instead of an extra second or two. does exactly what i wanted, kind of nervous about going to 528 MHz even though i know its capable of it.
[G1 Apps and Games] veda_sticks:
installed from the zip on the previouspost, after installling the lanch button is greyed out, cant find it in my list of apps
[G1 Apps and Games] coolbho3000:
That is strange. Did you use ADB?

I've narrowed the problem down to a simple battery problem. The Dream's battery often does not supply enough power for the phone to be at 528 MHz. Since current supplied to the phone decreases as the battery depletes, the solution is to 1. Keep the phone charging and/or charged and/or to 2. Turn brightness, GPS etc. off or down while overclocked to reduce current stress.

Try it. At 10 or 20 percent battery, set the brightness up and turn on everything then go 528 MHz. The phone will propbably crash. Now plug the phone in and turn stuff down and it's fine at 528 MHz.
[G1 Apps and Games] APrinceAmongMen:
That could be it, but mine's stopped freezing.

I've learned never to jump up to 528.

I just setCPU at default, then I set it at the max.

It seems that when I wake the phone and max it out, it freezes.

It could be the double jump, or it could by the battery.

Seeing as I have an extended battery, that could effect the outcome even though the currents should be the same. IDK. All I know is that I love this app. :) Too bad it doesn't work on the Magic port. :(
[G1 Apps and Games] SolemnWishing:
Hmm.. the app used to work fine, now my phone freezes up and restarts on its own.