We have moved to a new Sailfish OS Forum. Please start new discussions there.

how to make phone vibrate from command line? [answered]

asked 2014-02-08 09:37:09 +0300

droll gravatar image

how do I make the phone vibrate from a shell script?

i used dbus-monitor and didn't see any dbus message emitted when the phone vibrates. any idea?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by droll
close date 2014-02-16 15:10:42.168794


I wrote a simple command-line that just dlopens libvibrator, initializes, and does the vibrator_on thing.

Source here.

Alfonso ( 2020-02-27 14:15:22 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-02-16 15:10:29 +0300

droll gravatar image

i ended up writing my own console app to do this.

edit flag offensive delete publish link more



Care to share the beef of it? :) Was it some dbus-send or something else?

CsTom ( 2014-02-16 16:57:30 +0300 )edit

sure. i used the code in https://github.com/nemomobile/qt-mobility-haptics-ffmemless i also contacted the contributor from jolla mobile for that component (Chris Adams) and he provided some pointers too.

droll ( 2014-02-17 13:05:02 +0300 )edit

i've posted my source code at tmo here http://talk.maemo.org/showthread.php?p=1413581

droll ( 2014-02-21 02:56:04 +0300 )edit

Question tools

1 follower


Asked: 2014-02-08 09:37:09 +0300

Seen: 1,175 times

Last updated: Feb 16 '14