Ask / Submit

Disable the "unlock/power" button for unlocking [released]

asked 2013-12-28 15:19:42 +0300

STiAT gravatar image

updated 2015-07-13 12:46:37 +0300

chemist gravatar image

An option to disable the unlock/power button for unlocking would be really nice. I realized by having the phone in my pocket, it seems to often activate due to this button, draining battery a lot.

In the end, the button should only power off the phone when the phone is unlocked, not having any other functionality.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by chemist
close date 2015-07-13 12:45:55.753513


good option! but add something (obviously) that it still should be able to be used when the phone is powered off, to turn it on :-)

AL13N ( 2013-12-28 16:29:12 +0300 )edit

as option ok, but please not as default, unlock with double tap works only after multiple tries for me, always using the power button.

kelvan ( 2013-12-28 22:10:45 +0300 )edit

@kelvan of course, i thought it was obvious and implied?

AL13N ( 2013-12-29 00:19:15 +0300 )edit

@AL13N of course, that would be a good feature to keep the power button actually to turn off the phone ;-). @kelvan that's why I wrote "an option", I am aware that a lot of users are #1 used to the power button, and #2 alot of people having troubles unlocking by tapping (I don't have issues there - no idea why).

STiAT ( 2014-01-16 17:13:30 +0300 )edit

how about disabling the pwrbtn when proximity sensor is closed?!

chemist ( 2014-01-16 17:17:54 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-07-12 06:16:25 +0300

Quawerty gravatar image

You can disable the unlocking using mcetool command-line utility.

To use it, you need to enable developer mode and instal it (pkconf install mce-tools (this may require you to devel-su ...)).

The actual command then is

mcetool --set-display-off-single-powerkey-press-actions=

No error should be output. You can check the settings by running


Your power button shall do nothing from this moment on when your screen is locked and you press it once.

If you ever want to revert to the previous state, the settings would be:

mcetool --set-display-off-single-powerkey-press-actions=unblank
edit flag offensive delete publish link more


Or using Powermenu 2 via GUI.

Alen ( 2015-07-12 11:43:51 +0300 )edit

@AliNa Powermenu 2 looks interesting. I believe there is at least one other way through some patch which adds GUI options for that but I stuck to the most basic OS tools on purpose.

Quawerty ( 2015-07-12 14:10:18 +0300 )edit

Question tools



Asked: 2013-12-28 15:19:42 +0300

Seen: 388 times

Last updated: Jul 12 '15