maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   A very useful button if you are a text freak :P (https://talk.maemo.org/showthread.php?t=70602)

eefo 2011-03-03 07:51

A very useful button if you are a text freak :P
 
i was in search of this for very long and finally i have it :p
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 ;)

eefo 2011-03-03 07:59

Re: A very useful button if you are a text freak :P
 
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 :$

figaro 2011-03-03 08:27

Re: A very useful button if you are a text freak :P
 
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 2011-03-03 08:29

Re: A very useful button if you are a text freak :P
 
well actually i dont use the slider much , i use the on screen keyboard that's why it is really helpful for me .

mece 2011-03-03 08:39

Re: A very useful button if you are a text freak :P
 
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.

eefo 2011-03-03 08:42

Re: A very useful button if you are a text freak :P
 
lol
yeah i love to send text messages :D
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 :p

mece 2011-03-03 08:43

Re: A very useful button if you are a text freak :P
 
Quote:

Originally Posted by eefo (Post 959515)
lol
yeah i love to send text messages :D
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 :p

ah ok, yes I guess that makes sense. I usually doubletap the power button myself. Unlocking it is a lot of work though.

eefo 2011-03-03 08:46

Re: A very useful button if you are a text freak :P
 
yeah , i wish scripts do work on hardware -lmao-

eefo 2011-03-03 08:47

Re: A very useful button if you are a text freak :P
 
as in everytime you receive an sms the screen it self gets unlock :P

Switch_ 2011-03-03 08:53

Re: A very useful button if you are a text freak :P
 
Quote:

Originally Posted by figaro (Post 959503)
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 ( :p ) to magnetic interference. Remove the magnet from the flip case and try agin - should work without issue.


All times are GMT. The time now is 17:17.

vBulletin® Version 3.8.8