Grav sensor orientation trigger

Elliott Wright

New member
There should be a way for Macrodroid to detect device orientation/ grav sensor input. I was shocked to discover that I could not make a trigger that detects when the phone is upside down (i.e., in my pocket) or right side up (i.e., in hand)
 

Elliott Wright

New member
Like I was shocked that people can't read 😉

You misunderstood my question. Macrodroid is currently able to detect face down and face up but I'm not referring to laying face down or face up as on a table. I'm referring to being able to detect when the phone is held upright in your hand or upside down in your hand. Currently I use a program called Gravity Screen to automatically turn the screen off when I put the phone in my pocket (upside down) and turn the screen back on when I remove it from my pocket (right side up). I wanted to make a micro to do this. I consider this functionality essential because it preserves the most breakable part (the buttons). Tasker orientation detection options include: face up, face down, standing up, upside down, left side, and right side.
 
Last edited:

Snurre

Well-known member
Ok, sorry for the misunderstanding🤗
I think the nearest you could come is proximity sensor when in pocket
I don't know Gravity Screen but I've read there's a Plug-in you might use or there might be a possibility with Intents
Maybe a Tasker Plug-in 🤔
 

riothamus

New member
I would also be interested in this. Gravity Screen is no longer working with my new S22 so I'm searching for different options. Since I already use Macrodroid, I'd prefer to stick to it if possible. I haven't used tasker and would prefer not to add another modification app to my phone. Too bad Macrodroid doesn't seem to have the ability for me to do this...
 

FrameXX

Well-known member
Well, technically MacroDroid also has these capabilities. It has the Device Facing constraint which recognizes exactly what you need. Since this is a constraint you will need to use 1 second interval as a trigger and then just check if constraint has changed. Here's what I made up.

Test.png

I am sorry for the non-english parts of macro. MacroDroid is still suffering from the language bug.

The only problems I can see with this is a battery consumption, but it's very possible that there won't be any extra higher battery consumption. I didn't try long enough, and also because of the up to 1 second delay the triggering can sometime feel a little bit slower, but mostly it's ok.
 
Top