SBSH Mobile Software Forums: WiFi toggling is not working - how do I fix this? - SBSH Mobile Software Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WiFi toggling is not working - how do I fix this? Solution to a known problem, at least for HTC Wizard users

#1 User is offline   spmwinkel Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 4,113
  • Joined: 10-May 06
  • Gender:Male
  • Location:Netherlands
  • Devices: Current: HTC Magic (Android) and iPod Touch. Old: HTC TyTn II + HTC Wizard (Windows Mobile)

Posted 02 May 2007 - 06:23 PM

Hi all smile.gif

PhoneWeaver has the feature to toggle WiFi. However, on HTC Wizard devices (also knows as T-Mobile MDA Vario, Cingular 8125, Orange SPV M3000, etc) this will not work right after a soft reset. Luckily, there is a solution for this specific problem, which will at least work on the HTC Wizard.

Technical details

The reason for the fact that WiFi can't be toggled by PhW by default, is because by default the WiFi driver isn't loaded after a soft reset. Having the WiFi drivers loaded will cost you about 1 MB of memory, so for people who never use WiFi it will be better to not have the WiFi drivers preloaded.

However, once you manually connect to a WiFi network through Comm Manager, the WiFi drivers will be loaded, and they will stay loaded. So from the moment that you manually enabled WiFi, PhoneWeaver can toggle your WiFi, until you soft reset again. This is very annoying, and luckily a solution is available.

What we will do, is setting the device to load the WiFi drivers immediately after each soft reset. This will cost you some free memory (1 MB memory loss has been reported on the internet), but this memory would be taken anyway if you would start WiFi through the Comm Manager since this would also load the WiFi drivers. So in the end, the only difference is for the moment between soft reset, and loading WiFi for the first time. smile.gif

Steps to make it work

Changing the registry

Note that changing the registry can harm your device, if you don't know what you're doing. So if you do this, it's at your own risk.
You will need a registry editor for your Pocket PC and then browse to this folder:
HKEY_LOCAL_MACHINE\Comm\TNETWLN1\Parms
(on some devices HKEY_LOCAL_MACHINE is abbreviated as HKLM)

In that folder, there will be a D-word value registry key, called "HTCPreloadWifi".
You will need to edit this value.
If it's not there, you will need to create it.
You will need to set it to 1.
(If you want to disable preloading WIFi, set it to 0 again)

Saving the change
After changing this D-word value, turn off the screen by shortly pressing the power button on top of the device.
Keep the screen off for 10 seconds.
Turn the screen on again.
Then keep the power button pressed until you see a popup screen asking for confirmation to power off the device; agree to that.
Then turn on the device again.
This process is to make sure that the registry change is saved, since a soft reset may not always work to save this registry change.

Final remark

It has been suggested to make this registry change automatic in PhoneWeaver, but the developer replied that he wouldn't do this, since it would interfere with user freedom to decide wether or not to preload WiFi. So people with a HTC Wizard will need to do this registry change once manually. smile.gif

Update A couple of posts down, funnyPC, a HTC Prophet user, noticed that this solution didn't work for his device, but putting a shortcut to WiFiInit resolved the issue in this case.
0

#2 User is offline   dlindman Icon

  • Experienced user
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 07-November 06
  • Devices: HTC TYTN II

Post icon  Posted 17 May 2007 - 07:04 PM

OK, I may be dense, but isn't there a way to initiate the driver like the comm manager does?? It would seem to me that if you can start the driver through some executable like comm manager does, you can stop worrying about editing the registry??
0

#3 User is offline   spmwinkel Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 4,113
  • Joined: 10-May 06
  • Gender:Male
  • Location:Netherlands
  • Devices: Current: HTC Magic (Android) and iPod Touch. Old: HTC TyTn II + HTC Wizard (Windows Mobile)

Posted 18 May 2007 - 05:21 AM

I guess the WiFi driver could be activated the same way as the Comm Manager does, but apparently WiFi drivers are different for various devices, which would mean that PhoneWeaver would have to contain code for all those devices, and would become much bigger in filesize.

Of course I'm not the programmer, so if Miguel says anything about this that doesn't correspond with what I just said, you should take his words instead of mine. wink.gif
0

#4 User is offline   Miguel Icon

  • SBSH Guru
  • Icon
  • Group: Developers
  • Posts: 2,298
  • Joined: 02-October 06
  • Gender:Male
  • Devices: HTC Touch HD & Diamond, HTC S-620

Posted 18 May 2007 - 10:40 AM

Comm Manager is an OEM program. ANd there are a lot of OEMS each with several devices and no way of covering all.
Once the driver is loaded, the Operating System gives a (almost) common way to manage the devices, but not before. Sorry.
Miguel
SBSH PhoneWeaver Project Manager.
miguel@sbsh.net

