Notices


Reply
Thread Tools
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#11
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
 

The Following 10 Users Say Thank You to MohammadAG For This Useful Post:
Posts: 116 | Thanked: 147 times | Joined on Jan 2010
#12
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.
 
Posts: 69 | Thanked: 8 times | Joined on Feb 2010
#13
thnx guys... btw sorry for being rude. my bad.
 

The Following User Says Thank You to Ali_rshojakhani For This Useful Post:
Posts: 69 | Thanked: 8 times | Joined on Feb 2010
#14
Originally Posted by MohammadAG View Post
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?
 
Posts: 20 | Thanked: 2 times | Joined on Feb 2010 @ UK, Birmingham
#15
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.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#16
Package powerlock in extras-devel (and my repository) implements lock and unlock on single power key press.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following 5 Users Say Thank You to Matan For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#17
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
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 116 | Thanked: 147 times | Joined on Jan 2010
#18
Originally Posted by Matan View Post
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.
 

The Following User Says Thank You to Grant For This Useful Post:
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#19
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.
 

The Following 2 Users Say Thank You to ToJa92 For This Useful Post:
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#20
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.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 
Reply

Tags
mce.ini, powerkey

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:44.