11/22/2009, 07:39 AM
|
#1 (permalink) |
|
Member
![]() ![]() Join Date: Nov 2009
Location: Hour West of Philly, USA
Posts: 1,571
Likes Received: 4
Thanks: 3
Thanked 215 Times in 161 Posts
|
I realized that I posted this in the wrong place, but have been unable to get back to my computer all day. I have re-posted this in the development area. I'm sorry to the Admins and to those who were annoyed by this.
I can't post links yet, but this is the Dev thread ID: 2056609 ![]() M. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hey! Like most, the tiny one buzz notification for SMS and E-Mail is not enough for me. I was thinking that I'd like to have those notifications trigger the same vibrate sequence as the phone app does on a phone call coming in. I'm going through the "incomingcall-assistant.js" and a couple others in that same dir (/usr/palm/applications/com.palm.app.phone/app/controllers/) seeing if I can figure out where the phone app is setting/calling the vibrate sequence so I maybe hijack that or cobble that into the SMS and/or mail notification js (I haven't gotten that far yet to see how these are done). Has anyone else been looking into this, or know of where the phone app is actually calling the vibrate sequence so this may be possible to hack into the SMS and mail one(s)? Having that one tiny vibe isn't enough for me. I am aware that there's a hack to lengthen the vibe time to one long vibe, but, I'm thinking this might be a bit more of an "elegant" solution (for myself, but I'm sure others would like it as well). Thanks for any help! M. Last edited by Xanadu73; 11/22/2009 at 08:32 PM. |
11/23/2009, 08:03 AM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 532
Likes Received: 0
Thanks: 3
Thanked 258 Times in 109 Posts
|
Try this:
Code:
vibrate: function() {
this.controller.serviceRequest(
"palm://com.palm.vibrate", {
method: 'vibrate', parameters: {
'period': 0,'duration': 50
}
}
);
},
If you are interested i can add this to the notification repeat patches once you figure out the vibrate pattern you want. |
11/23/2009, 09:30 AM
|
#3 (permalink) |
|
Member
![]() ![]() Join Date: Nov 2009
Location: Hour West of Philly, USA
Posts: 1,571
Likes Received: 4
Thanks: 3
Thanked 215 Times in 161 Posts
|
Wow! Thanks for dropping me this info! This is quite valuable!
How would multiple vibrates get strung together into one "sequence"? Code:
vibrate: function() {
this.controller.serviceRequest(
"palm://com.palm.vibrate", {
method: 'vibrate', parameters: {
'period': 0,'duration': 250
}
method: 'vibrate', parameters: {
'period': 0,'duration': 250
}
method: 'vibrate', parameters: {
'period': 0,'duration': 750
}
}
);
},
What does "period" mean in this context? The delay time for completing one event before it moves on to the next? Meaning a period of 250 would put a quarter second gap in between the buzzes? |
09/14/2010, 05:51 AM
|
#4 (permalink) |
|
Member
![]() Join Date: Sep 2010
Posts: 11
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi and sorry for my english ;-) I am from germany...
Can someone explain me how I open this folder and file in Windows? Or is there a patch in Preware for 3 vibration at a SMS? Thank you Last edited by BlackUser; 09/14/2010 at 06:06 AM. |
09/15/2010, 07:26 AM
|
#5 (permalink) |
|
Member
![]() Join Date: Sep 2010
Posts: 11
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Ok, at my Pixi Plus in "/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js" i insert after line 288
Code:
this.controller.showBanner(bannerParams, bannerLaunchParams, 'chat'); Code:
var data = {
chatThreadId: chatThreadId,
messageId: notificationData.messageId,
messageType: notificationData.messageType,
name: name,
address: notificationData.address,
message: message.escapeHTML(),
mmsImage: mmsSummaryData.image
};
Code:
var myTelephonyCommands = {
vibratorTurnOn: function(){
var request = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate',
parameters: {
'period': 125,
'duration': 500
},
onSuccess: function() {},
onFailure: function() {}
});
return request;
}
}
setTimeout(function(){ myTelephonyCommands.vibratorTurnOn(); }, 1000);
setTimeout(function(){ myTelephonyCommands.vibratorTurnOn(); }, 2000);
You can help me?? |
09/15/2010, 11:01 AM
|
#6 (permalink) |
|
Member
![]() Join Date: Sep 2010
Posts: 11
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
And this code in line 158 for 1.5 seconds also does not work, after the reboot of the phone!
Code:
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': 1500 }
});
//END MODIFICATION
var notificationType = notificationData.get('notificationType');
if (notificationType == this.Messaging.notificationTypes.newMessage) {
regards Last edited by BlackUser; 09/15/2010 at 11:13 AM. |
![]() |
|
| Tags |
| patches, vibrate |
| Thread Tools | |
| Display Modes | |
|
|



