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.

Addison 2011-03-03 09:33

Re: A very useful button if you are a text freak :P
 
Wow eefo.

You text more than a female. *lol*

Anyway, I'm at about 8,000 a month. :)

Any chance you could figure out something similar to this for us old Diablo users?

figaro 2011-03-03 09:37

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

Originally Posted by Switch_ (Post 959520)
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.

ouch..I only wish that my device can get locked automatically when I close the flip case, and unlock it when opened. but I don't want to rip my case to remove the magnet either :p

okay, guess I'll have to think other workaround for easy access to the phone :)

thanks a lot btw for the info

eefo 2011-03-03 09:59

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

Originally Posted by Addison (Post 959536)
Wow eefo.

You text more than a female. *lol*

Anyway, I'm at about 8,000 a month. :)

Any chance you could figure out something similar to this for us old Diablo users?

lmao :D
actually i have no other option :p
it's in my package :D
and you should ask swtich or any other developer as i did :p
swtich helped me for this .

Addison 2011-03-03 10:01

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

Thanks!

Switch? Any comments on this request? :)

droitwichgas 2011-03-03 10:28

Re: A very useful button if you are a text freak :P
 
I can't understand the real benefit of this script as after hitting "send" you then still have to close, or mimimise, the conversations app then hit the "close" button, why not just hit the power button twice as we can witohut the script?

I suppose the script is useful for just closing the device when you have finished browsing etc as then it is only one press of a desktop icon.

eefo 2011-03-03 10:42

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

Originally Posted by droitwichgas (Post 959562)
I can't understand the real benefit of this script as after hitting "send" you then still have to close, or mimimise, the conversations app then hit the "close" button, why not just hit the power button twice as we can witohut the script?

I suppose the script is useful for just closing the device when you have finished browsing etc as then it is only one press of a desktop icon.

well yeah thanks for the new info :p
well i feel this way convenient for me so just posted it for others but yeah really liked that double hit on the power button thingy .

ThomasAH 2011-03-03 11:19

Re: A very useful button if you are a text freak :P
 
Sorry but I don't understand. Do you guys not have the hardware lock/unlock switch located at the right-hand side of the device (next to the headphone jack)?

eefo 2011-03-03 11:26

Re: A very useful button if you are a text freak :P
 
lmao :D
@ thomas i do have , but as i have written , lock and unlock again and again 4 times a minute is really annoying for me .

ossipena 2011-03-03 11:29

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

Originally Posted by eefo (Post 959519)
as in everytime you receive an sms the screen it self gets unlock :P

this should be pretty easy with any language? if the unlock - dbus-command functions the same way, you only need a simple python daemon...

e: but concerning usability and unlocking device while in pocket etc, ....

eefo 2011-03-03 11:30

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

Originally Posted by ossipena (Post 959586)
this should be pretty easy with any language? if the unlock - dbus-command functions the same way, you only need a simple python daemon...

e: but concerning usability and unlocking device while in pocket etc, ....

well if you can do this , then please go for it :P

ThomasAH 2011-03-03 11:35

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

Originally Posted by eefo (Post 959584)
lmao :D
@ thomas i do have , but as i have written , lock and unlock again and again 4 times a minute is really annoying for me .

Lol, I see ;) Yeah in that context I guess the device is not perfect (then again, I think almost no phone is).

Maybe an option like the iPhone has, where the incoming message is displayed on the locked screen is an additional option that can be handy to you? Then you would immediately know whether you actually want to unlock your device to write a reply or not. Although of course technically I have no idea how you would go about to create such a feature :D

F2thaK 2011-03-03 11:37

Re: A very useful button if you are a text freak :P
 
for ages ive had a shortcut by making a file in

usr/share/applications/hildon/lock.desktop

containing:
Quote:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Lock Screen
Comment=lock_screen
Exec=/usr/bin/dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked
Icon=connectivity_wlan_securitylevel3

ossipena 2011-03-03 11:56

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

Originally Posted by eefo (Post 959587)
well if you can do this , then please go for it :P

I'll see if I manage to scrape up time for it. but in nutshell it would only be a python app that stays in the background and listens sms dbus signal and when it is triggered, sends dbus signal to unlock the device.

figaro 2011-03-03 13:47

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

Originally Posted by ossipena (Post 959603)
I'll see if I manage to scrape up time for it. but in nutshell it would only be a python app that stays in the background and listens sms dbus signal and when it is triggered, sends dbus signal to unlock the device.

actually what's even better is an app that listen to hildon notification, so not only sms, but im and even pidgin (if you install pidgin-libnotify)
I was thinking of making this, but if you'd want to make it, think I'll just wait for you to do it :D

eefo 2011-03-03 20:55

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

Originally Posted by figaro (Post 959657)
actually what's even better is an app that listen to hildon notification, so not only sms, but im and even pidgin (if you install pidgin-libnotify)
I was thinking of making this, but if you'd want to make it, think I'll just wait for you to do it :D

holly cow :P
guyz do let me know if you will come up with the solution :P

geekgirl74 2011-03-03 21:06

Re: A very useful button if you are a text freak :P
 
for me, this one is a better approach:
http://talk.maemo.org/showpost.php?p=899532&postcount=6
it locks the screen on keyboard close and unlocks it, when opening the keyboard...

figaro 2011-03-11 10:24

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

Originally Posted by f2thak (Post 959590)
for ages ive had a shortcut by making a file in

usr/share/applications/hildon/lock.desktop

containing:

Hi, I've been thinking of making similar desktop icon, but for Phone Lock/Secure Device instead
apparently it successfully lock the device, but it will also create a window (I have no idea, XTerm window maybe) and on the screen, there will be a standard numpad for unlocking the phone, BUT with the desktop menu bar intact (should be blank)
I've tried with "NoDisplay=true" but it won't work
Thanks a lot

nicolai 2011-03-11 10:53

Re: A very useful button if you are a text freak :P
 
Add this to your .desktop file:

X-App-Loading-Image=none

Nicolai

inzimam 2011-03-11 10:56

Re: A very useful button if you are a text freak :P
 
why not just juse the switch on the side of the N900? A quick flick and it locked, and you don't even have to close your conversations app.

figaro 2011-03-11 13:02

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

Originally Posted by nicolai (Post 965652)
Add this to your .desktop file:

X-App-Loading-Image=none

Nicolai

Great!!! You're really are the man, thanks a lot. Sorry for being off topics but FYI I'm still waiting for your messageblocker next update :p


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

vBulletin® Version 3.8.8