How to turn the screen on by tapping, shaking or flipping the device?

cska133

Member
Hi,

Would like to shorly turn the screen on without using the power button on my device , but by using gestures like device's tapping, shaking, flipping or other.
Is that possible with MD?
 

Dm114

Well-known member
Hi,

Would like to shorly turn the screen on without using the power button on my device , but by using gestures like device's tapping, shaking, flipping or other.
Is that possible with MD?
Just choose the trigger(s) you want to use and run Screen On action.
 

cska133

Member
Ah ok, silly from me , i was watching the actons and not the triggers.
Ok, i found as triggers flipping, shaking, swiping but no screen tapping, which was my favorite. Did i miss it? Or maybe UI click can do this?

Further, is there a possibility to define how many times the device should be shaked/flipped/swipped before executing the action (screen on)?
 

Dm114

Well-known member
Ah ok, silly from me , i was watching the actons and not the triggers.
Ok, i found as triggers flipping, shaking, swiping but no screen tapping, which was my favorite. Did i miss it? Or maybe UI click can do this?

Further, is there a possibility to define how many times the device should be shaked/flipped/swipped before executing the action (screen on)?
No unfortunately I'm afraid it won't be possible to trigger screen tapping.

For the other triggers you can count the number of events (trigger firing) occuring in the delay you set programmatically, e.g. 2 flips in less than 2 seconds.
 

cska133

Member
For the other triggers you can count the number of events (trigger firing) occuring in the delay you set programmatically, e.g. 2 flips in less than 2 seconds.
How do you mean that? Flip-wait 1sec-flip or what? Could you explain please
 
Last edited:

Dm114

Well-known member
How do you mean that? Flip-wait 1sec-flip or what? Could you explain pkease
Use the fact that macros run in parallel. It means that while a macro is running and one of its triggers fire again, a 2nd occurrence of this macro will run.

Knowing that, you can do the following:
A¹: number+1
A²: If number>N Then
A³: Screen On
A⁴: End If
A⁵: Wait D seconds
A⁶: number=0

Where:
• number is the number of events (e.g. flips) currently registered
• N is the minimum number of events required minus 1, i.e. N=1 for 2 events, N=2 for 3 events...
• D is the maximum delay to register N+1 events

If you have nothing else to do than just set screen on you can:
• Delete A² and A⁴
• Add the following constraint to A³: number>N
 
Last edited:

cska133

Member
Oh, thank you, but would you please create the macro and make screenshot of it? I am afraid i dont have the knowledge how to do what you wrote. Please!
And yes, i just want to set screen on by flipping my device 2 times. Thank you
 

Dm114

Well-known member
Oh, thank you, but would you please create the macro and make screenshot of it? I am afraid i dont have the knowledge how to do what you wrote. Please!
And yes, i just want to set screen on by flipping my device 2 times. Thank you
To be able to write your own macros, I think you should have a look to MD Wiki but you'll find attached the macro I described in my previous posts.

The problem is that Flip triggers generally don't work when screen is Off, unless you modify this MD setting but it will drain battery.

You could use Long press Home button or Volume buttons instead.
 

Attachments

  • IMG-20240327-WA0030.jpg
    IMG-20240327-WA0030.jpg
    79.4 KB · Views: 8

dhj49er

Well-known member
Hi,

Would like to shorly turn the screen on without using the power button on my device , but by using gestures like device's tapping, shaking, flipping or other.
Is that possible with MD?
Double tapping to turn n the screen may be available on your phone, depending on Android version and phone OS.

Its worth checking....and if available is just a simple toggle in system settings.
 

Dm114

Well-known member
Double tapping to turn n the screen may be available on your phone, depending on Android version and phone OS.

Its worth checking....and if available is just a simple toggle in system settings.
You're right but I think it also depends on the brand: I can activate mine by triple-tapping (it's hidden somewhere in the device settings).
 

cska133

Member
Double tapping to turn n the screen may be available on your phone, depending on Android version and phone OS.
Of course i have checked this and unfortunatly it is not available.

The problem is that Flip triggers generally don't work when screen is Off, unless you modify this MD setting but it will drain battery.
Oh, why not? :-/ Battery drain is not a option.
Will Shaking, swiping or waving turn the screen on?
 

dhj49er

Well-known member
Of course i have checked this and unfortunatly it is not available.


Oh, why not? :-/ Battery drain is not a option.
Will Shaking, swiping or waving turn the screen on?
Why don't you try?
Create a macro that triggers on flip or shake with an action screen on.
By now you should be able to create this macro....use the Wiki if any issues arise.
Once created, test the macro
Turn off the screen, wait and then flip or shake the phone.
Does your screen turn on?
 

cska133

Member
Why don't you try?
Create a macro that triggers on flip or shake with an action screen on.
By now you should be able to create this macro....use the Wiki if any issues arise.
Once created, test the macro
Turn off the screen, wait and then flip or shake the phone.
Does your screen turn on?
sure i will do this, by now i dont have opportunity for this.
The problem is that Flip triggers generally don't work when screen is Off, unless you modify this MD setting but it will drain battery.
my question was why this should not work
 

Winny57

Member
Good morning

The functionality of the flipcover is linked to a magnetic flipcover on the cover, if you want to turn on the screen when opening the cover, you must use the light sensor as a solution.

I am attaching a macro.
 

Attachments

  • Ecran_on_flippecover.macro
    1.1 KB · Views: 3

cska133

Member
@Winny57
Yes, this would be nice solution. I will have to try it but dont have MD installed here right now. Could you just post a screenshot of the macro too, so that i can look on it. Thanks
 

Winny57

Member
@Winny57
Yes, this would be nice solution. I will have to try it but dont have MD installed here right now. Could you just post a screenshot of the macro too, so that i can look on it. Thanks
I gave the macro above
 

Attachments

  • Screenshot_20240402-174843.png
    Screenshot_20240402-174843.png
    123.4 KB · Views: 8
Top