Ask / Submit

Tap to wake / Glance screen?

asked 2017-11-21 20:07:14 +0300

jimjamz gravatar image

Is there a tap-to-wake feature for Sailfish X / Xperia X? Similar to the one featured in Jolla Phone and Nokia Lumia. If so, how do I enable it?

Also, a glance screen that displays crucial info like date and time, new sms and e-mail icons, without enabling the whole screen would be great for battery life.

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2017-11-21 20:42:38 +0300

lakutalo gravatar image

updated 2017-11-21 20:48:29 +0300

Here is your answer for the first question:

For glance screen aka LPM this should be the remedy for your second question:

pkcon install mce-tools
mcetool --set-low-power-mode=enabled

Last but not least, it is considered best practice here to create one post per question. :)

edit flag offensive delete publish link more


thanks for the info. Coming from a Lumia handset, I see both parts of my question as the same feature as the double tap was a subset of Glance (originally Peek), hence the combination in the post.

Just to elaborate further on your answer, and being a newcomer to Sailfish, would the install commands be run from the Terminal app on the phone, or by SSH connection from another device?

jimjamz ( 2017-11-21 23:39:15 +0300 )edit

@jimjamz: If you are connected over ssh, it is exacty as you are writing into terminal. You can do what is easier for you. I normally use ssh, because I can use my normal keybord...

SaimenSays ( 2017-11-22 00:13:33 +0300 )edit

Actually these to functions seem not really compatible with each other on Sailfish X. When the phone is showing the glance screen(when you just move something away from the proximity sensor), the double-tap function cannot work, until the glance screen turns off. That means after I take my phone out from my pocket, I have to wait for the glance screen to be off(or cover the proximity sensor to make it off), then I can touble tap to wake, which seems really a waste of time. So right now I just enabled the double-tap function.

Universebenzene_Jolla ( 2017-11-22 07:56:27 +0300 )edit

@Universebenzene_Jolla - I can't say for Android devices or any other except for the Nokia Lumia, my previous device. That is able to go from screen off to Glance/Peek by, as you say, pulling my phone out of my pocket, hovering my hand over the screen, or, for example, flipping the phone over 180 degrees if it were face-down on a solid surface. Whether Glance/Peek is activated on the screen, I can "wake up" (screen-on from idle) with a double-tap. These actions were part of the same release feature on that device. I would have imagined that is how it would work on other devices too? It seems inconvenient for you to have to wait for the screen to dim/fade/off before you can tap-to-wake.

jimjamz ( 2017-11-22 11:40:55 +0300 )edit

@jimjamz Actually my comment under this answer was wrong. Please read the answer and the comment below.

Universebenzene_Jolla ( 2017-11-22 13:31:40 +0300 )edit

answered 2017-11-22 09:01:22 +0300

spiiroin gravatar image

@Universebenzene_Jolla: The "double tap from lpm" is supported. And it does not need any special hardware/firmware support i.e. it should work in all devices regardless of whether "real" double tap is supported or not. The problem with xperia is that there are issues with the "real" double tap -> double tap wakeups are disabled by default - and this disables also the "fake" ones.

So, if you want to have both the real double tap (with whatever issues it has) and fake ones from "lpm", this should suffice:

mcetool --unblank --block=2 --set-doubletap-wakeup=always # see note1
mcetool --set-low-power-mode=enabled

Or, If you just want to have "lpm" and "double tap from lpm" without activating the troublesome "real doubletap", the following should work. Needs root privileges (due to config file handling & service restart).

First make mce disable the double tap detection done by the touch panel fw

 mcetool --unblank --block=2 --set-doubletap-wakeup=never  # see note1

Then override the double tap control path so that mce no longer can enable it

systemctl stop mce
printf "[DoubleTap]\nControlPath=\n" > /etc/mce/99-mask-doubletap.ini # see note2
systemctl start mce

And finally, enable "lpm" and allow (fake) double tap wakeup processing

mcetool --set-low-power-mode=enabled
mcetool --set-doubletap-wakeup=proximity

Note1: Making changes to fw doubletap controls while display is off can cause issues in xperia - some details at

Note2: This kind of custom setting files stay effective also over os upgrades -> To undo the effects, they need to be removed manually. If you are later unsure whether you have added such files or not, checking if there are files in /etc/mce that are not originating from any rpm packages might help, e.g.

rpm -qf /etc/mce/* | grep owned
file /etc/mce/99-mask-doubletap.ini is not owned by any package
edit flag offensive delete publish link more


Thank you very much for correcting my comment. I read this answer ( and found that also use mcetool -i enabled can enable the double tap from lpm function. BTW, I think maybe the "--unblank" parameter should actually be "--unblank-screen/-U" right?

Universebenzene_Jolla ( 2017-11-22 09:45:21 +0300 )edit

@Universebenzene_Jolla: yeah, it should have been "--unblank-screen" (played by heart and did not notice because long option parser is happy as long as what is given matches just one option).

Regarding "-i, --set-fake-doubletap=<enabled|disabled>": The default is "enabled". So, unless you have already changed the setting, "-i enabled" does nothing.</enabled|disabled>

spiiroin ( 2017-11-22 11:16:09 +0300 )edit

@spiiroin You are right. In the post you mentioned in Note 1, lots of answer did mcetool -i disabled , and I did that as well. Probably that was why I lost the double tap from lpm function.

Universebenzene_Jolla ( 2017-11-22 13:29:10 +0300 )edit

Thank you very much for your comprehensive, well-structured answer. I have edited this comment as originally, I had issues with getting the double-tap to work after following the steps. This was only because I needed to fully conceal/reveal the whole screen for the glance feature to enable, thus allowing me to double-tap to fully wake up the screen. User error! :-) Although, this does lead me to another sub-query of this feature - if the device is in my hand, I disable the screen (via power button) then try to re-enable with a double-tap (without waiting or forcing the glance feature to enable), that does not necessarily work. or should I raise this as a separate question?

jimjamz ( 2017-11-23 15:23:29 +0300 )edit

@jimjamz: On xperia there is a known problem: if you have "proximity" type double tap wakeup setting: 1) obstruct p-sensor -> double tap disable operation 2) blank with power (or any other means) -> touch panel is put sleep instead of dt detection mode 3) uncover p-sensor -> double tap enable operation -> ignored by kernel -> double tap does not work until the display is powered on and off again. One more reason to use "always" type double tap wakeup.

Other than that, there might be other issues too. But it is bit difficult to tell them apart from the general "it does not really work that reliably" elephant in the room.

spiiroin ( 2017-11-24 08:32:37 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2017-11-21 20:07:14 +0300

Seen: 1,250 times

Last updated: Nov 22 '17