Reflect-OS / firmware

Firmware for ReflectOS - the approachable, configurable, and extensible OS for Raspberry Pi-based smart mirrors and displays. Built using Elixir, Nerves, the Scenic Framework, and Phoenix.
https://reflect-os.github.io
31 stars 1 forks source link

Feature Request: Display/Monitor sleep timer #11

Open kombuking opened 1 week ago

kombuking commented 1 week ago

Addition of a sleep timer for the display in the Settings menu.

Sleep options would consist of following fields to be specified by the user:

If Sleep mode is "On":

dtraft commented 3 days ago

I love this idea, and it's something I've been experimenting with.

The screen can pretty easily be controlled from Elixir with the following code:

# Turn off the screen
System.cmd("vcgencmd", ["display_power", "0"])

# Turn on the screen
System.cmd("vcgencmd", ["display_power", "1"])

These commands could be run on a configurable schedule managed by a GenServer.