1

Phones in bed mean poor sleeping habits.

How would one go about turning the screen off, or fuzzing the screen (probably more practical, less subject to temporary tilt), if the device is tilted in certain ways?

For example,

  • Device is vertically upside down.
  • Device is locked in Portrait mode and horizontal.
  • Screen is facing the center of the Earth.

Answers using apps will be accepted, but, out of interest in the theory, I will also accept answers that outline an app to do such a thing. I know that newer Android versions have screen filters and tilt sensors.

  • What do you mean by fuzzing the screen? – Firelord May 6 '16 at 23:58
  • @Firelord: I imagine it would be difficult to distract yourself from sleep if the screen was blurred. – leewz May 11 '16 at 6:21
3
  • Device is vertically upside down.
  • Device is locked in Portrait mode and horizontal.
  • Screen is facing the center of the Earth.

I suggest you try Automate (user guide) as well as Tasker (free trial; user guide). Both of them offer the features you're seeking. A peek:

(Click an image to enlarge it)

IMG: IMG: IMG:

Before I leave you here to tinker with those options, here is some information to ease the tinkering:

In Automate app:

  • Device Orientation block can be found under Sensors.
  • Device lock can be found under Interface. Practical usage requires setting Automate as device administrator.

Tip: It is easy in Automate to trigger an action on a prerecorded motion gesture

In Tasker app:

  • Orientation trigger can be found under State → Sensor.
  • Display Orientation trigger can be found under State → Display.
  • System Lock action can be found under Display.

Tip: In Tasker you can setup multiple contexts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.