Home | Stories | Reviews | Treo™ Store | Accessories | Software | Discussion | Mobile | About | Search

 
 
Media Cable for iPod RedFly Media Cable for iPod for Treo Pro, Treo 800w, Treo 750, Treo 700wx, Treo 700w
Just $29.95
WEP870 Convertible Mono and Stereo Bluetooth Headset Samsung WEP870 Convertible Mono and Stereo Bluetooth Headset
Just $79.95
Micro-USB Travel Charger SPE Micro-USB Travel Charger for Palm Pixi / Treo Pro, Treo 800w
Just $9.95
Cradle w/ Spare Battery Slot Mobi Products Cradle w/ Spare Battery Slot for Treo Pro
Just $24.95
 
Old 10/23/2009, 04:21 PM   #1 (permalink)
Member
 
KingRican's Avatar
 
Join Date: Sep 2009
Location: Dirty Jrzy
Posts: 46
Thanks: 5
Thanked 0 Times in 0 Posts
Default Looking for longer SMS messaging vibration app

I thought I seen one somewhere, anyone recognize what I'm asking for...?

an app that when I get a text message, my phone will vibrate (if set on vibrate, sound off), longer than the 1/2 second it currently does?

Sorry, did a search on "vibrate" and nothing came up, just 5 threads, none of which answer my ?
KingRican is offline   Reply With Quote
Old 10/24/2009, 09:28 PM   #2 (permalink)
Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

TXT Manager in homebrew makes it go up to 3 seconds. I'd like it to go up to 5 seconds as I still miss some texts.
allygatt is offline   Reply With Quote
Thanked By:
Old 10/27/2009, 01:09 AM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

When the phone first came out there were a few posts about it. I got my phone to vibrate much longer by editing some of the code in what I believe was the file /usr/palm/applications/com.palm.app/messaging/app/controllers/notification-assistant.js

I haven't messed with it since the last couple patches, and don't have my programs available at the moment to go editing. I'll try in about an hour to see if it's still working if you don't want to test things yourself.

The post I originally made about increasing vibrate time was here: http://forums.precentral.net/web-os-...ml#post1688906
websterguy is offline   Reply With Quote
Old 10/27/2009, 02:47 AM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

So, yeah, if you feel comfortable editing files on the pre at all, here's the way to do it:

Open file /usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js

Lines 147-148 say

Code:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
var notificationType = notificationData.get('notificationType');
Directly after that, add the lines

Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
The duration will be the number of seconds you want the vibrate to last. 3000 = 3 seconds.

Reboot and that's it.
websterguy is offline   Reply With Quote
Thanked By:
Old 10/30/2009, 05:53 AM   #5 (permalink)
Member
 
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
Default

i tried this however, it doesn't work because it appears com.palm.vibrate no longer exists. how can we still call the vibrate function if using the latest and great webOS 1.2.1?

Quote:
Originally Posted by websterguy View Post
So, yeah, if you feel comfortable editing files on the pre at all, here's the way to do it:

Open file /usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js

Lines 147-148 say

Code:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
var notificationType = notificationData.get('notificationType');
Directly after that, add the lines

Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
The duration will be the number of seconds you want the vibrate to last. 3000 = 3 seconds.

Reboot and that's it.
fishheads is offline   Reply With Quote
Old 10/30/2009, 06:11 AM   #6 (permalink)
Member
 
Join Date: Apr 2003
Location: Boston-area
Posts: 4,496
Thanks: 232
Thanked 628 Times in 356 Posts
Default

You're missing a few brackets and parentheses there, but otherwise the same code is working in a few patches I've made for other things. It's been said that directly accessing that might only work in com.palm.app programs, but shouldn't be an issue for messaging.

In other applications I believe you're stuck with the default vibrate length via something similar to:

Code:
Mojo.Controller.getAppController().playSoundNotification("vibrate", "")
jhoff80 is offline   Reply With Quote
Thanked By:
Old 10/30/2009, 06:13 AM   #7 (permalink)
Member
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Building a Prebrator are we?
zefyx is offline   Reply With Quote
Old 10/30/2009, 06:37 AM   #8 (permalink)
Member
 
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
Default

