yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] :
I guess its working as when you go to sleep with power button the first time, it sets the regkey correctly ;-)

I tried around with the script and recognized why it doesn't work "standalone"

When pressing the power key (no script assigned to the power key) it sometimes seems to be too slow to throttle the speed to safe_speed fast enought, it directly tries to go to whatever the system wants to use at sleept, then crashes.

I tried this by simply manually putting it to 604 altough the script pushes it to 710. When pressing the power button, it should bring it to 604 and set the regkey for not overclocked. when waking up, it should go to 710.

WHat happens is, that sometimes it seems not to go through this code, not setting the reg key to not boosted, then after wakeup, the phone stays on 528 instead of boosting, as the script still sees the regkey overclocked=1.

So I assume the second script for the power key is needed. One question. How can I assign a script on Topaz? Am I able to use the Rhodium Keyboard Control?
[Windows Mobile Apps and Games] buru898:
Well you shouldn't worry about it since it isn't a .exe nor is it a windows program and ONLY works on windows mobile so no, there should be no concern.

If you get a virus that's just a .exe from your computer and place it on your phone and try to run it, it'll just say it isn't a valid program :). Same rule applies so I'm like 100% sure there's no way it can be a virus on our phones.
[Windows Mobile Apps and Games] buru898:
This is straight from the developer's thread:

"This is for Rhodium only! Do not try to install this on other devices!"

I do not own a Topaz so can only help people who own a Rhodium/Touch Pro2 :(.
[Windows Mobile Apps and Games] pdawg17:
I have followed the great instructions and every seems to work great (no SoD)...when I do turn the phone back on I am at 604...is that what is supposed to happen?

EDIT: I've noticed that a couple of times when waking the phone I have an error "error calculating the cpu frequency. Exiting." Did I do something wrong or is it a bug?
[Windows Mobile Apps and Games] lmemperador:
use Topaz Keyboard Controller GSM v1.4, you can look for it in apps area for topaz in xda -->

http://xdaforums.com/showthread.php?t=555821

using topaz i can reach 691 mhz stable, with the 2 scripts.

thx
[Windows Mobile Apps and Games] :
What I found in the description for power states.

It might be possible to detect the power of the backlight by such an command?

Not from script, but in original application....

"Requesting and Changing the Power State

Use the native function GetDevicePower if you need to monitor query the power state

instead of polling the state though GetDevicePower your program can request notification

for power change events through RequestPowerNotifications."

Text is extract from this doc:

http://www.rdacorp.com/PDF/Windows Mobile Power Management.pdf
[Windows Mobile Apps and Games] buru898:
Yes when you turn your phone on it is supposed to go back to 604 because anything higher will make is SoD :). So yes, you'll have to overclock each time but there's ways you can do that with more ease like using the S2U2 option "Run program after unlock" and scripting (not sure if other people did it yet).

I THINK the error occurs because you don't exit the msm7kcpuspeed program. It is safe to close it, you're phone will be overclocked whether you have the program open or not :).
[Windows Mobile Apps and Games] buru898:
Thanks I'll update my post with the Topaz Keyboard Controller and the instructions :D!
[Windows Mobile Apps and Games] :
thanks a lot! Will try immediately.

EDIT:

Works great, thanks to all of you, my Topaz is a new device!

BTW, @buru898: Your description of how to setup Rhodium Keyboard COntroller can be used 1:1 for the Topaz Keyboard COntroller as well.

@lmemperador: Thanks a lot, I'm lucky and can go to 710 at least...will try the limit later, today it's enought.
[Windows Mobile Apps and Games] bteljuice:
I have a WCDMA from TELUS. So it works for CDMA and GSM. Anyhow, I am using the GSM part where I have a SIM card in my rhodium.

