View Single Post
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: