View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#67
Originally Posted by coderus View Post
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_trigger_powerkey_event uint32:0
Thanks. That would have been to easy.
I did not want to ask but find on my own (but was very close to ask as I could not find useful info on the net. Except the hint about qdbus here ).

I already have a script which more or less fades out (instead of immediately blanking). But the following behaves differently when called from desktop icon or via powermenu. That is the reason for same command called twice. Any idea?

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"
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_on
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_dim
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_lpm
sleep 1
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_lpm
sleep 1
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce
.request.req_display_state_off
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature