F21 Pro - Double tap to sleep - Magisk Module

Features:

  • Double tap on launcher to turn screen off
  • Double tap on status bar (anywhere) to turn screen off

DTS-F21_PRO.zip (2.0 KB)

Please report any bugs.

The reason why there is a (slight) delay is because of the below. If anyone has any alternate ideas please let me know.

CURRENT=$(dumpsys window | grep mCurrentFocus)
if echo "$CURRENT" | grep -q com.android.launcher3; then
    input keyevent 223
5 Likes

Just realized I could just keep it to status bar… It would be near instant like any other phone, but I’d feel like it’s missing something.

Can I ask when this comes to use? What’s wrong with the end button doing it?

First of all, it’s nice to have as a feature in general.

@ys770 mentioned it is good when on calls

2 Likes

I guess for when your on speaker, otherwise there’s a sensor that turns off the screen when it senses being near skin.

1 Like

That sensor is broken is there a way to fix it?

That i know but is there any module to incorporate it into the rom?

Boot script. I’ll probably add it to 6.1.3

If I use a different launcher than stock will it work?

Do they change the status bar?

The screen you get when swiping down from the top of the screen?

No, just the bar. Should be fine

I’m saying the launcher part won’t work, right?

Still should

1 Like

@ars18

Is it built in ?

Yes, in “more settings”.

If you updated the remote app from the ROM post.

1 Like

Actually, no.

But you can edit it.