PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro (http://forum.ppcgeeks.com/forumdisplay.php?f=63)
-   -   Need Program to Toggle 1x/Hybrid (http://forum.ppcgeeks.com/showthread.php?t=47045)

lexluthor 11-29-2008 09:56 PM

Need Program to Toggle 1x/Hybrid
 
I get much better battery life if I set my phone to 1x only (since I'm in a marginal signal area).

On my Verizon Touch Pro, I can change between 1x and hybrid in phone->menu->options->services->mode of operation->get settings as long as this is set first
HKLM\SOFTWARE\OEM\PhoneSetting to 0

As you can see, it's a bit of a pain to change it back and forth. The change does take place immediately though (no reset or anything needed, it's just instantaneous).

After some digging around, I might be getting close.

I searched the registry for hybrid and it came up in
HKLM/System/OEM_State/RSSI

If the UI is set to 1x, the entries in there are set as follows:
CSAF = 2
Hybrid_Ind = 0
SysType = 2

If the UI is set to Hybrid, the entries in there are set as follows:
CSAF = 4
Hybrid_Ind = 1
SysType = 3

BUT, if I just edit those entries in the registry, nothing happens.

So, either there are more registry entries or making the change in the UI starts/stops a service.


I'd absolutely love a tool that would allow me to toggle between 1x only and hybrid by just running the exe.

There's got to be an easy way to do this.

Any help is appreciated.

jaydubya 11-30-2008 01:59 AM

Re: Need Program to Toggle 1x/Hybrid
 
Subscribed - would be helpful to preserve battery life when at my house, which has borderline evdo coverage.

lexluthor 11-30-2008 07:39 PM

Re: Need Program to Toggle 1x/Hybrid
 
Anyone here have any ideas about this?

lexluthor 12-07-2008 08:13 PM

Re: Need Program to Toggle 1x/Hybrid
 
Someone had xda suggested I try to write a mortscript to change between 1x and hybrid, but that does look pretty complicated, so I don't know.

Plus, it still will take a while to do as it works through the script.

There really has to be a way to get this change into an .exe. I have wifi and bluetooth on/off programs. This can't be much different.

cjmedina 12-07-2008 08:59 PM

Re: Need Program to Toggle 1x/Hybrid
 
what about just making a cab on file and cab off file? leave the cabs in my documents or in the start menu when you need it install. then when your done turn off.

gsvnet 12-07-2008 09:03 PM

Re: Need Program to Toggle 1x/Hybrid
 
lexluthor,

If you make the registry change you finished in the first post, does it work after a soft reset? Also, if you make just the registry change and turn your radio on/off, does that work? Just curious. If the latter works, then maybe a small program can be made to change the registry as needed, and turn phone radio on/off.

lexluthor 12-07-2008 10:19 PM

Re: Need Program to Toggle 1x/Hybrid
 
gsvent,

good idea. I was in 1x mode. I made the reg change for hybrid and then I turned the phone radio off then back on. When the radio came back, the phone was still in 1x and the rge entries where changed back to the 1x setting.

There has to be someone who knows this or can help figure it out.

cjmedina, if I knew what changes had to be made, I'm sure I could get the help to turn that into an exe or cab, but I'm not that far along. The cab execution would probably take too long anyhow. The exes I have for toggle bluetooth and wifi are great. It's an immediate change.

Any more ideas?

mondaypickle 12-09-2008 10:35 AM

Re: Need Program to Toggle 1x/Hybrid
 
1 Attachment(s)
I've written a mortscript for this. At work right now, will post it up later today.

edit: Attached the mortscript. Place the roaming shortcut in \windows\ and then run Toggle1x.mscr. It will go through the menus automatically, so just give it a second to run. This will not take into account if you go and change the setting manually so it really only works if you only use this script to toggle it.

Let me know if you have any trouble with this.

lexluthor 12-09-2008 10:58 AM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by mondaypickle (Post 567988)
I've written a mortscript for this. At work right now, will post it up later today.

That would be great. I'd really appreciate it.

Is the mortscript pretty quick? I'd still prefer an exe toggle, but someone would first have to figure out exactly what's changing when you toggle manually and then the programming part should be pretty easy.

Interested to see how the mortcript goes though, that'll still be a lot better than doing in manually.

mondaypickle 12-09-2008 11:04 AM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by lexluthor (Post 568006)
Is the mortscript pretty quick?

Runs in a couple seconds. You might be able to reduce some of the time outs, the "sleep" lines in the script, but I had problems where it was running to fast and sending clicks/key presses to the wrong screen.

lexluthor 12-09-2008 11:33 AM

Re: Need Program to Toggle 1x/Hybrid
 
Great. Can't wait to try it out!

lexluthor 12-10-2008 12:46 AM

Re: Need Program to Toggle 1x/Hybrid
 
This is GREAT. Thank you very much.

Faster than I thought it would be.

Not much slower than it would be if it was just an .exe that made the reg changes.

Is the script set up to go to the today screen first or if I run it from some other screen, can things go haywire?

mondaypickle 12-10-2008 10:09 AM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by lexluthor (Post 569579)
Is the script set up to go to the today screen first or if I run it from some other screen, can things go haywire?

Should be able to run it from where ever. I have mine set as one of the shortcuts in the My Applications tab of tf3d but I have run it from inside total commander without any issues.

lexluthor 12-10-2008 10:26 AM

Re: Need Program to Toggle 1x/Hybrid
 
Ok. I'm really liking this.

I put my as a start menu shortcut.

mondaypickle 12-10-2008 09:11 PM

Re: Need Program to Toggle 1x/Hybrid
 
Glad I could help :)

DarkManX4lf 12-11-2008 12:15 PM

Re: Need Program to Toggle 1x/Hybrid
 
I cant get this to work. I put the shortcut in to the windows directory and tried to run the script and it gives me the error "There is no application associated with Toggle1x...."

Did I miss a step?

lexluthor 12-11-2008 12:21 PM

Re: Need Program to Toggle 1x/Hybrid
 
You need to install mortscript to run the script.

http://www.sto-helit.de/index.php?mo...st&category=18

DarkManX4lf 12-12-2008 09:37 PM

Re: Need Program to Toggle 1x/Hybrid
 
Thanks just did that and it works fine now. I did change the script to select EVDO/1x instead of Hybrid/1x.

Thanks !!

mnasr87 12-13-2008 10:14 PM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by mondaypickle (Post 567988)
I've written a mortscript for this. At work right now, will post it up later today.

edit: Attached the mortscript. Place the roaming shortcut in \windows\ and then run Toggle1x.mscr. It will go through the menus automatically, so just give it a second to run. This will not take into account if you go and change the setting manually so it really only works if you only use this script to toggle it.

Let me know if you have any trouble with this.

great post thanks for the great hack!

LoungeLizard 12-21-2008 03:57 PM

Re: Need Program to Toggle 1x/Hybrid
 
I have installed this shortcut, but it doesn't work for me any more. I have installed Juggalo's rom and it added a couple of extra "menus" in the phone settings list. Now the script opens the "Alert" menu. Is there a way to change it so it opens the Mode of Operation menu again? I would do it, but I have no idea how to use Mortscript. Mode of Operation is #8 on the list.

mondaypickle 12-22-2008 09:29 PM

Re: Need Program to Toggle 1x/Hybrid
 
Do you have the "Mode of Operation" entry in the list on the services tab? If not, you need to do the registry edit to enable it. If you do and there are more entries in this list you will have to edit the script. Its pretty simple, edit that part about the down keypresses, change in to the number of times you have to press down if you enter that tab to get to the mode of operation option.

gorillaguzzler 12-22-2008 11:22 PM

Re: Need Program to Toggle 1x/Hybrid
 
This is a nice little toggle thanks.

LoungeLizard 12-23-2008 08:56 AM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by mondaypickle (Post 594348)
Do you have the "Mode of Operation" entry in the list on the services tab? If not, you need to do the registry edit to enable it. If you do and there are more entries in this list you will have to edit the script. Its pretty simple, edit that part about the down keypresses, change in to the number of times you have to press down if you enter that tab to get to the mode of operation option.


Yes, I have mode of operation enabled, but I don't know how to edit the script. If there is a tutorial somwhere on doing this stuff, please post a link. I have searched, but haven't come up with anything.

jeffbartel 12-23-2008 10:16 AM

Re: Need Program to Toggle 1x/Hybrid
 
Excellent! This is what I have been looking for!

mondaypickle 12-23-2008 10:32 AM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by LoungeLizard (Post 595214)
Yes, I have mode of operation enabled, but I don't know how to edit the script. If there is a tutorial somwhere on doing this stuff, please post a link. I have searched, but haven't come up with anything.

Open the Toggle1x.mscr file in note pad. Look for this section:
Code:

Repeat (6)
        SendSpecial("Down")
EndRepeat

Change the Repeat (x) to be the number of times you have to press down. Whatever number the Mode of Operation option is in the list should be the number of times. For me there are 5 options above it, so just change that to be the correct number.

If you can't figure it out, just send me a list of the items in the selection box and I'll post a fixed script.

LoungeLizard 12-23-2008 10:50 AM

Re: Need Program to Toggle 1x/Hybrid
 
Thanks, I'll give it a try and let you know if I can't figure it out.

bee976 12-23-2008 07:21 PM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by LoungeLizard (Post 595354)
Thanks, I'll give it a try and let you know if I can't figure it out.

LoungeLizard: did you have any luck getting this to work? I am having the same issues, I am on Juggalos Custom ROM, so I think the Menus have changed from stock. I'm not sure about this because I never Looked at them before switching. For me the "network services" is the third one down. Then that menu has like 5 other options.

LoungeLizard 12-24-2008 06:06 PM

Re: Need Program to Toggle 1x/Hybrid
 
Quote:

Originally Posted by bee976 (Post 596597)
LoungeLizard: did you have any luck getting this to work? I am having the same issues, I am on Juggalos Custom ROM, so I think the Menus have changed from stock. I'm not sure about this because I never Looked at them before switching. For me the "network services" is the third one down. Then that menu has like 5 other options.


Yes, it worked, I changed the Repeat 6 to Repeat 8 and it worked like a charm. Also, you have to have "Mode of Operation" enabled by following the directions in the first post, not "Network Services".


All times are GMT -4. The time now is 09:12 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0