In n900 i use d-bus Code: dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked" But on n9 it does not work. Why? Aegis rule: Code: <aegis> <request policy="add"> <credential name="dsme::DeviceStateControl" /> <credential name="mce::DeviceModeControl" /> <for path="applauncherd-launcher::/usr/bin/applauncherd.bin" /> </request> </aegis> Also it is possible emulation button power pressed?
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"
<aegis> <request policy="add"> <credential name="dsme::DeviceStateControl" /> <credential name="mce::DeviceModeControl" /> <for path="applauncherd-launcher::/usr/bin/applauncherd.bin" /> </request> </aegis>
#!/bin/sh EVENT_POWER_KEY="\x74\x00" POWERBUTTON_EVENT_FILE=/dev/input/pwrbutton EVENT_TIMESTAMP="\x48\x67\x98\x45\x5f\x16\x0b\x00" EVENT_KEY_TYPE="\x01\x00" EVENT_PRESS_VALUE="\x01\x00\x00\x00" EVENT_RELEASE_VALUE="\x00\x00\x00\x00" printf "$EVENT_TIMESTAMP$EVENT_KEY_TYPE$EVENT_POWER_KEY$EVENT_PRESS_VALUE$EVENT_TIMESTAMP$EVENT_KEY_TYPE$EVENT_POWER_KEY$EVENT_RELEASE_VALUE" > $POWERBUTTON_EVENT_FILE