ah....got it. thanks for looking out. after the modifications, it works as advertised! this should really be just a setting in the preferences anyway. for those who want to give it a go, here's the correct code:

this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
});

modify the duration to your preference. a couple of things to note is that after inserting this into the code, the default vibration also occurs and when the switch is set to ringer, it will vibrate for the set duration AND play the message tone. is there a way just to get the vibrate longer when the switch is off?? i don't need it to vibrate for 3 seconds while i sleep AND play a tone.

Quote:
Originally Posted by jhoff80 View Post
You're missing a few brackets and parentheses there, but otherwise the same code is working in a few patches I've made for other things. It's been said that directly accessing that might only work in com.palm.app programs, but shouldn't be an issue for messaging.

In other applications I believe you're stuck with the default vibrate length via something similar to:

Code:
Mojo.Controller.getAppController().playSoundNotification("vibrate", "")

Last edited by fishheads; 10/30/2009 at 06:48 AM.
fishheads is offline   Reply With Quote
Old 10/30/2009, 09:25 AM   #9 (permalink)
Member
 
Join Date: Jul 2009
Posts: 125
Thanks: 7
Thanked 23 Times in 14 Posts
Default

I would LOVE to see this as a patch for Preware (maybe it could prompt you for the duration value of your choosing during installtion).

Anyone else agree?
Habious is offline   Reply With Quote
Old 10/31/2009, 07:48 PM   #10 (permalink)
Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Habious View Post
I would LOVE to see this as a patch for Preware (maybe it could prompt you for the duration value of your choosing during installtion).

Anyone else agree?
I would like to see this too! I'm hestitant to change code on mine...I'm not that saavy:-(
allygatt is offline   Reply With Quote
Old 11/02/2009, 03:37 PM   #11 (permalink)
Member
 
Join Date: Sep 2009
Location: Miami, FL
Posts: 72
Thanks: 27
Thanked 4 Times in 4 Posts
Default

Great fix. Can this be done for emails?
NABRIL15 is offline   Reply With Quote
Old 11/04/2009, 09:53 PM   #12 (permalink)
Member
 
Join Date: Sep 2009
Location: Miami, FL
Posts: 72
Thanks: 27
Thanked 4 Times in 4 Posts
Default Error with messaging notification extended vibration file

i applied this modification, and suddenly my messaging stopped working altogether. I would tap the icon, and the bright white light would come on, and nothing.

I returned the original file, and it works fine. Can you take a look at it to see what I screwed up?
Attached Files
File Type: zip notification-assistant.zip (5.6 KB, 1 views)
NABRIL15 is offline   Reply With Quote
Old 11/08/2009, 02:03 AM   #13 (permalink)
Member
 
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
Default

You're missing the closing brackets and parentheses:


if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
//BEGIN MODIFICATION
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 2000 }
});
//END MODIFICATION
var notificationType = notificationData.get('notificationType');
if (notificationType == this.Messaging.notificationTypes.newMessage) {


If someone is able to find out exactly where the duration of the factory installed vibrate file is, I think this would solve all our problems. Again, the way this hack operates is that it will add this extra long vibrate to the default sound (or when the switch is set to vibrate) the default vibrate. This isn't something I want disturbing me in the middle of the night. I get random texts from friends at all hours, so this modification won't work for me, and probably most others.

Quote:
Originally Posted by NABRIL15 View Post
i applied this modification, and suddenly my messaging stopped working altogether. I would tap the icon, and the bright white light would come on, and nothing.

I returned the original file, and it works fine. Can you take a look at it to see what I screwed up?
fishheads is offline   Reply With Quote
Thanked By:
Reply


Thread Tools
Display Modes

~


All times are GMT -4. The time now is 06:52 PM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 
 

Copyright ©1999- TreoCentral. All rights reserved : Terms of Use : Privacy Policy

TREO and TreoCentral are trademarks or registered trademarks of palm, Inc. in the United States and other countries;
the TreoCentral mark and domain name are used under license from palm, Inc.
The views expressed on this website are solely those of the proprietor, or
contributors to the site, and do not necessarily reflect the views of palm, Inc.

Explore More: Crackberry | WMExperts | the iPhone Blog | Android Central | Smartphone Experts Combined Forums