yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] lmemperador:
thx a lot

it works
[Windows Mobile Apps and Games] nayr1482:
Hi GeScha,

I should have clarified a bit. The Start, Boost, Safe values I felt were slowing down BOOT because as you said they are only read/wrote once. So eliminating this should make boot faster and be less confusing for users when trying to modify the speeds in the script.

The OverClock Status - was being read and written in the loop though - which could/is slowing down the cycle a hair. I know it isnt much but the more we can improve it the better right?
[Windows Mobile Apps and Games] nayr1482:
hmmmm....that is a good question. i dont know for sure.

All you can do (obviously lol) is try setting up the variable you want to access from another file as a Global Variable in that script and then try and access it from the other script (use Message box to show if it is working or something).

you would know better than me if all the other buttons turning down OC'ing are necessary - all I can say at this point is I have had 0 SOD since starting this script.
[Windows Mobile Apps and Games] cmd512:
Well, I don't use a lockscreen, so I have additional 2 scripts running with the power button press to sleep/wake... one before and one after after the button depression.

One before forces 604 and sets OverClock in registry to 0. The one after checks to make sure Overclock is set to 0, and if not, it will force the 604 again. More of a safe guard as I toggle the power button quite a bit.

Yeah, doing a little dummy script/echo test right now. :D

EDIT: Confirmed, variables cannot be used across several scripts, even those still active in the while (1) loop. Doh, gotta use the registry values then.
[Windows Mobile Apps and Games] :
Hi, sure. my understanding is that specifically the status would be difficult to be set in memory as i do not expect other global veriables that could work if multiple scripts are used (e.g. I'm still using the safety script to go to safe speed if pressing power button)

Regarding the easier editing, if simply removing the check at first start, that causes skipping of the initial writing of the reg-values for boot, boost, safe speed entry would do exactly this. At startup of the script, the values set in the script are the ones written to the registry. Currently they are only written if no regkeys are there, what causes this confusion.
[Windows Mobile Apps and Games] xicloe:
Did you mean we are change the trigger isn't it ? so our phone doesn't need to loop checking.

The matter is how we can create 3 trigger :

1. Display on/off

2. In call or nor

3. unlock or locked

so they are can execute our function in our script or other prgoram maybe, or just ask NetRipper to put this in his code. :)
[Windows Mobile Apps and Games] cmd512:
All registry read/writes can be avoided with the exception of OverClock as that is an OC state check. For my key depressions, I simply put in "31" value instead of reading the safe_speed every depression.
[Windows Mobile Apps and Games] bteljuice:
Hey guys, been using JPC's script now for 2days with no SOD at 39. Now I have been reading the thread to do some catching up and see the at post 882, there is this OC_auto2 script.

Now my JPC works flawlessly, and I follow the saying "if ain't broken, don't fix it".

So I would like to know what is the difference between JPC's script and nayr's other then that auto2 looks for you DispOn instead of you editing it.

Thank you. Bteljuice
[Windows Mobile Apps and Games] nayr1482:
My point is - none of the registry keys are needed. Period.

Except for those of you using the backup of binding it to your power button =)

And the later scripts I saw were writing the values to the Reg EVERY boot regardless if there was something already in the Reg or not (Start <> 0 Then write to Reg, Start >= 0 Then write to Reg). The only way I see it NOT writing to Reg is if you had a non numeric and/or a negative value in the Reg =)

Btw GeScha - I have been to Graz many times, beautiful city!
[Windows Mobile Apps and Games] nayr1482:
OverClock can also be avoided (unless you are using it for something else). It was a variable created in the script, written to the registry, read from the registry, etc...

It has nothing to do with the Program itself (as far as I can tell). I deleted all 4 keys from my reg, played with teh program, changed speeds, etc... rebooted, did it again. Checked reg and no keys. I un-cabbed the OC program and checked the install files - there are no registry keys created during the install of the OC program.

So the OC state can be stored as a local or a global variable in the script.

But - if you are using the OC state in the registry for OTHER things then yes of course you need it =)
[Windows Mobile Apps and Games] RoboWang:
I still run mine equal when I get close to max.

But, there's a reason jpc wrote the original script to always have a startspeed of + 1 over boostspeed, I have never worried about it and asked.

