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

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

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

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

Comments

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 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

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

droll gravatar image

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

edit flag offensive delete publish link more

Comments

1

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

CsTom ( 2014-02-16 16:57:30 +0200 )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 +0200 )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 +0200 )edit

Question tools

Follow
1 follower

Stats

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

Seen: 1,706 times

Last updated: Feb 16 '14