We have moved to a new Sailfish OS Forum. Please start new discussions there.
22

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

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

STiAT gravatar image

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

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

Comments

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 +0200 )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 +0200 )edit

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

AL13N ( 2013-12-29 00:19:15 +0200 )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 +0200 )edit
10

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

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

1 Answer

Sort by » oldest newest most voted
4

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

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

mcetool

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

Comments

Or using Powermenu 2 via GUI.

AliN ( 2015-07-12 11:43:51 +0200 )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 +0200 )edit

Question tools

Follow
2 followers

Stats

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

Seen: 478 times

Last updated: Jul 12 '15