I figure If my system will lock up with just a +1 startspeed for less than a second (60ms I think), it's not going to be stable at boost speed, -1 under startspeed, either.

Thing is, altho I am stable at 748, I am not interested in going further.

In fact, I may drop it to 729 because, altho a mild overclock will reduce the cpu life a small amount, I need this phone for another 16 months.

There's no way to estimate how long an extreme OC will last. Next week, 3-4 years. Depends on the cpu.

At 729, my Sense 2.5 and Cookie 1.85 runs smooth. Even the weather animation is smoother. And video apps are VERY much enhanced.
[Windows Mobile Apps and Games] cmd512:
That's my point, "OverClocked" in the registry cannot be avoided if you're binding clock up/down to the power button, especially since cross script global variables aren't supported.
[Windows Mobile Apps and Games] nayr1482:
From what I can tell, I think what JPC was trying to do was to get the phone into Windows a bit faster. The start_speed is loaded as soon as the script starts, then JPC had a 60sec (yes 60!) wait command. So the start_speed basically runs from the time windows starts to load until 60 seconds later - which is after sense, etc... is fully loaded.

What will it do if you change this to a lower value? Nothing - except maybe make your phone boot a tad slower.

It is possible some people that get SOD on boot it is because they a running a higher value than their normal OC value.
[Windows Mobile Apps and Games] 5318008:
More dead horse beatings.

I also posted this idea a number of pages back. It would certainly work as insurance, although I'm sure once you'd determined a safe run-speed it'd be more efficient to run from an internal installation.

It's been brought up repeatedly (though not quite recently) that TCPMP's speed readings are inaccurate (though impressive-looking) for this processor, due to outdated methodology. I don't remember if it's from this thread or the original OC/Bounty thread predating this one, but I had a screen grab showing over 1400MHz while supposedly clocked to only 600-something. The most accurate CPU speed measurement tool for these phones, currently, is the OC program's speed display.

Looks nice though doesn't it?
[Windows Mobile Apps and Games] RoboWang:
That is correct. That's what the script was wrote to do in these later updates.

The very fact that you could not change reg values after the first run was troubling.

Now the script (not the new nayr beta), overwrites the s reg settings everytime the script is run, not just once.

Simple to check.

Run the script once, then overwrite with a new script with settings changed, and reset.

So far, I am having FINE luck with the last script. It is locked and sleeping. I'll give it another hour and see if it wakes up and throttles back to boost.

A LOOONG sleep isn't possible today for mine, so that test will have to wait until morning.

However, I don't run any other scripts for the OC. And don't plan to do so..
[Windows Mobile Apps and Games] RoboWang:
I did notice your script removes that 60000 before exit.

60 seconds IS a long time. I checked and Mortscript default wait time is 5000 (5 seconds) and to change that, you have write it in the script.

So that 60ms statement I made was erroneous. And in fact, I was parroting some other forum's (not xda) member.

My bad.

I like the speed in memory idea (works for me so far) but if you want to run other scripts from the calls in the registry, here is an idea.

In the Mortscript, the variables set ARE Global to that script, unless you write a statement that they are Local.

You can also manually set them to be Global, altho that is default in Mort.

Can Mort put a Global into memory from the script?

Ordinarily, I wouldn't do so as who knows what variables other apps/scripts will call, but I have a feeling the apps/scripts that call safe_speed, start_speed, etc are few and far between.
[Windows Mobile Apps and Games] nayr1482:
i would say if everything is working the way you want - dont do anything =)

the newer scripts we are trying to make it so they work for 99% of phones, and at the same time trying to make the code a bit more efficient.
[Windows Mobile Apps and Games] RoboWang:
I can find nothing in regard for assigning Global variables to memory from a script.

I am in process of discussing thsi on two other Mort forums. Hopefully will get at least, a definitive answer.

My hope that it can be done is in the Mort manual, section Section 8.13 for global info in call script function. IF this function can be used to cross script Globals, and it looks like it can, then the variables will have to go through the memory to do so.

Fingers crossed.
[Windows Mobile Apps and Games] nayr1482:
I think a way it MAY be possible, is if you call one of the scripts from with the other script (and of course make it a global variable). The script called from within the other script might then be able to access globals from the calling script ???
[Windows Mobile Apps and Games] :
Hi RoboWang, Nayr,

