0

For my smart home application using Android Things and Raspberry Pi I want to be able to turn the connected screen off after a certain amount of running idle and turn it back on after touch input or a command from my connected smartphone app (the smartphone app and notification works fine).

After hours of searching the web for a way to do this and not finding anything working for Android Things 1.0.2, I'm now asking here, how can I do this?

Bö macht Blau
  • 12,820
  • 5
  • 40
  • 61

1 Answers1

0

Because of various screens for Android Things Platforms (NB! none of Production Platforms now didn't supports HDMI, only "Development" RPi) the only reliable way is to use GPIO pin to control external power switch of your screen (e.g. relay module like in this project if your screen powered by high voltage (110..220V) or schematics like that:

Power switch

from that project if you screen powered by low voltage (5..36V)). Example for GPIO pin control you can find for example in Official Basics Tutorial.

Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79
  • I thought it would be possible that I just disable HDMI output like in normal linux versions too – Alexander Kutschera Jul 17 '18 at 14:28
  • @AlexanderKutschera From [Platform differences](https://developer.android.com/things/get-started/platform-differences#apis) `Android Things is optimized for embedded devices which may not contain the same feature set as an Android phone or tablet. For example, graphical user interfaces are optional as not all devices include a display`. Also now only [RPi](https://developer.android.com/things/hardware/) has HDMI interface and the screens itself can be non-HDMI (SPI or I2c). So very unlikely Android Things V1.02 has HDMI support with power control. – Andrii Omelchenko Jul 17 '18 at 15:29