maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   iphone / htc like power button one click = screen lock (https://talk.maemo.org/showthread.php?t=44971)

Ali_rshojakhani 2010-02-18 11:53

iphone / htc like power button one click = screen lock
 
is there a way to tweak the power button in such a way that with one click u lock the screen and once more to unlock it?? instead of twice to lock and then once + swipe? [ like the way using the slider unlock on the right side of the phone does except jut using the power button ]

maybe double click for power button menu and hold for switching off?
btw shortcutd and tweakr dont do the job so dont bother asking to chec those out... tnx :D

Andre Klapper 2010-02-18 11:58

Re: iphone / htc like power button one click = screen lock
 
You use the wroing button, the one on the right side is one click == screen lock. Or just turn the device by 90 degrees, that should do it too. ;-)

Ali_rshojakhani 2010-02-18 12:05

Re: iphone / htc like power button one click = screen lock
 
yes i know... but its hard using the slider while holding the phone with only one hand in portrait mode... thats y i said i want to tweak it in a way that i have the same behaviour as the slide locker ( side of phone ) on the power button. one click = lock one more click = unlock (no swipe screen)

slender 2010-02-18 12:33

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Ali_rshojakhani (Post 534117)
is there a way to tweak the power button in such a way that with one click u lock the screen and once more to unlock it?? instead of twice to lock and then once + swipe? [ like the way using the slider unlock on the right side of the phone does except jut using the power button ]

maybe double click for power button menu and hold for switching off?
btw shortcutd and tweakr dont do the job so dont bother asking to chec those out... tnx :D

Why don't you use switch from headphone plug's end?

slender 2010-02-18 12:35

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Ali_rshojakhani (Post 534136)
yes i know... but its hard using the slider while holding the phone with only one hand in portrait mode... thats y i said i want to tweak it in a way that i have the same behaviour as the slide locker ( side of phone ) on the power button. one click = lock one more click = unlock (no swipe screen)

Using phone overall with one hand sucks so much that I do not know what this little tweak there would help :P For phone usage it would make difference but overall...geee :)

lardman 2010-02-18 13:53

Re: iphone / htc like power button one click = screen lock
 
Actually if you could double press the button on the top (on the side when you're holding it) to lock the phone that would be useful.

nilsbenson 2010-02-19 20:00

Re: iphone / htc like power button one click = screen lock
 
Double-pressing the power button does lock the phone..

m165 2010-02-19 20:15

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Andre Klapper (Post 534121)
You use the wroing button, the one on the right side is one click == screen lock. Or just turn the device by 90 degrees, that should do it too. ;-)

Wow, theres me thinking it was something to do with getting the back cover off! For the past 3 days I've been pressing the power button, clicking lock, then to unlock press power button and swipe! This is soo much easier.

Ali_rshojakhani 2010-02-19 20:22

Re: iphone / htc like power button one click = screen lock
 
"Double-pressing the power button does lock the phone.."

then y would i want to tweak it?!?! i want it to lock AND unlock it pressing it once each time!!! and not using the slider on the headphone side, or doin the swipe thing! JUST SIMPLY ONE POWER BUTTON CLICK = LOCK, ONE MORE POWER BUTTON = UNLOCK... EXACTLY LIKE USING THE HEADPHONE SIDE SLIDER DOES EXCEP USING THE POWER BUTTON INSTEAD! [ like on htc ]

mcdull 2010-02-19 21:07

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Ali_rshojakhani (Post 537229)
"Double-pressing the power button does lock the phone.."

then y would i want to tweak it?!?! i want it to lock AND unlock it pressing it once each time!!! and not using the slider on the headphone side, or doin the swipe thing! JUST SIMPLY ONE POWER BUTTON CLICK = LOCK, ONE MORE POWER BUTTON = UNLOCK... EXACTLY LIKE USING THE HEADPHONE SIDE SLIDER DOES EXCEP USING THE POWER BUTTON INSTEAD! [ like on htc ]

I guess we all understand your questions, but most of us don't have an issue to do one more swipe to unlock or press the button one more time to lock.
Yelling at us while asking for help won't solve the problem

MohammadAG 2010-02-19 21:19

Re: iphone / htc like power button one click = screen lock
 
Download and install rootsh from extras.
Open terminal and type root
Then type vi /etc/mce/mce.ini
Scroll down to this line:
PowerKeyShortAction=menu
Press I to enter input mode, remove menu and type tklock so that it's:
PowerKeyShortAction=tklock
Press CTRL+C to exit input mode
Type :w to save the file then press
Press CTRL+Z to exit
Type stop mce then start mce

Remember to remap the menu to something else (double click/long click w/e)

P.S. don't use caps, if someone has an answer they'll post it

Grant 2010-02-19 21:22

Re: iphone / htc like power button one click = screen lock
 
Check out this thread on how to create a desktop shortcut that locks your screen. I have one on the bottom right corner of each of the 4 desktops, so locking the screen is always just a tap away.

Ali_rshojakhani 2010-02-19 21:25

Re: iphone / htc like power button one click = screen lock
 
thnx guys... btw sorry for being rude. my bad.

Ali_rshojakhani 2010-02-19 22:01

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by MohammadAG (Post 537357)
Download and install rootsh from extras.
Open terminal and type root
Then type vi /etc/mce/mce.ini
Scroll down to this line:
PowerKeyShortAction=menu
Press I to enter input mode, remove menu and type tklock so that it's:
PowerKeyShortAction=tklock
Press CTRL+C to exit input mode
Type :w to save the file then press
Press CTRL+Z to exit
Type stop mce then start mce