You are completely right for the regkeys, not needefor this script basically.

The overclocked reg is only required if you reuse it elsewhere.

Setting the performancevalue just helps if the msm...auto...exe (dont recall the name now) is started somewhere without an parameter.

@xicloe

unfortunately if you want to "auto" switch between oc values the script needs to run in a loop. The only solution I had sometime running was that power button executes boost and throttle depending on if you switch on or off, but wasnt the best solution either.

Regarding the sleep timings:

What I introduced in the script I'm currently using is sleep cycles depending on the state it is in. So if its running and overclocked, I'm using 5sec sleep loops (not to miss a power off) and 10 secs while DispOff and on safe speed. Sometimes on wakeup it takes some time till it overclocks, but uses less CPU and battery while suspended, altought I'd really like to know if the script is still running while suspended or not...hmmmm.
[Windows Mobile Apps and Games] skeppley:
5th day running 748 on mine and no problems running various script versions.

Tried out the OC_Auto 2 and it is working great with the newly found switch:

("HKLM","SOFTWARE\HTC\DirectShow","isPhoneActive"))

Seems it is working the best so far.

I have now throttled the boost down to 729 for longevity sake and unless some miraculous changes come about, I think I'm finished with the script changes.

Phone is fast, smooth and running cool. Five days, not one SOD so i am VERY happy.

Anyone that has contributed to this wants a beer or coffee on me, pm me your Paypal.

I am extremely happy with the outcome, and just feel i should be paying for such good work....there are tons of "pay for" programs out there that i wouldnt pay a dime for, and here is a worthwhile one thats pay free...go figure :)

EDIT:

I forgot to add, the dynamic over/under clocking would be cool to have, but in all reality, i just want full boost anytime i'm using the phone, so the way it is now is just fine with me :)
[Windows Mobile Apps and Games] oruam57:
For my usage I developed a small utility to manage the clock of my Topaz using Msm7kClockLib.dll that is part of Msm7kCpuSpeed application.

It simply overclocks the CPU when the screen is on, underclocks it when the screen is off and restores the CPU to the "safe" level (604 MHz) before the CPU enter the suspend state.

On my Topaz it is extremely stable (not a SOD in 4 days and counting). It may be working on the other HTC phones that use the same CPU (Rhodium, Raphael, Blackstone, Whitestone) but the test is up to you.

The attached zip contains the binary, the source code and some (terse ;) ) explanation inside ReadMe.txt: READ THEM ALL (particularly the part about REQUIRED registry values).

This utility is free in every sense and you can use and modify the source code. For example it could be a good idea to make it a service (unfortunately, I have not the time and the tools to make it myself).

Did I say you should READ the ReadMe.txt ? :rolleyes:
[Windows Mobile Apps and Games] RoboWang:
THAT is what I am trying to see is possible.

Just because you define the variables as Global in the script, does not make them Global to all Apps and scripts run on the device.

BUT if you call a 2nd script for Global variables, does THAT put them into memory.

My point is, altho there is not a function for Mort to directly set Global into memory, but will calling them (they are not called as Global, but Global is called as variables, so the receiving script sets them as Global to the script as default UNLESS they are defined as Local in the receiving script).

When they are being passed through memory, they are variables, not Global variables, the receiving script defines them when the script uses the data.

Anyway, if all this is too hard (but damn interesting, to me anyway), the speed settings can still be written to the registry ONLY when the settings are changed in the script.

And if you are on your desired final OC speed that will be ONCE and the settings will never change again. The script should still poll the values for a change on startup, but if there's NO change when the script is run, there will no longer be any reg writing from the script.

This will write the speed data to the reg for those who want to use 3rd party apps/scripts.

But the variables can be put into memory, while polling the data.

You can still test for max OC thru the MSM7 app in this session without effecting the script.

The good thing in that scenario is that IF the device locks up from overclocking, the reset will return the device back to script settings. No harm, no foul.
[Windows Mobile Apps and Games] saurabh88:
hey o got 3 times sodbwhen using the last script.....

anyone stable now?plz provide your script here.

Sent from my MSM using the XDA mobile application powered by Tapatalk
[Windows Mobile Apps and Games] RoboWang:
Interesting, I will look at the source.

