maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   other ways to lock/unlock screen?! (https://talk.maemo.org/showthread.php?t=55645)

Death Scythe 2010-06-09 14:15

Re: other ways to lock/unlock screen?!
 
Quote:

Originally Posted by James_Littler (Post 707190)
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.

hycraig 2010-06-09 14:27

Re: other ways to lock/unlock screen?!
 
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.
http://i48.tinypic.com/6qb877.png

dana.s 2010-06-09 18:19

Re: other ways to lock/unlock screen?!
 
Quote:

Originally Posted by hycraig (Post 707284)
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.
http://i48.tinypic.com/6qb877.png

Sharing it would be nice :)

hycraig 2010-06-10 11:58

Re: other ways to lock/unlock screen?!
 
Quote:

Originally Posted by dana.s (Post 707599)
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
http://i47.tinypic.com/16iy553.png

phedders 2010-06-10 12:26

Re: other ways to lock/unlock screen?!
 
Do you know what dbus runes to use to see if the screen is currently locked?

dana.s 2010-06-10 12:26

Re: other ways to lock/unlock screen?!
 
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?

hycraig 2010-06-10 12:36

Re: other ways to lock/unlock screen?!
 
Quote:

Originally Posted by phedders (Post 708686)
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.

Quote:

Originally Posted by dana.s (Post 708688)
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.

dana.s 2010-06-10 12:39

Re: other ways to lock/unlock screen?!
 
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?

qwerty12 2010-06-10 15:03

Re: other ways to lock/unlock screen?!
 
Quote:

Originally Posted by phedders (Post 708686)
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. :)

Quote:

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 2010-06-10 15:20

Re: other ways to lock/unlock screen?!
 
1 Attachment(s)
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?

Attachment 10871


All times are GMT. The time now is 18:22.

vBulletin® Version 3.8.8