So which do i use, for kbdCONTROL? The CDMA or GSM ?
[Windows Mobile Apps and Games] buru898:
Hmm... uh not sure lol try one or the other :(?? Not sure if the wrong one can force you to hard reset or not?
[Windows Mobile Apps and Games] bteljuice:
Yeah, thats wht I am worried about.

So did you get a noticeable difference in performance with your TP2?
[Windows Mobile Apps and Games] chihliouma:
Hi there, I am using TOPAZ as well, but I still cannot get the procedure that you have done successfully. Will it be possible that you can describe the procedure step by step in detail that everybody can follow exactly ? Thanks.
[Windows Mobile Apps and Games] buru898:
Hell yeah this phone is FAST!! Especially at 710 and 787 it's crazy fast. Rotating the phone typing, even typing with the on-screen keyboard.
[Windows Mobile Apps and Games] buru898:
Read

my post

and tell me if it works for you.
[Windows Mobile Apps and Games] bteljuice:
Thanks Buru. Will do it tomorrow and report which Works for me
[Windows Mobile Apps and Games] jerryyyyy:
Have followed the six steps to nirvana and when machne sleeps and wakes up says script not found. Name looks OK.

BTW, are those six steps the only steps... not other scripts to install?
[Windows Mobile Apps and Games] buru898:
That guide is how I get my phone to work perfectly using only that one script. If it doesn't work for you, which I don't see why it shouldn't aside from maybe a different ROM, then I guess download one of the newer scripts and just put the first script in your startup folder and replace my "under.mscr" with the new 2nd script, same directions, just different script(s).

Hope that isn't too confusing?
[Windows Mobile Apps and Games] jerryyyyy:
If you do not mind my asking, where are the "newer: scripts?

The attached seem to be the latest. I changed the default boost speeds to a more modest level just in case.

I assume these must be at the root level "\" to be executed at start-up.

Never worked with this machine....

Thanks
[Windows Mobile Apps and Games] chihliouma:
Thanks Buru, I just follow step by step as what you mention but after all install, and it jumps out error message

"unknown command 'safe' Line 1(storage card\under.mscr):safe_speed=31"

any idea ?

PS. : after I reinstall the mortscript, now it won't show the above error message, but now it shows "Eoorr calculating the CPU frequency....."
[Windows Mobile Apps and Games] buru898:
Hmm maybe, I just keep using the first posted set of scripts because I don't have any problems with it :).

The scripts can be put anywhere and named anything just as long as you type in the full path in the "Arguments:" part in the keyboard controller that is explained in my guide. So if it's in My Documents you'd put "\My Documents\second.mscr" and if in Storage Card just simply change it to "\Storage Card\second.mscr" :p.

The first script you just put in your startup folder and leave that one there, no need to mess around with it, the second one is the one that you map to your power button :).
[Windows Mobile Apps and Games] jerryyyyy:
I see where I am confused... with the "under.mscr", which I thought got mapped to the power button, so it is not that script, but rather the second script? Duh....
[Windows Mobile Apps and Games] buru898:
When you open up the msm7kcpuspeed program, do you exit it or just lower it? You can exit it and the cpu will remain the same speed that you set it.
[Windows Mobile Apps and Games] buru898:
Heh yeah my bad if it wasn't clear.

The first script always went in your startup folder, the second script was the one you were supposed to map to your power off button.
[Windows Mobile Apps and Games] jerryyyyy:
Seem to be getting there slowly. When I execute the First script I get:

HKCU\Control Panel\BackLight\DispOn was not found.

Guess I need to create the key?
[Windows Mobile Apps and Games] moto68:
Mine was under

HKLM\Drivers\Display
[Windows Mobile Apps and Games] jerryyyyy:
Well, have been trying these scripts, and have searched the Resitry for DispOn and did not find it. So I am dead in the water? This is a Sprint TP2, pretty plain vanilla, so am surprised.
[Windows Mobile Apps and Games] jerryyyyy:
So was mine! Thanks, Bro. Now all I have to do is figure out what to do with it....

This is the edited script...
[Windows Mobile Apps and Games] bteljuice:
Special thanks for Netripper for making this possible and Buru for the step by step and Mortscript file.

One question though, I followed everything you wrote, except when i turn off the device and after i turn it back on after 5-10min, my CPU goes back to 604.8 and not 710 like i set it. How do i fix that?

And how do I set it to do 787 on start up and 710 on regular use?

Thanks again

AND GUYS, YES, IT DOES MAKE A HUGE DIFFERENCE IN PERFORMANCE :D

NetRipper, Do you mind if I link this thread at PPCGeeks, I am sure a lot of people would find this very useful.
[Windows Mobile Apps and Games] buru898:
It's SUPPOSED to clock back down to 604 because if it doesn't, then you get a SoD... that's the whole point of the script is to underclock before you turn it off to avoid the SoD.

In v2 of netripper's program, he enabled the option for "Apply speed at boot" so when your phone turns on for the first time, it auto overclocks, he also has a file called msm7kautocpuspeed in the program files folder as the original program which auto overclocks to the speed you set for "Apply speed at boot" whenever you press it with no confirmation window or anything, it just does it.
[Windows Mobile Apps and Games] NetRipper:
Thats fine, but I think it's already there. If you search on google for "ppcgeek msm7kcpuspeed" (without quotes) you'll find it.
[Windows Mobile Apps and Games] lmemperador:
yes, mine too.

