Reply
Thread Tools
Posts: 104 | Thanked: 113 times | Joined on Apr 2012
#1
pllzzzzz... as my power button is gettin very loose...
 
Posts: 2,290 | Thanked: 4,134 times | Joined on Apr 2010 @ UK
#2
What device?
If N900...
It's possible to make the camera button work while locked (info is on this forum), then maybe setup the camera focus to call a dbus command?
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#3
Sliding the camera shutter open unlocks the device, even circumventing the lockscreen.
With flashlight installed, you could choose between camera, flashlight or, by tapping in the blurred area, desktop.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#4
Follow this guide, replace "long press" command with
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"
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Posts: 648 | Thanked: 650 times | Joined on Oct 2011
#5
If it is N9 you can install "lockscreen", a software button to lock your screen.
 
Posts: 104 | Thanked: 113 times | Joined on Apr 2012
#6
i actually dont want to unlock phone, just want to reach the lockscreen!! love sliding the bar to unlock. the camera cover unlocks the phone!
is there any way to reach lockscreen with volume keybor camera key?
 
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#7
this script from nicolai simulates a power button press. You can assign it to camera button using shortcutd

you will need root so this syntax may prove useful

Code:
sh -c 'echo " your command here " | sudo gainroot'
or


Code:
sh -c 'cat myscript.sh | sudo gainroot'
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob

Last edited by qwazix; 2012-07-30 at 13:18.
 

The Following 3 Users Say Thank You to qwazix For This Useful Post:
Posts: 104 | Thanked: 113 times | Joined on Apr 2012
#8
umm.. many thanks!! but i am a complete beginner, so a little easy method wil be of a great help .. thanks neways
 
Posts: 2,290 | Thanked: 4,134 times | Joined on Apr 2010 @ UK
#9
beginners version of qwazix method...

Open leafpad, copy "script" to new document.
Save somewhere i.e

Code:
/home/user/.myscripts/camlockscreen.sh
Then make cam button in shortcutd use the following custom command.

Code:
sh -c 'echo "/home/user/.myscripts/camlockscreen.sh" | sudo gainroot'
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 104 | Thanked: 113 times | Joined on Apr 2012
#10
hey guys thanks!! i actually did was applying the long press with unlocking dbus command using shortcutd. now i want to use it like in android -- one click lock, another click unlock..

here is what i did:---

1. dbus-scripts.d
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:47.