Reply
Thread Tools
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#1
Hi,

is there a way to make the N900 to vibrate without using the dbus?

Many thanks.
 
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#2
No one?
Another question:
in mce.ini there's a PatternUserManual profile in VibraPatternRX51.
The comment says:
Code:
# Note: for PatternUserManual the user will send vibration details.
#       So only priority is important in the pattern
#       Rrepeat count is set to 1 since now it can't be changed by the user
#       The user will be able to set speed and OnPeriod only
My question is: how can I "set speed and OnPeriod" with the dbus call?

EDIT: Found it:
Code:
req_start_manual_vibration

/**
 * Activate user defined vibrator pattern
 *
 * @since v1.8.18
 * @param speed @c int32 @c * vibration speed, value between -255 - 255
 * @param duration @c int32 @c * vibration duration in milliseconds (0 means forever)
 */
Example:
Code:
dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_start_manual_vibration int32:150 int32:300

Last edited by sakya; 2012-04-25 at 09:01.
 

The Following 2 Users Say Thank You to sakya For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#3
Originally Posted by sakya View Post
Hi,

is there a way to make the N900 to vibrate without using the dbus?

Many thanks.
Do you really want to avoid dbus, or just avoid a direct dbus system call?

I saw this piece of code a while ago, (QT/C++)
http://kunalmaemo.blogspot.com/2010/...-in-maemo.html

Under the hood it will still uses dbus calls, so I don't know if it will be of use for you.
 

The Following User Says Thank You to ade For This Useful Post:
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#4
I was looking for some library to use the vibra without using dbus and setting speed and duration.
I solved my "problem" using the dbus call I wrote in my previous message.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:17.