Reply
Thread Tools
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#1
i was in search of this for very long and finally i have it
if you are a text freak as i am a , then you might be facing it annoying to lock and unlock the screen by using the lock keys :P
now here is a solution but it is just to lock the screen as scripts only run on the screen not on the hardware :P


Open leafpad from xterm using
Code:

Code:
leafpad
Create a .desktop file that looks like this:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Lock
Exec=dbus-send --system --type=method_call
--dest=com.nokia.mce /com/nokia/mce/request
com.nokia.mce.request.req_tklock_mode_change string:"locked"
Icon=general_locked
Once that is done click on the top bar, and go to "Save As" - name the file "lock.desktop" and where it asks for location (currently says "/") change that to your device (click on the "/" button then click on your device name on the next pop-up - this will be the root of MyDocs folder in your device)

Open a new terminal window and become root

Code:
root
mv /home/user/MyDocs/lock.desktop /usr/share/applications/hildon/
Next open the settings on your desktop and "Add Shortcut" - add the shortcut called "Lock" and press it for fullscreen lockery shenanigans. Enjoy.




a BIG BIG BIG thanks to "nicolai" for the script and "Switch" to help me out

Last edited by eefo; 2011-03-03 at 08:21.
 

The Following 5 Users Say Thank You to eefo For This Useful Post:
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#2
p.s i am not a coder or else , i am a newbie and i think there are some mistakes in it .
but fingers crossed :$

if you do face something fishy , let me know :$
 
Posts: 235 | Thanked: 86 times | Joined on Dec 2010
#3
I think what's better is a python script that listen to proximityd dbus, and toggle the screen lock with proximity sensor

I've made one myself that behave similar to this (proximity close to lock the screen, and vice versa) so I can have the phone locked automatically when I close my flip case, but unfortunately for some reason a leather flip case covering a proximity sensor is not detected by proximityd (while my thumb works pretty well)
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#4
well actually i dont use the slider much , i use the on screen keyboard that's why it is really helpful for me .
 
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#5
This might be my sleep deprivation induced dementia talking, but I don't really understand this. I mean how does locking the screen from a desktop shortcut benefit text freaks? And what is a text freak? I have possibly narrowed it down to people who like to read and people who like to send text messages, but I'm not sure.
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 

The Following User Says Thank You to mece For This Useful Post:
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#6
lol
yeah i love to send text messages
around 6000 a month :P
well the desktop shortcut is the quickest way to lock the screen :P
like you have done sending your text just close the window and tab the screen to lock
 

The Following User Says Thank You to eefo For This Useful Post:
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#7
Originally Posted by eefo View Post
lol
yeah i love to send text messages
around 6000 a month :P
well the desktop shortcut is the quickest way to lock the screen :P
like you have done sending your text just close the window and tab the screen to lock
ah ok, yes I guess that makes sense. I usually doubletap the power button myself. Unlocking it is a lot of work though.
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#8
yeah , i wish scripts do work on hardware -lmao-
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#9
as in everytime you receive an sms the screen it self gets unlock :P
 
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#10
Originally Posted by figaro View Post
I think what's better is a python script that listen to proximityd dbus, and toggle the screen lock with proximity sensor

I've made one myself that behave similar to this (proximity close to lock the screen, and vice versa) so I can have the phone locked automatically when I close my flip case, but unfortunately for some reason a leather flip case covering a proximity sensor is not detected by proximityd (while my thumb works pretty well)
This is most likely due to magnetic interference from the flip case itself - the proxy sensor has known issues when in proximity ( ) to magnetic interference. Remove the magnet from the flip case and try agin - should work without issue.
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 

The Following 3 Users Say Thank You to Switch_ For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:46.