View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#19
Originally Posted by phedders View Post
Do you know what dbus runes to use to see if the screen is currently locked?
The aptly named get_tklock_mode method call will tell you.

Nokia-N900:~# dbus-send --system --print-reply --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_tklock_mode

method return sender=:1.8 -> dest=:1.199 reply_serial=2
string "unlocked"