hklm

you must change the scripts in order to be equal to this information. i think it is reg_root = HKLM

and the same for the other registry key mentioned.

i am using the first 2 scripts posted, startup.mscr and power.mscr.
[Windows Mobile Apps and Games] :
Hi,

I assembled your provided scripts in a way that they do not have to run in background any more all the time.

Basically there are 2 scripts:

1.) _boost.mscr

- Copy to root of device

- Call by a NOTIFICATION triggered by the WakeUp Event (can be set by e.g. FDC task manager)

- This script then boosts to OC only after a notification and only if Display is on. This prevents that the boosting is exacuted by a wake up event that is not linked to a disply on, e.g any OS internal regulary check, so no SOD is caused by faulty overclocking by an wrong Notification.

- After the script ran once, it is stopped again, only triggered by a new Notification (no CPU usage all the time, no endless looping and polling)

2.) _throttle.mscr

- Copy to root of device

- Run when pressing the power button

- throttles always to safe speed when power button is pressed.

Known Limitations:

- Sometimes the notification event is that early, that DispOn reg value is not yet updated. I tried to solfe by waiting for 2 seconds before checking it after notification and then boost. Sometimes still it does not boost again still. (For advanced users: Might be solved by longer sleep, or by polling for some 2-3 loops, then exit script.)

- The device is NOT set back to safe speed when falling to DispOn automatically. I recognized this also by the other solutions, so my work around is not to let is sleep automatically. Basically I set backlight off after 1 minute (the device also autolocks on backlight off) but no Suspend.

Suspend then only works by pressing power button.

On AUto-Suspend it seems the scripts are most of the time slower than the suspend, that leads to SOD.

- If scripts are on SD Card, might happen that SD card is not yet up after suspend, so better keep it on device.

-If pressing power button twice within a short time (on my device below 3 seconds) it stays on safe speed as no notification is yet triggered, device was not yet suspended.

Attentions:

- If you use other the GER ROM, you need to adopt the paths to your Program folder. In german its "Programme" in WWE its " Program Files" might be different on other languages.

- Set path to DispOn correctly!!! Adopt Registry path in Variables

- Set boost speed to whatever is OK on your device. Note, if registry value already exists for boost_speed, it always takes the value from the registry, script does only generate it when not yet existing and is not changeing it if existing.

Regards to all the developers for providing the initial scripts, for the tutories on how to assign the power button to a script, on how to edit a mortscript and aon setting Notifications.
[Windows Mobile Apps and Games] bteljuice:
Alright, Thanks Buru for the explanation.

When opening the program. I just set it to 710 and click APPLY SPEED AT BOOT and just leave it that way? so I can't reach 787 right. Coz when I set it to 787, phone directly hangs. So 710 is the best our phone can do?

One more question: Is there a way to get a script to do exactly what you did, but when the phone wakes up, it goes back to 710 automatically instead of me re-applying it everytime?

EDIT: Even at 710, I am getting occasional SOD. Using ENERGY GTX July 24
[Windows Mobile Apps and Games] bteljuice:
Yeah, just saw it, thank you. But it only has a few views. I just posted it to the TP2 section better than general section. Maybe it will get more views to see your amazing work.

Thank you again for all your hard work.
[Windows Mobile Apps and Games] jerryyyyy:
Back awake. Big travel day so will have time to play with scripts etc... I am going to try the two new scripts.

One problem I have is phone does not wake up with power button after editing the keys?
[Windows Mobile Apps and Games] Alcibiade:
NetRipper: any chance you'll be able to code in your application something similar to the scripts (or even better, something taking advantage of power states)

Not that I have anything against scripts but this is starting to be really messy... (So I stay away from it for the moment)
[Windows Mobile Apps and Games] HC4Life:
Hi,

Is there a way to keep the same speed, when is in AC power or not on my Blackstone? Which scripts i can use for that?

Thanx ;)
[Windows Mobile Apps and Games] fil--21:
could this work on xperia x1 ? anybody tried this ?
[Windows Mobile Apps and Games] NLogN:
LOLOLOL!!!

