View Single Post
Posts: 121 | Thanked: 75 times | Joined on Oct 2009
#6
I found a way to get a vibration when on a call.

If, as root, you call

Code:
echo 100 > /sys/class/leds/twl4030\:vibrator/brightness
it will enable the vibration and it works when on a call

Code:
echo 0 > /sys/class/leds/twl4030\:vibrator/brightness
will disable vibration.

So from C \ C++ you can open the file and write to it to enable vibration. The only potential issue is that your application must be running as root.



For sound notifications I haven't gotten anything working yet.
I've tried creating my own pulsesink as described here and chaning the media.name to some of the tone one's described in the conf file but can get nothing working yet.
 

The Following User Says Thank You to matrim For This Useful Post: