Reply
Thread Tools
Posts: 94 | Thanked: 27 times | Joined on Dec 2009
#11
Originally Posted by James_Littler View Post
Or maybe as slender said, shaking the device to unlock would be quite cool.
They had a program that does exactly this that ran on Symbian60 phones. It used the accelerometer and locked/unlocked the phone via gestures.
 
Posts: 117 | Thanked: 47 times | Joined on Apr 2010 @ UK
#12
i dont like to click my power button to much and because i have a skin on its hard to flick the slide switch, so i made a lock button using desktop command execution widget to make locking easier.
 
Posts: 134 | Thanked: 41 times | Joined on Mar 2010
#13
Originally Posted by hycraig View Post
i dont like to click my power button to much and because i have a skin on its hard to flick the slide switch, so i made a lock button using desktop command execution widget to make locking easier.
Sharing it would be nice
 
Posts: 117 | Thanked: 47 times | Joined on Apr 2010 @ UK
#14
Originally Posted by dana.s View Post
Sharing it would be nice
here you go

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

i got it from http://wiki.maemo.org/Desktop_Comman...creen_and_keys

but make sure you change settings so its like below otherwise it will lock everytime you goto homescreen lol
 

The Following 2 Users Say Thank You to hycraig For This Useful Post:
Posts: 155 | Thanked: 61 times | Joined on Nov 2009
#15
Do you know what dbus runes to use to see if the screen is currently locked?
 
Posts: 134 | Thanked: 41 times | Joined on Mar 2010
#16
Thanks hycraig.
I noticed when i click on save on your screen shot it will execute the command and locks the screen but it is fine.
Is there anyway to do this without this Desktop Command Excec widget?
 

The Following User Says Thank You to dana.s For This Useful Post:
Posts: 117 | Thanked: 47 times | Joined on Apr 2010 @ UK
#17
Originally Posted by phedders View Post
Do you know what dbus runes to use to see if the screen is currently locked?
no sorry i don't but im sure someone will know.

Originally Posted by dana.s View Post
Is there anyway to do this without this Desktop Command Excec widget?
i'm not aware of any other way but maybe someone else might know
another method.
 
Posts: 134 | Thanked: 41 times | Joined on Mar 2010
#18
unlock code is there too, all we need is a small app that can listen if phone shake happened;
check if device locked then unlock it
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"unlocked"
if device is unlocked then lock it
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"
of course there should be a "stop listening" period after each lock/unlock.

any developer?
 

The Following User Says Thank You to dana.s For This Useful 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"
 
JonWW's Avatar
Posts: 623 | Thanked: 289 times | Joined on Jan 2010 @ UK
#20
I didn't realsize how useful somethiong like this would be

So I made some shortcuts one for each screen, they work, but show up in the app icon list - don't know how to remove them - does any one else?

lock_device_shortcuts.zip
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:38.