From 211da755ebf2c3eaa8e6774a13189eb116e89b13 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 6 Sep 2020 16:00:49 -0400 Subject: [PATCH] Add hdmi on/off at boot to ensure state is kept on reboots --- docs/scheduled_display.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/scheduled_display.md b/docs/scheduled_display.md index 4b33818..8f17528 100644 --- a/docs/scheduled_display.md +++ b/docs/scheduled_display.md @@ -5,6 +5,27 @@ The below comamnds will setup automatic on/off of the monitor connected to the H The below is setup to turn the display on at ```0600``` and off at ```0000```. Please adjust accordingly. ``` sh +DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "hdmi") | .browser_download_url') +wget $DL_URL -O /usr/local/bin/pf-hdmi +chmod a+x /usr/local/bin/pf-hdmi +cat > /etc/systemd/system/hdmi-on-off.service < /etc/systemd/system/screen-on.timer <