I know it was on the N800.
description "Locks da phone" start on started hildon-desktop console none script run-standalone.sh /usr/bin/dbus-send --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_open string:'com.nokia.mce' string:'/com/nokia/mce/request' string:'com.nokia.mce.request' string:'devlock_callback' uint32:'3' end script service
#!/bin/sh #set +x monitor() { run-standalone.sh dbus-monitor --system type='signal',path='/com/nokia/mce/signal',interface='com.nokia.mce.signal',member='devicelock_mode_ind' | awk '/string "/ {print $2; fflush() }' | { while read line; do if echo $line | grep -q ":"; then DBUS_MONITOR_PID=$(echo $line | sed s/\"//g) fi if grep -q "unlocked"; then kill $(run-standalone.sh dbus-send --system --print-reply=literal --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_MONITOR_PID | awk '{print $2; fflush()}') exit 0 fi done } } main() { # SLIDE_STATE=`cat /sys/devices/platform/gpio-switch/slide/state` # if [ x"$SLIDE_STATE" = "xopen" ]; then # exit 0 # fi /usr/sbin/waitdbus system local result=$(/usr/bin/run-standalone.sh /usr/bin/dbus-send --print-reply=literal --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_open string:'com.nokia.mce' string:'/com/nokia/mce/request' string:'com.nokia.mce.request' string:'devlock_callback' uint32:'3' | awk '{print $2}') if [ x"$result" = "x1" ]; then monitor fi } main