06/17/2009, 02:57 PM
|
#1041 (permalink) |
|
Member
![]() Join Date: Oct 2007
Posts: 168
Likes: 3
Thanks: 12
Thanked 15 Times in 11 Posts
|
I think people want it to vibrate more than once or make it vibrate longer. I personally didn't get it to work for me. I used the exact same code and never got more than one vibrate. I even spaced out the timeouts.
|
|
06/17/2009, 03:10 PM
|
#1042 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 5
Likes: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
The vibrating seems to be handled somewhere else. If I have some time this afternoon I'll take a closer look at how the notifications/vibrations are handled. |
|
|
06/17/2009, 03:47 PM
|
#1044 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 3
Likes: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
I'm excatly @ the same point as Gidi, Maybe Peef can upload his Webos file so we can enjoy, now problem for me to supply him with server space. @peef, Please respond here or in PM. Thanks, Nadavi. Last edited by NAdavi; 06/17/2009 at 04:10 PM. |
|
|
06/17/2009, 04:10 PM
|
#1045 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 31
Likes: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Small update from me.
even though it got stuck at 84% on my last trial, when I removed the battery placed it back to turn on the device it booted normaly without any problem. in fact I did have that enable wifi menu but a. could not go back to the activation screen b. when I reset the phone it remembered the wifi settings but still didnt activate. pEEf - did you do any additional thing? |
|
06/17/2009, 04:13 PM
|
#1046 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 3
Likes: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
Can you please upload your rom file to any server (e.g. Yousendit.com) Thanks, Nadavi |
|
|
06/17/2009, 04:29 PM
|
#1047 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 14
Likes: 0
Thanks: 3
Thanked 9 Times in 4 Posts
|
I've found some more info on the vibrate function, it is actually quite simple to implement, as soon as I get my pre (getting it on friday, woot!) I will implement the vibrate function into the messages/notifications as has been requested by many users.
to use the vibrate function you must include the "vibrate.js" file which can be found in '/usr/palm/applications/com.palm.app.deviceinfo/app/models/vibrate.js' from there you can call Vibrate.vibrate() anywhere in the application. It can also take a 'length' argument which sets how long you want it to vibrate (default is 300 ms), so for example if you wanted it to vibrate for 500ms (1/2 sec) then you would call Vibrate.vibrate(500) or if you wanted it to vibrate for 5 seconds you would call Vibrate.vibrate(5000). It's as simple as that! If you want to call the vibrate directly (through the mojo/luna sys mgr) you can look inside the Vibrate.vibrate function declaration for the method to call to initiate it directly through crotest. |
|
06/17/2009, 05:14 PM
|
#1048 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 98
Likes: 0
Thanks: 26
Thanked 79 Times in 17 Posts
|
Sorry guys, I can't upload the jar file as it contains copyrighted Palm code. If we start doing that around here, we may get shut down. I definitely don't want to cause this forum any trouble; it's an amazing resource! Besides, it's 200 megs!
Yes, mine died somewhere after 60%, but when I rebooted the phone all was well. Once you enable WiFi, make sure the phone is indeed getting connected and can "see" the internet. Look at the IP address in the WiFi control panel and see if you can ping it from another computer on your network. If it has internet access it should activate! Just go back to the profile creation screen and follow the prompts for creating a new profile. Keep us posted! |
|
Thanked By:
NAdavi
|
06/17/2009, 05:17 PM
|
#1049 (permalink) | |
|
Tazmorator (Chief Mod)
![]() Join Date: Dec 2005
Location: P|C when the light below is green. Otherwise; I could be just about anywhere.
Posts: 10,715
Likes: 215
Thanks: 3,113
Thanked 2,773 Times in 1,851 Posts
|
Thanks 3l33t33n,
Quote:
__________________
![]() Just call me Berd.
|
|
|
06/17/2009, 05:18 PM
|
#1050 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 98
Likes: 0
Thanks: 26
Thanked 79 Times in 17 Posts
|
I created a mod so I can turn off the cellular radio, but keep WiFi and Bluetooth on. There is no current way to do this, only the "Airplane Mode" which shuts off ALL radios!
I currently do not have Sprint service on my Pre, and am just using it with WiFi. This would also be useful for people wanting to save their battery if in a poor or no service area and wish to still use wifi. Another use is shutting off the phone so calls will not be received. I posted the howto in the wiki: pre dev wiki: Radio Power Switch |
|
06/17/2009, 06:11 PM
|
#1052 (permalink) | |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 98
Likes: 0
Thanks: 26
Thanked 79 Times in 17 Posts
|
Quote:
[CODE] this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", { method: 'vibrate', parameters: { 'period': 0,'duration': 250 } }); [/CODE] This produces one quarter-second vibrate. (250ms) You can use this to also make pulsed vibrates, setting period to 250 and duration to 2000 will make 4 short vibrates over a 2 second span. The Period param is a "no vibrate" period, so setting it to zero makes it continuous. Duration is the length of the cycle. The crotest is some kind of a test mode I think, and not intended for normal use (so it may break in the future). Last edited by pEEf; 06/17/2009 at 06:13 PM. Reason: typos |
|
|
06/17/2009, 06:16 PM
|
#1053 (permalink) | |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 98
Likes: 0
Thanks: 26
Thanked 79 Times in 17 Posts
|
Quote:
So my work isn't invalidated after all! =) |
|
|
06/17/2009, 06:34 PM
|
#1054 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 98
Likes: 0
Thanks: 26
Thanked 79 Times in 17 Posts
|
One thing that seems to be missing is any kind of feedback from the touchscreen. It would be cool to make the speaker "thock" and/or maybe the vibrator jump momentarily upon each valid touch. That would make it more intuitive.
Come to think of it, maybe even the keyboard could benefit as well. Of course, we could make it selectable so it can be enabled only if desired. I have no clue (as yet) where the touchscreen is processed, but it's likely in a binary somewhere. But I bet Palm has included an event trigger somewhere in there. Anyone have any ideas? |
|
06/17/2009, 06:42 PM
|
#1055 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Minneapolis, MN
Posts: 58
Likes: 0
Thanks: 6
Thanked 7 Times in 6 Posts
|
Quote:
|
|
|
06/17/2009, 06:43 PM
|
#1056 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 14
Likes: 0
Thanks: 3
Thanked 9 Times in 4 Posts
|
Quote:
[CODE] vibratorTurnOn: function(aPeriod, aDuration){ var request = new Mojo.Service.Request("palm://com.palm.vibrate", { method: 'vibrate', parameters: { 'period': aPeriod, 'duration': aDuration }, onSuccess: function() { QDLogger.log("Successfully initialized vibrator"); }, onFailure: function() { QDLogger.log("Error initializing vibrator"); } }); return request; } [/CODE] pEEf, thanks for the suggestion, I had a suspicion that crotest is/will be unreliable for applications but for testing purposes I figured it would do fine. |
|
|
06/17/2009, 07:10 PM
|
#1057 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 14
Likes: 0
Thanks: 0
Thanked 2 Times in 1 Post
|
I did just test, and the code that was previously posted to get 3 vibrates actually will make the notification sound play 3 times. This happens if you are still on the messaging card for the person whose message is incoming and the screen has not timed out (gone black).
|
|
06/17/2009, 07:40 PM
|
#1058 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 5
Likes: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Try this in /usr/palm/applications/com.palm.app/messaging/app/controllers/notification-assistant.js insert [CODE] //not sure if TelephonyCommands is available to all apps? //will just create local in case 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); [/CODE] starting at line 179 (under the following line): [CODE]this.controller.showBanner(bannerParams,bannerLaunchParams,'chat');[/CODE] which will add two more vibrations when you get the new message notification, if the com.palm.vibrate request does indeed work to vibrate. |
|
|
06/17/2009, 07:48 PM
|
#1059 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 14
Likes: 0
Thanks: 0
Thanked 2 Times in 1 Post
|
Ok, so
[code] this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", { method: 'vibrate', parameters: { 'period': 0,'duration': 250 } }); [/code] seems to work! I inserted into the function [code] if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) { [/code] first thing, before [code] var notificationType = notificationData.get('notificationType'); [/code] Set the duration to 1500, and now my phone vibrates for 1.5 seconds when I get a txt. Not a very strong vibrate, but it works. |
|
![]() |
| webOS Nation Forums OK ROM comes |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
















Linear Mode









