Active Topics

 


Reply
Thread Tools
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#1
Hello,

can I start the security-mode (screenshot) by
dbus, c-code or Qt-code?

the command:

dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"

...used by powerlock and call-locker only turn the display off
and do not start the security-mode like started by menu.

regards
schasch
Attached Images
 
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#2
Are you running as root when you issue that command? Just wondering if that makes any difference.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#3
http://wiki.maemo.org/User:Jebba/DBU...28with_code.29

dbus-send --print-reply --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'
 

The Following 3 Users Say Thank You to nicolai For This Useful Post:
Posts: 433 | Thanked: 274 times | Joined on Jan 2010
#4
note that there is "phone-control" in the repos which simplifies this kind of stuff. once installed, phone-control --lock from the command line would do the trick. much easier than remembering the dbus equivalent.
__________________
n900: "with power comes responsibility".

If you buy a niche, highly modifiable smartphone and proceed to mess it up by blindly screwing around, don't just blame the phone, also blame yourelf.
 

The Following User Says Thank You to Pigro For This Useful Post:
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#5
lardman: yes as root it doesn't work

nicolai:thanks! great!

Pigro : this works too. I'll have a look to that script(phone-control)

regards
schasch
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#6
Here's the link to the phone-control wiki page (if you haven't found it by now):
http://wiki.maemo.org/Phone_control
 

The Following User Says Thank You to Saturn For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:48.