The only problem is that SOME users get sod's from call in's and missed calls. Not all have reported that, but it does seem to come randomly, so your device may run weeks before it happens, if ever.

The script has throttling functions for call in, lock, and of course, your sleep/power off, fixes, too.

But this dll idea is not out of the question, but, as far as a service goes, that will be up to nettrip and if he wants to make the app itself into a service.

These scripts are a stop gap measure for people until the OC is finished.
[Windows Mobile Apps and Games] pingua:
Working in Xiperia X1i, but if he hangs over 633MHz
[Windows Mobile Apps and Games] cmd512:
Very nice, thanks!!
[Windows Mobile Apps and Games] RoboWang:
I believe there is a donation thread for Nettrip who's app we are just patching until the app itself is finished.

We all use his app.

So if anyone deserves the donation, it's nettrip.

here is the page.

http://xdaforums.com/showthread.php?t=698374
[Windows Mobile Apps and Games] dzohusafet:
can sombody make a script for touch pro 1
[Windows Mobile Apps and Games] RoboWang:
From my understanding, most tp1's won't run the MSM7 oc app while on battery power.

I could be wrong, tho

If I am not wrong, a script would be useless.
[Windows Mobile Apps and Games] azngl:
The thing with the Touch Pro 1 is that it wont work out of AC. That is to say that the moment you will plug it off it will come back to 528 mhz.

So basically any of those scripts should work with our beloved device when charging only.

Though I found a lil workaround, if you switch GPS on ( with say BAF gps, a today screen plugin) you will be able to run it @ at least 710 mhz (that's what I am using)

Auto triggerred at wake up by S2u2. it sleeps well, no SOD. Battery usage is normal, no drain @ all.

Just sharing my experience ^^
[Windows Mobile Apps and Games] cls_:
Overclocking App by oruam57 [post 958]

Nice... finally getting on the right track here. Thanks a bunch.

I don't think this will be a problem since this program is looking at the actual power states of the device. This can easily be put into a service.

Again, great work oruam57. I am going to test this out right now on the rhodium. Will report back with findings. :)

link: http://xdaforums.com/showpost.php?p=7419034&postcount=958
[Windows Mobile Apps and Games] oruam57:
To intention of my program it to remove the SOD due to entering the suspended state before restoring the 604 MHz "safe" clock value. This it does definitely by delaying the suspended state and this can not be done with a script.

It does nothing about the SOD due to interaction with the phone, but I never had them, maybe because I am satisfied with a modest 633 MHz ;)
[Windows Mobile Apps and Games] RoboWang:
I received an answer to my Global across scripts question.

It makes sense to me.

Here it is:

"For use across scripts, you would want to store and read the values to the registry or an .ini file."

hmmm, not sure, yet if that will work for this script.

I know that Mort can create an .ini when run, and can call an .ini and use it's data while running.

So now I know specific data called from another Script can be written to an ini or the registry.

Have to think about that for while.
[Windows Mobile Apps and Games] cmd512:
Yes, you can use Global() and Local() to differentiate those for a script and all subroutines. BUT, it still won't work across different scripts, which is ultimately what us people with power button trigger happy fingers need. No biggie, that one write/read to the registry isn't a big deal.

Plus, we're on the cusp of dropping the use of all scripting anyway with oruam57's program/source. There was no way for Mort to read the idletimer and no way to detect/delay dim/standby mode before it engaged, so oruam57's program is the way to go moving forward.
[Windows Mobile Apps and Games] 5318008:
There's already an OC program for the Touch Pro 1. I did a quick Google, it looks like No2Chem came out with it about a year ago, just do a search and you should find it.

You might be able to check this with a script that initializes a variable to zero, then increments it every so often. Then after your phone sleeps a while, check the variable's value to see if it's been incremented over sleep or not.
[Windows Mobile Apps and Games] hartleyshc:
No2Chem's version only goes to the 796mhz. Which not many TP1 can handle.

He doesnt have the right clocks to do anything less or more than 796. With this version we can at least have a stable 604.
[Windows Mobile Apps and Games] frizzlefey:
I second this.

And this is also true on my cdma tp1
[Windows Mobile Apps and Games] azngl:
http://xdaforums.com/showpost.php?p=7420072&postcount=967