Remember to remap the menu to something else (double click/long click w/e)

P.S. don't use caps, if someone has an answer they'll post it


thank u so much...
for unlocking is there a way to skip the swipe screen?

Crude 2010-02-20 06:07

Re: iphone / htc like power button one click = screen lock
 
Ali_rshojakhani, it would be quite a hassle if you tweaked the power button because a single press on it actually brings up a menu with a number of options such as: Silent, Secure Device and a very important option End Task (Which is useful if an app hangs).

If you modify it than how would you bring down this menu? Also a single click can be pressed in your pocket by mistake and if there is no slide to unlock then random presses on the screen can be a problem and trust me, the resistive touch screen does allow for random changes in your pocket if unlocked (happened to me).

I believe the more you use it the more you'll realise that there's no need for the change. Anyhow there are two apps in the D-level repo: Tweakr and Shortcutd that you might be interested in. These give you access to a number of settings not available.

Try them, I'm sure you'll like them. They work great.

Matan 2010-02-20 12:28

Re: iphone / htc like power button one click = screen lock
 
Package powerlock in extras-devel (and my repository) implements lock and unlock on single power key press.

HtheB 2010-02-20 13:58

Re: iphone / htc like power button one click = screen lock
 
There is an app on the repositories called tweakr...

You can change the power button actions with this on the phone settings :)

GIve it a try :)

Grant 2010-02-20 16:24

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Matan (Post 538336)
Package powerlock in extras-devel (and my repository) implements lock and unlock on single power key press.

Added powerlock from your repository, very nice! Thanks for that. After installation, I used tweakr to set a single power key short press to "do nothing" which made the locking go a little faster since the menu doesn't pop down briefly. But, changing power key double press to "show menu" doesn't work since your app registers the first press and locks the screen. With powerlock installed, is there no other way to access the power key menu than by keeping the default power key menu settings, which gives you a 2 second window to select an option from the menu before it locks? I only use that menu to quickly enable silent mode, so its no big deal to me, but was wondering if you will be improving upon your nice app.

ToJa92 2010-02-20 16:36

Re: iphone / htc like power button one click = screen lock
 
Or how about this, switch the function of the lock-switch with the powerbutton? So pressing the power button have the desired effect and you can still turn off the device easily. And access the menu.

Matan 2010-02-20 17:16

Re: iphone / htc like power button one click = screen lock
 
Switching keys can be easily done in kernel space, but not in user space, since mce is closed. You can ask Nokia for those options, but my guess is that such request will be ignored.

Matan 2010-02-20 17:21

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by Grant (Post 538614)
Added powerlock from your repository, very nice! Thanks for that. After installation, I used tweakr to set a single power key short press to "do nothing" which made the locking go a little faster since the menu doesn't pop down briefly. But, changing power key double press to "show menu" doesn't work since your app registers the first press and locks the screen. With powerlock installed, is there no other way to access the power key menu than by keeping the default power key menu settings, which gives you a 2 second window to select an option from the menu before it locks? I only use that menu to quickly enable silent mode, so its no big deal to me, but was wondering if you will be improving upon your nice app.

If you only need silent mode, you can use my package longpress, which allows switching silent/normal profiles with a long press of the lock key.

I changed powerlock to not lock on a quick double press of the lock key, so it should work in your scenario of mce opening menu on double press.

HRZ 2010-04-09 11:01

Re: iphone / htc like power button one click = screen lock
 
this is a great app. i hate having to unlock using the slider, sometimes i just want to press the power button.

this may sound a pit picky but is there anyway to speed this process up. i have it setup with tweakr like the previous poster said - double press brings menu, single press locks and unlocks - but it's kind of slow (especially when locking). any way to speed it up somehow?

tissot 2010-04-09 11:07

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by HRZ (Post 602579)
this is a great app. i hate having to unlock using the slider, sometimes i just want to press the power button.

this may sound a pit picky but is there anyway to speed this process up. i have it setup with tweakr like the previous poster said - double press brings menu, single press locks and unlocks - but it's kind of slow (especially when locking). any way to speed it up somehow?

Well you can at least overclock the device to run at 800-900mhz. That helped me alot :D

HRZ 2010-04-09 11:26

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by tissot (Post 602592)
Well you can at least overclock the device to run at 800-900mhz. That helped me alot :D

i havent looked at that thread yet due to:
1. the length of the thread
2. a few posts about problems

dont want to get this thread here OT but in your opinion, nothing has been unstable after? is there a newbie tutorial?

rnb89 2010-07-05 07:11

Re: iphone / htc like power button one click = screen lock
 
Just installed powerlock and am loving the functionality.. I used tweakr to have menu show up on double press which has now given me the best setup..

I just want to make one more tweak.. i know that to unlock pressing the power button unlocks the device and skips the unlock screen.. but i love the unlock screen and would like to keep it.. what file do i need to edit to make that possible?

In short.. I want powerlock to lock on single press of power button. when locked and i press the power button, i want to reach the lock screen.

thanks

ejasmudar 2010-11-09 07:40

Re: iphone / htc like power button one click = screen lock
 
Quote:

Originally Posted by rnb89 (Post 740938)

I just want to make one more tweak.. i know that to unlock pressing the power button unlocks the device and skips the unlock screen.. but i love the unlock screen and would like to keep it.. what file do i need to edit to make that possible?

In short.. I want powerlock to lock on single press of power button. when locked and i press the power button, i want to reach the lock screen.

thanks

I second this request. Also as mentioned earlier, the device waits for a few seconds before locking. Can we reduce this to a minimum?


All times are GMT. The time now is 12:28.

vBulletin® Version 3.8.8