0

#5 User is offline   feathers Icon

  • Starting Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 02-May 07
  • Devices: Toshiba G900

Posted 14 August 2007 - 04:39 PM

I wish someone would work out how to do this for the Toshiba G900. Manually enabling WiFi after every reset is perfectly possible (I have to do it now) but is simply a pain to have to remember.

Couldn't it have gone into PhW as a User selectable option for those devices where it is required and the mechanism is understood?
0

#6 User is offline   dlindman Icon

  • Experienced user
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 07-November 06
  • Devices: HTC TYTN II

Posted 14 August 2007 - 07:06 PM

QUOTE(feathers @ Aug 14 2007, 06:39 PM) View Post
I wish someone would work out how to do this for the Toshiba G900. Manually enabling WiFi after every reset is perfectly possible (I have to do it now) but is simply a pain to have to remember.

Couldn't it have gone into PhW as a User selectable option for those devices where it is required and the mechanism is understood?


You can use mortscript to create a script that PhW can run. That is what I did for my T-mobile MDA (wizard). It works fine when PhW actually starts the profile.

LOL..... Looking forward to the next release.
0

#7 User is offline   feathers Icon

  • Starting Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 02-May 07
  • Devices: Toshiba G900

Posted 15 August 2007 - 08:35 AM

QUOTE(dlindman @ Aug 14 2007, 08:06 PM) View Post
You can use mortscript to create a script that PhW can run. That is what I did for my T-mobile MDA (wizard). It works fine when PhW actually starts the profile.

LOL..... Looking forward to the next release.

I've already got PhW running something else. I suppose a script could be written to run both things?
0

#8 User is offline   SinisterJunkie Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 6,565
  • Joined: 31-December 04
  • Gender:Male
  • Location:CT, USA
  • Interests:Freeride Mountain Biking, Snowboarding, Hiking, Gadgets, etc.
  • Devices: Tilt 2 (Rhodium) WM6.5

Posted 15 August 2007 - 10:45 AM

Yes it's easy to change your MortScript to run both or to make a new script that runs your two separate scripts, if you prefer. smile.gif
Sin (aka Mike)
0

#9 User is offline   funnyPC Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 18-September 07
  • Devices: Prophet

Posted 18 September 2007 - 02:34 PM

I tried this tweak on HTC Prophet, but still not working

any further help?
0

#10 User is offline   spmwinkel Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 4,113
  • Joined: 10-May 06
  • Gender:Male
  • Location:Netherlands
  • Devices: Current: HTC Magic (Android) and iPod Touch. Old: HTC TyTn II + HTC Wizard (Windows Mobile)

Posted 18 September 2007 - 02:50 PM

Unfortunately this is the only thing I could find when looking for a solution for my device, and it has worked for me and several others. However, in the same location that I found this tweak, another Prophet user mentioned that it didn't work for the Prophet.
You can read about it here: http://forum.xda-dev...d...51&page=143

I don't know of other ways to work around this, unfortunately... b2.jpg
0

#11 User is offline   YoLoLo Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 7,503
  • Joined: 13-May 04
  • Gender:Not Telling
  • Location:Paris, France
  • Interests:Yes ! I have some...
  • Devices: SPVM600 (AKA Qtek S200/HTC Prophet/Dopod/I-Mate Jamin/Xda Neo) + HTC Touch (for my wife)

Posted 18 September 2007 - 03:25 PM

QUOTE(funnyPC @ Sep 18 2007, 04:34 PM) View Post
I tried this tweak on HTC Prophet, but still not working

any further help?

Well, i use a Orange-branded S200, AKA Prophet, and i can toggle wi-fi on & off without any problem...
Maybe a ROM update ???
Or try to use BatteryStatus (link in my sig), and see if this tool won't solve your problem... unsure.gif
Updated on 2010-02-08
All the soft i use are on My Profile
If there is no solution, it means that there is no problem.
Posted ImageI'm in total Posted Image
0

#12 User is offline   funnyPC Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 18-September 07
  • Devices: Prophet

Posted 19 September 2007 - 12:10 AM

add a WiFiInit.lnk to \Windows\Startup folder , now work. So great
0

#13 User is offline   spmwinkel Icon

  • SBSH Guru
  • Icon
  • Group: Moderators
  • Posts: 4,113
  • Joined: 10-May 06
  • Gender:Male
  • Location:Netherlands
  • Devices: Current: HTC Magic (Android) and iPod Touch. Old: HTC TyTn II + HTC Wizard (Windows Mobile)

Posted 19 September 2007 - 05:54 AM

Thanks for the follow up on this! I will add this to the start post. smile.gif
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users