View Single Post
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#12
Maybe this can be done with a simple daemon or editing the call deamon script (if such a thing exists, I am only an N900 owner )

If a call ringing
If screen locked
If proximity sensor is not close to something
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked
SOMEVARIABLE="yes"

When the call is over
if $SOMEVARIABLE = "yes"
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked
SOMEVARIABLE=NO

Maybe someone should research what daemon triggers when calls income, I do not have an N9 and therefore do not have much interest, these instructions are for the N900 anyways, but just my 2 cents

Last edited by pablocrossa; 2012-04-09 at 14:53.