Ima solder in some more RAM as soon as my new prescription glasses arrive at Walmart. :eek:
[Windows Mobile Apps and Games] NLogN:
At 787, I'm stable. Can unplug without issue. Can configure, reconfigure on battery, no issues yet. Wake from standby gives unexpected error, like previously posted. Guess it's conflicting with whatever is forcing CPU Speed to default?

Some animations (weather tab) are still clunky due to incoming text & weater update. But overall, speed is improved.

Btw: On TP2 running Vin's latest Plutonium + Cookie build.

Nice job! Thanks for the work on this!
[Windows Mobile Apps and Games] Alcibiade:
I was not kidding !!!
[Windows Mobile Apps and Games] buru898:
I know everyone loves the overclocking, but does underclocking and putting phone to sleep/out of sleep cause it to SoD and/or go back up to the default clock speed?
[Windows Mobile Apps and Games] chris347101:
Has anybody got this to work "perfectly" on a diamond yet ?
[Windows Mobile Apps and Games] DJGonzo:
If this works, I will love you forever!

Thanks!
[Windows Mobile Apps and Games] 5318008:
Can't.

Hmm, this freezes my Rhodium! Haven't tried on USB, but on battery, setting to 787 immediately freezes my phone. Verified it does this every time on my phone.
[Windows Mobile Apps and Games] Alcibiade:
OK. It works for me on battery... I guess I ma lucky
[Windows Mobile Apps and Games] puff601:
OP THANK YOU SO MUCH FOR THIS! :) Ive got a Sprint TP2 on stock 6.5 and im at 787Mhz on battery power! i havent let the screen turn off yet but im about to do more tinkering. if it gives me SOD, ill just disable the screen from turning off until resolved. once again, thanks man!
[Windows Mobile Apps and Games] BeeGee_Tokyo:
Tested it on my Topaz aka Touch Diamond 2.

Works, with the same issues mentioned before.

Could go up to 710MHz, then the Topaz got instable and hung.

To be honest, I didn't see any big difference in daily use. It might help when watching movies or playing games, but it didn't make my HTC Sense or any other standard application feelable faster.
[Windows Mobile Apps and Games] kain144000:
I gotta say...

@NetRipper Work like this is like a F*&%IN' lifesaver for my Rhodium, 'cause word is bond, I'm not purchasing another device until specs are DAMNED-CLOSE to what I've stated that I'm looking forward to, mentioned here Can't wait 'til you can get this operating flawlessly w/o AC.
[Windows Mobile Apps and Games] doublen1:
Working pretty good on my Tilt 2 with Energy GTX Rom.

Freezes instantly when maxed out regardless of whether it's plugged in or not.
[Windows Mobile Apps and Games] yogi_ziom:
Works perfectly on my Rhodium@Energy ROM. I launched it without AC power and it doesn`t back to stock clocks. Even when maxed, it works :D but when tryin slide manila home tab for shortcuts and back, it freez. Looking for best OC stable.

When switched screen off, it`s not waking up on extreem OC :D
[Windows Mobile Apps and Games] lukesan:
Wow!!!!!!

Doing some tests on my Touch Pro at the moment.

This is has to be the greatest thing since months!

We need to develope this to gain performance from our aging devices.
[Windows Mobile Apps and Games] NetRipper:
I'll set the limit a little bit higher next time. Theoretically we could clock up to 1.1 ghz but not any cpu will go that far. :)

Well, I won't. I think there were already efforts in doing this, or maybe that was for the GPU in the snapdragon processor. Not sure.

I tried underclocking myself to about 100MHz and then disconnect usb, but still had lockup. The MSM dll itself probably first sets the speed back to 1ghz before deciding to cutting the speed in half (divider) for 528MHz :)
[Windows Mobile Apps and Games] xhozt:
Working on HTC pure"topaz" no crashes yet but will test more .
[Windows Mobile Apps and Games] xhozt:
hmmmm i like at 710
[Windows Mobile Apps and Games] Lirkaren:
Mine works fine on battery but I could only clock it to 748 MHz, I was hoping for 800+ =/
[Windows Mobile Apps and Games] deveb:
bennib., which ROM do you use?
[Windows Mobile Apps and Games] xhozt:
oc to 604 with noac ever plugged in working fine here
[Windows Mobile Apps and Games] fil--21:
ok i tried this now , and xperia working stable at 691 mhz ...above that is SOD .
[Windows Mobile Apps and Games] buru898:
Well most people have said that 710 is the safest, but some people can get it higher and still use it, I can get it to 787 but didn't care to try any higher.

