webOS Nation Forums

webOS Nation Forums (/)
-   webOS Patches (http://forums.webosnation.com/webos-patches/)
-   -   [Patch] SMS Vibrate w/ Tweaks Support (http://forums.webosnation.com/webos-patches/321012-patch-sms-vibrate-w-tweaks-support.html)

nickpl 01/05/2013 06:03 PM

[Patch] SMS Vibrate w/ Tweaks Support
 
1 Attachment(s)
Based on the work Abyssul did here: [URL="http://forums.webosnation.com/webos-patches/225334-patch-sms-im-vibrate-extension.html"]http://forums.webosnation.com/webos-patches/225334-patch-sms-im-vibrate-extension.html[/URL] I have built a new patch.

This patch at its most basic enables a 2 second vibrate on SMS... but the cool thing is that it will check to see if it should Vibrate. What I mean is if you, in the sound preferences screen, have the phone set not to vibrate then it won't. Or (more importantly to me) if you are on a call it won't vibrate. This was the biggest issue I had with Abyssul's original patch.

Also, I have added tweaks integration. What this means is that you can change the length or pattern of the alert using tweaks. (see this post for a better explanation of the settings: [URL="http://forums.webosnation.com/webos-patches/321012-patch-sms-vibrate-w-tweaks-support.html#post3372098"]http://forums.webosnation.com/webos-patches/321012-patch-sms-vibrate-w-tweaks-support.html#post3372098[/URL])

The phone still makes the normal SMS vibrate before using this patch. If that bothers enough people I can change it, but it doesn't bother me enough to fix it. I have submitted the patch to Preware (first patch! :) ) so you can get it there soon. I have only tested this patch on an ATT and VZW Pre3 running 2.2.4. It might work on other phones too, but no promises, so please install this patch at your own risk!

I spent quite a bit of time on this (mostly because I had to teach myself how to write a patch), if you like this patch and it helps you, a small (or large) donation would definitely encourage me work on more patches!

[URL="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=nick%2ep%40ul%2eis%2enot%2ea%2dmoron%2ecom&lc=US&item_name=WebOS%20Patch&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"]Donate![/URL]

Please let me know if you have any problems with the patch on Pre3's... If you have problems with it on other WebOS phones I'll try my best to help, but as I only have Pre3s that's the only WebOS phone I claim this patch will work on (although, it should work on the Veer and Pre2... I think).

Also, I would think this goes without saying, but you must uninstall Abyssul's patch first

{Edit}Currently the patch can only be installed on WebOS 2.2.4 from Preware. I have attached the patch and tweaks file to this post if you would like to try it on your own. The .patch file can be installed with WebOSQuick Install. The .json file must be sent with WebOS quick install to the following directory if you want to enable tweaks support: "/media/cryptofs/apps/usr/palm/services/org.webosinternals.tweaks.prefs/preferences"

michel_ng 01/05/2013 06:47 PM

Where is the patch?

nickpl 01/05/2013 08:13 PM

[QUOTE=michel_ng;3371855]Where is the patch?[/QUOTE]

it should be in Preware shortly; if it seems to take a long time I'll post it here.

CptOx 01/06/2013 03:01 PM

Thanks for your work and add tweaks integration.
To be your first patch it shows that you have made a great effort to make it perfect.
Donate $20.

nickpl 01/06/2013 03:20 PM

[QUOTE=CptOx;3371947]Thanks for your work and add tweaks integration.
To be your first patch it shows that you have made a great effort to make it perfect.
Donate $20.[/QUOTE]Thanks!

The Tweaks integration definitely took some doing but it seemed like a better idea than having to make 3 or 4 different patches. However, my understanding of tweaks integration is not very good so sometimes the patch will lag a little before the vibrate happens. If it bothers people I can look into speeding it up.

-Nick

hfeb 01/07/2013 02:30 PM

Tanks for the patch, I have been looking for this, and the Tweaks integration is a plus. I just need a bit of info about "Period", what is this? Are the numbers milliseconds? Finally, what do I have to restart to activate the settings, Messagin/Luna or phone?

nickpl 01/07/2013 02:49 PM

[QUOTE=hfeb;3372089]Tanks for the patch, I have been looking for this, and the Tweaks integration is a plus. I just need a bit of info about "Period", what is this? Are the numbers milliseconds? Finally, what do I have to restart to activate the settings, Messagin/Luna or phone?[/QUOTE]
Sorry, I probably should have included this information in the patch. Yes all the numbers are in milliseconds, so 1000 would be 1 second.

The period is alittle strange (not something I made, this is how Palm has it), basicly is it controls the time between vibrations. For example if you had the duration set to 1000 and the period set to 100 then you will get a vibrate pulse every 100 ms for 1000 ms, so in simple terms you would get 10 vibration pulses over the course of 1 second. Pretty much any setting below 30 for the period is too short to notice.

You don't have to do anything special to activate the changes they should take effect instantly. However I have noticed that with tweaks once you change a number you have to touch outside the box (so that the text box loses focus) before you quit out of tweaks.

menashe04 01/16/2013 06:13 PM

Hi, Where can i download the patch to try on a pre2?

laingman 01/16/2013 09:37 PM

[QUOTE=menashe04;3373648]Hi, Where can i download the patch to try on a pre2?[/QUOTE]

Seems to only be in preware at this time

nickpl 01/16/2013 10:30 PM

[QUOTE=menashe04;3373648]Hi, Where can i download the patch to try on a pre2?[/QUOTE]I just updated the first post with a zip file of the patch and the tweaks add-in. I make no promises it will work (and its not my fault if your pre blows up ;) )... but I think it might. Good luck!

laingman 01/16/2013 11:22 PM

[QUOTE=nickpl;3373706]I just updated the first post with a zip file of the patch and the tweaks add-in. I make no promises it will work (and its not my fault if your pre blows up ;) )... but I think it might. Good luck![/QUOTE]
Thanks. Will let you know how it goes.

menashe04 01/17/2013 07:57 AM

1 Attachment(s)
i tried installing it with webosqi on my pre2 and i got an error message, i attached a screenshot,
can anyone help me please?

nickpl 01/17/2013 08:04 AM

[QUOTE=menashe04;3373772]i tried installing it with webosqi on my pre2 and i got an error message, i attached a screenshot,
can anyone help me please?[/QUOTE]That's an error message I've never seen WebOSQuick install give before. My first thought would be that either you are not connected to the internet (unlikely because I see the "internet" globe down by your network connection) or the WebOS Internals servers are down (also unlikely, they would have tweeted something if they were down).

I would check any firewalls you have on your computer and make sure they are not blocking WebOSQuick install (or just turn your firewalls completely off temporarily) and try it.

menashe04 01/17/2013 10:39 AM

so i tried it a different way,
i unzipped the file and emailed the patch file my phone,
i tried installing it with internalz,
and it tried and i got a similar error message

"error
patch installation failed.
AUSMT is missing. it is required for patching"

any help available?

nickpl 01/17/2013 11:06 AM

[QUOTE=menashe04;3373793]so i tried it a different way,
i unzipped the file and emailed the patch file my phone,
i tried installing it with internalz,
and it tried and i got a similar error message

"error
patch installation failed.
AUSMT is missing. it is required for patching"

any help available?[/QUOTE]If you go to Preware, click on the "List of Everything" and then start typing "AUSMT" one of the install choices should be AUSMT Scripts. That is what I believe that error message is looking for... The odd thing is that AUSMT should be installed automaticly, do you already have Preware on your phone and have you ever installed a patch from it before?

ulmens 01/18/2013 08:00 PM

Installed as described and all went smoothly. will report back for after testing. Great Job!

Edit:
After install, tweaks adjustment has no effect on duration or pattern of vibration. Reinstalled patch and checked file for tweaks integration is in place via internalz pro. Any suggestions

nickpl 01/22/2013 01:46 PM

1 Attachment(s)
[QUOTE=ulmens;3374062]Installed as described and all went smoothly. will report back for after testing. Great Job!

Edit:
After install, tweaks adjustment has no effect on duration or pattern of vibration. Reinstalled patch and checked file for tweaks integration is in place via internalz pro. Any suggestions[/QUOTE]

Ok so I'm going to assume that you have the newest verison of tweaks installed and other tweaks work.
I have attached to this post a special verison of the patch with extra debuging code. What I would like you to do is uninstall the current patch from preware and then install this patch using internalz pro or webosquickinstall. Then make a change to the patch in tweaks. Then open lumberjack (install from preware apps) and start a custom log with com.palm.app.messaging (you can just click on follow log) and have someone send you a text (or send yourself one if you carrier supports that).

Then if you could either pm me the log file or email it to me at patch [at} a-moron.com and I will check it out and see it that tells me what might be the problem.

Thanks!

-Nick

nickpl 01/23/2013 10:01 AM

1 Attachment(s)
[QUOTE=ulmens;3374062]Installed as described and all went smoothly. will report back for after testing. Great Job!

Edit:
After install, tweaks adjustment has no effect on duration or pattern of vibration. Reinstalled patch and checked file for tweaks integration is in place via internalz pro. Any suggestions[/QUOTE]Ok so I got your emailed logs, and the problem is totally not what I expected. It looks like there may be a problem with the way I am checking to see if the phone is on a call. If you could remove the patch and then install the patch I have on this post and email me the logs again that should let me know if that is indeed the problem.

Thanks again for the help testing this ulmens!

-Nick


All times are GMT -5. The time now is 03:51 PM.



Content Relevant URLs by vBSEO 3.6.0