View Single Post
Posts: 669 | Thanked: 433 times | Joined on May 2010
#1
i created a small script that allows you to answer calls by getting the device near your ear (using proximity sensor).
if the sensor is closed when the script is run (like if there's a call while the device is in the pocket) it will not answer but wait for an open state and only then it will answer on close state.

To use this feature you will have to set 2 dbus events invokes in "/etc/dbus-scripts.d/dbus-scripts-settings":

[scripts path]/incomingcall.sh * * com.nokia.mce.signal sig_call_state_ind ringing normal
[scripts path]/callend.sh * * com.nokia.mce.signal sig_call_state_ind none normal

Set the scripts to with execute permissions.

When a call comes, the incomingcall.sh is called, calling to the ProximityAnswerScan script.
When the call terminates, the callend.sh script is called which causes the ProximityAnswerScan to end.

After using it for some time now - it seems to be very comfortable way to answer calls - even when sometimes the device is not responsive when the call arrives.


Hope you'll like it too.
Attached Files
File Type: zip ProximityAnswer.zip (767 Bytes, 146 views)

Last edited by impeham; 2012-03-01 at 18:49.
 

The Following 11 Users Say Thank You to impeham For This Useful Post: