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.

2
  • What do you mean by fuzzing the screen?
    – Firelord
    Commented May 6, 2016 at 23:58
  • @Firelord: I imagine it would be difficult to distract yourself from sleep if the screen was blurred.
    – leewz
    Commented May 11, 2016 at 6:21

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .