View Full Version : WM5 Vibrate Timing
wacky.banana
14th June 2007, 12:11 AM
Hope this is the correct forum to post this in.
I am looking for someone to kindly develop a utility that will allow me to alter the standard 5 seconds that the vibrate option is set for within WM5.
As far as I am aware there is nothing out there that does this. HTC support in the UK simply say they don't have an option for doing this (thank you very much, not).
To make myself absolutely clear I am looking for a utility that will allow me to vary and set the length of time the vibrate function works for. The current deafult of 5 seconds not only uses up too much battery power but is a pain to use in a business environment.
The utility should ideally allow me to set the vibrate length to anything I want from 1 to, say, 5 secs in single second steps.
If anyone is able to develop a fully tested tool for this then please let me know.
Many thanks in advance.
WB
shantzg001
14th June 2007, 06:17 AM
@wb: You dont need a tool for this. You can simply make a few simple changes to the registry as shown here:
http://wiki.xda-developers.com/index.php?pagename=WM5_Tweaks_Other
If you want to change the settings quite frequently, and find editing registry again and again cumbersome, creating a tool for this shouldn't be too difficult and i'll make it when I get time but first try it by hand and see that if it works for you...
iridaki
14th June 2007, 05:51 PM
Nice tweak but it won't survive a profile switch!
It goes back to default. :confused:
Is there a way to make a permanent change?
Secondly, which script should I use if I want, when I receive a call or SMS,
the phone to play the ringtone and at the same time vibrate every 3 seconds for 1 second?
wacky.banana
14th June 2007, 07:21 PM
Shantz,
I definitely need a tool for this.
The registry tweak in the wiki only works if you have ring and vibrate set together. In that instance the vibrate lasts for the duration set for the ringtone.
If you set the phone to vibrate only it will ONLY vibrate for the standard 5 secs. It WILL NOT vibrate for any other time period set by the registry change you refer to.
Trust me, I have played with this for hours and got nowhere. I have also been in touch with HTC who confirm that on vibrate only the phone will ALWAYS default to the standard 5 secs as there is no script within WM5 that will allow one to set parameters around the vibrate timelength only.
So to summarise; you can change the vibrate time period so that it aligns with that of the ringtone; however if the phone is on vibrate and you get a notification come through, eg a text message, it will vibrate for the standard 5 secs set within WM5, irrespective of the settings of the registry tweak you refer to in the wiki. The only time the vibrate will use the settings set in the registry key is if you get a phone call come through, in which case it will vibrate for the same length of time set for the ringtone, else it does not work. Hope this is clear.
So can you help please?
Thanks
WB
hufkes
20th June 2007, 05:14 AM
so then why don't you make an empty ringtone - no sound but a ringtone file nonetheless? With that ringtone selected you say yourself you can vary the length.
wacky.banana
21st June 2007, 08:26 PM
Hufkes,
Because that's not what I am looking for. Your suggestion is an inelegant fix, akin to sticking plaster, not a solution.
I don't want to be fiddling about with the phone just before I go into a meeting to set a blank ringtone. I prefer to do what I do now: 2 taps and vibrate is engaged, full stop.
That's why I need a tool that can allow the user to set the vibrate length, something Microsoft should have thought of in the first place!
Anyway thanks for your input.
WB
shantzg001
27th June 2007, 07:04 PM
hey wb: I will make u a tool for this...but ull have to wait for some time...i have an interview coming up next week, so not much time right now...
deech
27th June 2007, 07:26 PM
Yes please me too when you get a chance. Been the thing I have missed the most.
GOOD LUCK with the interview too
wacky.banana
27th June 2007, 08:45 PM
Shantz,
Excellent offer very gratefully received. Yep, once you are past the interview give us a shout.
Hope the interview goes well by the way.
Cheers chap, you're a good 'un!
WB
wacky.banana
3rd July 2007, 02:50 AM
Shantz,
Are you back with us yet to kick this off?
Cheers
WB
shantzg001
3rd July 2007, 06:00 AM
Hey wb,
am sorry the interview has been rescheduled for this sunday...so though I do have "some" time but not enough to put into coding, i'm using that extra time to get some extra rest as the past few weeks have been quite hectic, especially the last week where i spent quite a lot of time studying...but dont worry i have a kinda layout in my mind for ur needs...will work on it as soon as im free...
wacky.banana
3rd July 2007, 10:57 PM
OK mate, cheers.
You had better get that job! :) Good luck.
WB
shantzg001
9th July 2007, 05:48 PM
finally had the telephonic interview just a couple of minutes ago...lets see if they call me or not..
btw ill start working on ur prog tmrw night if i dont have to go to a frnd's wedding..
wacky.banana
9th July 2007, 07:55 PM
I wish you luck.
In terms of the development of this tool, what I had in mind was, say, a script that would pop up some kind of dialogue box which would then allow you to set the duration of the vibrate. Duration could be from 1 seconds to the current 5, in 1 second steps, set either from a drop-down menu or chosen from 5 available time options presented on screen.
Once the vibrate length is set in this way then I would expect to be able to switch vibrate on, as one does now, and then have the vibrate for an incoming message (NOT a telephone call as the vibrate frequency works differently for this) occur for the set duration eg 1 sec or whatever.
Hope this makes sense. If you need more detail in terms of how I see this working, let me know.
Thanks again.
WB
shantzg001
16th July 2007, 04:44 PM
hey wb,
i've just started on the proggie.. However it does not seem possible\feasible to "set" it using the earlier native way. I can fulfill the other options and give u an exe. Whenever u want to set the vibra mode with ur options, u can tap on it or bind to a hardware button. Is that ok?
shantzg001
16th July 2007, 05:31 PM
wb, can you download the attached file and run it on ur ppc. check when u tap (or dbl tap) then does ur device vibrate...just checking whether the vibration code works on ur device or not...
shantzg001
16th July 2007, 06:41 PM
Made a sample app for u...try this and let me know...
just tap on app to create start and stop shortcuts...then click on start shortcut to add notification for device to vibrate for 5 seconds on incoming sms.
jus check and lemme know if it works..this is a very quick implementation so i'll have to keep my fingers crossed :)
wacky.banana
16th July 2007, 11:33 PM
Hello Shantz,
Seems like you got over your illness then.
Just got home and seen your message. Have downloaded the Vibra file to the Tytn.
I ran it and it created the Start & Stop shortcuts as you indicated. Tapped on the Start shortcut but nothing happens. I guess this was not what you were expecting?
Just to be sure I soft booted and ran the whole lot again, same result.
Cheers
WB
shantzg001
17th July 2007, 05:55 AM
yeah, am almost fit now...the fever's fully gone and tonsilitis is almost 60-70% cured..
actually, i had attached two different versions to this thread.
the first version will just make ur phone vibrate for 2 seconds instantaneously.
The 2nd version will not do anything at the very instant when you tap the start shortcut, but will start listening to incoming sms's. When you receive an sms, it will vibrate for 5 seconds...this was the intended behaviour..So let me know if you see anything happening on receiving an sms..
shantzg001
17th July 2007, 12:01 PM
wb, I've found out why the app might not have been working. I use smssetmessagenotification api to notify my app whenever an sms arrives, now I found out online that there are 2 problems related to this:
1. This API is known not to work reliably, infact i found only a handful of ppl out of hundreds who cud get it working and that too sporadically.
2. Ppl suggest that even if interception of sms notification works (by this api or any other method), then ur normal sms functionality will be lost as this notification goes only to the first available receiver and is not "passed-through" to all the listeners.
I'll do some more digging on this but looks like wht u want might not be possible after all (atleast without a "slower" workaround, I think i can set a notification alert on the "unread sms" registry entry and diff it with previous value for any notification to see if there is a new msg and then run the vibra thing...will that work for u?)
wacky.banana
18th July 2007, 10:48 PM
Shantz,
Workaround sounds good to me. Let me know how you get on.
Once again thanks. Appreciate your efforts here.
WB
shantzg001
29th July 2007, 06:12 AM
wb, I thought of a new solution. If you can install mortscript (which also gives u access to a lot of good things in this world via scripting), a simple script can be written, which:
1. detects whenever there is an incoming sms
2. turn down the phone volume
3. runs my exe with ur desired no. of seconds as arguments so that the phone vibrates for those many seconds
4. restores the phone volume.
Same thing can also be done with SKSchema but its paid and mortscript is free.
wacky.banana
29th July 2007, 01:47 PM
Shantz,
Sounds good to me.
Think we need to think through how we set this application up. There are 2 scenarios to contend with:
1) Where the phone acts as normal and an SMS message comes in and sets off a preset tone, ie when the device is NOT in vibrate mode.
2) Where the vibrate function is set on the phone to deliberately mute all incoming messages, including phone calls, to be substituted by the vibrate function. Obviously where SMS/MMS messages are concerned, they would need to be subject to the scripting rules to be setup via mortscript, ie the vibrate for x seconds routine where the vibrate length is set by the user.
Just a reminder that the behaviour of phone calls under vibrate versus that for SMS/MMS is quite different in Windows (god knows why). With the device set to vibrate incoming phone calls vibrate for the equivalent length of the ringtone: SMS/MMS messages, however, vibrate for a very LONG 5 seconds, no matter what.
PM me offline if you want to talk through my thoughts on this in greater detail.
Cheers
WB
shantzg001
29th July 2007, 03:29 PM
I guess its better to talk here itself so that if maybe we can inputs form other users as well..
Anyways, the scenarios mentioned by you can be taken care of by following two means:
1) mortscript can be setup to check the current sound settings to work accordingly. (will have to dig up more info on this, as to wht registry setting we have to see)
2) instead of using the normal method of setting the sound mode\vibrate mode etc, that can also be taken care of by the script(say by using ValeraVi's tool for toggling\changing between sound\vibra modes, dont remember the exact thread now but its in development and hacking only within the first two pages)
wacky.banana
29th July 2007, 04:12 PM
Shantz,
Fine by me.
Cheers
WB
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.