Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2009-12-05, 21:04
hopbeat's Avatar
hopbeat hopbeat is offline
 
Join Date: Oct 2009
Location: Denmark/Poland
Posts: 516
Thanks!: 209
Thanked 643 Times in 233 Posts
Default Vibra service

Hello,

I would like to make the phone vibrate, preferably just a short impulse.
I haven't found anything substantial on how to do this. Any idea which DBus interface to use?
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
Reply With Quote
  #2  
Old 2009-12-06, 08:31
danielwilms danielwilms is offline
 
Join Date: Mar 2009
Posts: 432
Thanks!: 338
Thanked 645 Times in 236 Posts
Default Re: Vibra service

Hey,

have a look at the DBus API of MCE. This should do the job.

Cheers Daniel
Reply With Quote
The Following 4 Users Say Thank You to danielwilms For This Useful Post:
  #3  
Old 2009-12-06, 08:44
hopbeat's Avatar
hopbeat hopbeat is offline
 
Join Date: Oct 2009
Location: Denmark/Poland
Posts: 516
Thanks!: 209
Thanked 643 Times in 233 Posts
Default Re: Vibra service

Thanks, for future reference:

Code:
Nokia-N900-42-11:~# dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:'PatternTouchscreen'
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
Reply With Quote
The Following 2 Users Say Thank You to hopbeat For This Useful Post:
  #4  
Old 2009-12-18, 11:53
cpscotti cpscotti is offline
 
Join Date: Dec 2009
Location: London, United Kingdom
Posts: 112
Thanks!: 46
Thanked 122 Times in 40 Posts
Default Re: Vibra service

Quote:
Originally Posted by hopbeat View Post
Thanks, for future reference:

Code:
Nokia-N900-42-11:~# dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:'PatternTouchscreen'
That should make it vibrate?
There's something wrong or it is just my device that is not vibrating?
Thanks!
__________________
Happy n900 owner!
Check my apps: n900fly, accdisplay and the "desktop command execution" widget!
Reply With Quote
  #5  
Old 2009-12-18, 13:06
danielwilms danielwilms is offline
 
Join Date: Mar 2009
Posts: 432
Thanks!: 338
Thanked 645 Times in 236 Posts
Default Re: Vibra service

Quote:
Originally Posted by cpscotti View Post
That should make it vibrate?
There's something wrong or it is just my device that is not vibrating?
Thanks!
the touchscreen pattern is really weak...try out for example 'PatternChatAndEmail'. Maybe you just missed the vibra before

Daniel
Reply With Quote
The Following User Says Thank You to danielwilms For This Useful Post:
  #6  
Old 2009-12-18, 13:39
cpscotti cpscotti is offline
 
Join Date: Dec 2009
Location: London, United Kingdom
Posts: 112
Thanks!: 46
Thanked 122 Times in 40 Posts
Default Re: Vibra service

Quote:
Originally Posted by danielwilms View Post
the touchscreen pattern is really weak...try out for example 'PatternChatAndEmail'. Maybe you just missed the vibra before

Daniel
Forget about it.. that is right....
But remember that the general setting override whatever u do in this interface.
__________________
Happy n900 owner!
Check my apps: n900fly, accdisplay and the "desktop command execution" widget!
Reply With Quote
  #7  
Old 2009-12-18, 13:42
cpscotti cpscotti is offline
 
Join Date: Dec 2009
Location: London, United Kingdom
Posts: 112
Thanks!: 46
Thanked 122 Times in 40 Posts
Default Re: Vibra service

Quote:
Originally Posted by danielwilms View Post
the touchscreen pattern is really weak...try out for example 'PatternChatAndEmail'. Maybe you just missed the vibra before

Daniel
Yeeep! nice!...
Question..: do u have the a link to the list of available Patterns in hand?

Thanks!
__________________
Happy n900 owner!
Check my apps: n900fly, accdisplay and the "desktop command execution" widget!
Reply With Quote
  #8  
Old 2009-12-18, 13:42
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Re: Vibra service

Quote:
Originally Posted by cpscotti View Post
Yeeep! nice!...
Question..: do u have the a link to the list of available Patterns in hand?

Thanks!
Look in /etc/mce/mce.ini
Reply With Quote
  #9  
Old 2009-12-18, 13:45
cpscotti cpscotti is offline
 
Join Date: Dec 2009
Location: London, United Kingdom
Posts: 112
Thanks!: 46
Thanked 122 Times in 40 Posts
Default Re: Vibra service

PS: I just tried "PatternIncomingCall" (out of the blue) and now my phone vibrates nonstop!

I did
Code:
Nokia-N900-42-11:~# dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_disable
to stop it.. but.. if I enable.. the shaking continues..
LOL!
PatternIncomingCall never ends. To stop it, send:

Code:
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.

Quote:
Originally Posted by qwerty12 View Post
Look in /etc/mce/mce.ini
Thanks a lot! It's exactly what I wanted!
__________________
Happy n900 owner!
Check my apps: n900fly, accdisplay and the "desktop command execution" widget!

Last edited by cpscotti; 2009-12-18 at 14:12.
Reply With Quote
  #10  
Old 2010-02-20, 16:53
marioh marioh is offline
 
Join Date: Feb 2010
Posts: 2
Thanks!: 0
Thanked 0 Times in 0 Posts
Default Re: Vibra service

Code:
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.
does not stop the vibrating for me.

It just prints an error:

Code:
# dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.
process 6733: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_member (method)" failed in file dbus-message.c line 1081.
This is normally a bug in some application using the D-Bus library.
process 6733: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 2492.
This is normally a bug in some application using the D-Bus library.
Couldn't allocate D-Bus message
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:42.