You can overclock it higher by manually opening the program and setting the speed then exiting.

Hmm, I wouldn't doubt the possibility of making a script that changes back the oc speed when it wakes up but I do not know what it would be, I just assisng the msm7kautocpuspeed to my right home soft key until I test out a different script that's posted.

The guide I wrote works perfectly, still, regardless of my overclock speed (as long as it's stable) and still running for 4 or so days straight STILL with no SoD. I'm on Windows Mobile 6.1, and using the fastest ROM I ever used (and the most stable in fact) so maybe it's a ROM issue that might be causing your phone to SoD? I never liked those energy ROMs, too "fat" for me.

Maybe it could be a program running in background that causes your SoD? I run Sense 2.1 so it can't be that.
[Windows Mobile Apps and Games] bteljuice:
Yes, you are right, might be The rom or Sense 2.5. Im not quite sure. I will keep on testing to see how things work.

So if I understand correctly, Once you ve assigned the program to a specific key, every time u wake up the phone, you set it to your desired speed.

mmm... smart, but tiring don't you think.

guess we don't have any other choice for the meantime.

EDIT:Thanks for all your help Buru :) I assigned it to my start button, WORKS LIKE A CHARM :D , 768 is the stable one for me with NRJ 2.5 sense
[Windows Mobile Apps and Games] SpinalRemains:
I am thinking it has to be a ROM issue as well, Buru. I have a Sprint TP2 and I can manually OC to 768 and it's stable, but the script ya wrote with those great directions didn't work for me. My phone still wouldn't wake up when on any other seeting but 604. I put CHT on top of the stock windows mobile 6.5 with 2.5 sense. Perhaps the ROM I am using isnt compatible with the script.

I actually did do it differently than you tho. I didnt put your script within the very root of my phone. I put it in "\My Documents\OC scrpit\under.mscr" - I made a folder for it. then I tried "\Storage Card\My Documents\under.mscr" and that didnt work either. You said that wouldn't matter so Im guessing it's a ROM issue. I had no trouble with mapping the power key as I have used keyboard mapper before so I dunno why mine didnt work.
[Windows Mobile Apps and Games] Maxx134:
My testing is showing that there are processes still incomplete on a soft-reset, that will also cause SOD .

You must not set the phone to turn off less than 2minutes on battery.

The area of trouble I have traced to the wireless networks section.

Also all registry settings on "Sleep", "PowerSaveMode", or "DisablePowerManagement" did nothing but speed up a few areas very negligible.

There was one setting taht did help besides the :

battery/suspend/timeout=at least 2min for the wireless networks to finish whatever the hell it is doing (in Sense, maybe weather updating?).

But my testing haven't been conclusive enough to narrow it down yet.

planning to cab any benefits on all settings above.

This is all pertaining to SOD only...
[Windows Mobile Apps and Games] buru898:
Make sure the script runs first, then the phone powers off.

In the keyboard controller, on the screenshot I put for mapping the power button, does it look exactly like it and say "Run Program" first then under it is it the "Default Key Action"? Has to be that way so the script runs AND THEN the phone turns off.
[Windows Mobile Apps and Games] SpinalRemains:
Yeah ya know I figured it had to be that way, so yes I did have the Run Program first, then I have default setting afterwards but it didn't work. The mapping of the power button was not the problem Im thinking since when on 604 the phone went to sleep when I pressed it and woke up again. I felt it vibrate so Im assuming it was trying to run your script from the argument where it is but when on any higher frequency it SOD. I'm learning a lot anyway. By the time I get it to work I will have learned quite a bit of stuff just fromthis thread alone. So not all is wasteful I suppose.

If you don't mind, Buru, I'd like to ask you something. Why does your script have AutoSpeed..... seeing as Version 2 of the OPs program exe. is only Msm7kCPUSpeed? Does that matter for your script? If I manually remove the "Auto" from your script will it work? Or am I cluelessly not understanding? It's just that I thought the "Auto" was only associated with V1 of the program.

-Also, I don't know if this matters, but I noticed your script says ("\Program Files\Msm7kCpuSpeed.........Autocpuspeed.exe", does it matter that I have my Msm7kCpuSpeed intalled on Storage Card and not Device\Program Files? I get the impression that your script is telling the phone to look for a program that isn't there because mine is on Storage Card. Would it make more sense for the script to say Runwait ("\Storage Card\Program Files\Msm7KCpuSpeed..... for my instance because that's where it is located? I apologize for so many questions, but I am trying.