View Single Post
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#1
Hi!

Here is my question : how to check if the device is locked using dbus. I don't want to trigger an action when the signal "locked" is send, I just want to check the current state using dbus-send.

So the following code locks the device :

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"
Which makes dbus send the following signal :

Code:
signal sender=:1.9 -> dest=(null destination) serial=342 path=/com/nokia/mce/signal; interface=com.nokia.mce.signal; member=tklock_mode_ind
   string "locked"
But I have no idea which method to call to get the status. I would like to run something like :

Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/ string:"com.nokia.mce.signal.tklock_mode_ind"
Any idea ? Thanks
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]