wanna try?
[Windows Mobile Apps and Games] buru898:
Aaah omg this thing is AMAAZZING!!! Will update my guide, put it to the top, and inform everyone that my guide is outdated and to just use this thing!! It's amazing and I love you forever!

Agh I wish I had money to ****ing donate to you dude!!!
[Windows Mobile Apps and Games] xilpaxim:
crapzilla, and I just now got around to doing the scripts too! Oh well, I will wait a few days until lots of folks say it works well like I did with the scripts.
[Windows Mobile Apps and Games] buru898:
Hah his program is awesome. No more scripts or nada, been using it for a few hours and it's amazing, no SoD, and it auto-overclocks when it wakes up which is the best part :D!
[Windows Mobile Apps and Games] StupidCid:
Just Wondering?
[Windows Mobile Apps and Games] XITruthiX:
@lezink The problem with pointing a waking event back to the OC app is that the next sleep event after running the app a 2ND time causes an SoD. It seems (TP2 atleast) the 1st running of OC works just fine until sleep, then scales back (natively while sleeping, even your stock devices should scale back the cpu while sleeping), the waking, rerunning the OC, then sleeping again locks the phone.

The only idea i have if someone knows how to do this, will definately work. We need to tell the device to never go to sleep, but we have to make a time out to JUST turn off the backlight and touch screen input. Saves on battery life, and temporarily solves our sleeping issues... anyone know how to do that?
[Windows Mobile Apps and Games] XERO_Racer:
great idea for a feature with this app

i was considering asking if its possible to add a feature where as the phone would go idle and the clock speeds will be reduced to at least 120mhz, the HD2 does that, i was wondering if its possible to put it on this app, would be good on battery ESPECIALLY :D
[Windows Mobile Apps and Games] toadlife:
I concur.

My phone goes all the way to the end without issues, but I have had one SOD and the program has crashed a few times. I'll installed that netCF messages cab so I can see what the error message it.
[Windows Mobile Apps and Games] misiekthcteam:
On SE Xperia X1 work, add X1 to first post
[Windows Mobile Apps and Games] Yagami_ex:
I want support for the old KS20, this phone needs overclocking!!!!
[Windows Mobile Apps and Games] bennib.:
I'm currently using blackSTONEhenge HyPer 1.7 on my Blackstone...
[Windows Mobile Apps and Games] aldamon:
On every phone I've used it's the radio and screen that use up the battery, not the CPU.
[Windows Mobile Apps and Games] DmK75:
And HTC Cruise too, if possible.
[Windows Mobile Apps and Games] TAMHAN:
Hi,

I now did some testing on my XPERIA X1 with the stock Austrian ROM.

First of all, I had to update the .NET CF.Then, I installed it and moved the slider while connected to the AC -> worked. Disconnected at 540MhZ or so, and it continued to wpork. Now it is sitting disconnected for about two minutes on my desk, and the square is still flashing and the frequency counter still shows 633MhZ.

However, it got extremely hot - and when I slid it open, it died. So it is not 100% working, but a good start!

P.S. Does the program indicate when it "looses" frequency? Or does it always show the target frequency while it runs rather than the actual one?
[Windows Mobile Apps and Games] lukesan:
Worked perfectly on my Touch Pro with all the negatives ... for now.

But I just purchased a second hand Touch HD (tweakers.net) and I flashed it with the latest Energy rom.

Even if I touch the slider the device locks, so even going to 537MHz (as I believe) locks the device.

Any idea why or what can I do to make it work?
[Windows Mobile Apps and Games] vorob:
Tested on diamond 2.

Even without AC it saves clocks. I set it to 57mhz, turned off your app and all was lagging, so it "saved" this clock even without running application. Same, happened if i set it to 710mhz.

I even tried core player with some 1min video. on stock clock it gives 43% speed and on 710mhz about 50%, and this is on battery and AC. So i assume overclock works greate on topaz with 6.5 firmware (official)

btw, add button to restore default clock rate...
[Windows Mobile Apps and Games] buru898:
How to restore the default speed (I'm pretty sure) if have it plugged in, change to 604mghz (the little grey button) and then unplug it from the charger. When you put it to sleep it should change back I believe.