News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15524
Latest: fighteriris
New This Month: 32
New This Week: 20
New Today: 4
Stats
Total Posts: 127338
Total Topics: 15630
Most Online Today: 86
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 7
Guests: 56
Total: 63

How to Turn a TV on and off from FPP via HDMI

Started by vcuncg, August 24, 2019, 10:40:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vcuncg


I did not see anything about this on the forum, so I figured I would share this in case others might find it useful (sorry if it is a repeat).  I wanted to build a P5 tune-to sign, but did not have the time this year, so I decided to try a fairly inexpensive 32" TV with HDMI CEC control ($99 at Wal-Mart).  Since I do not want the TV on all the time, I needed to turn it on and off either by schedule or with the show.  This may be old-hat to others, but I was glad to find the process and wanted to share:


Step 1: SSH into the FPP and run the following command to get the CEC Utilities
sudo apt-get install cec-utils


Step 2: Run the following commands to turn the TV on or off:
Turn ON type: echo on 0 | cec-client -s -d 1
Turn OFF type: echo standby 0 | cec-client -s -d 1


I now have these in two separate script files that run at the start and end of the show:
Turn-ON.sh
#!/bin/sh
echo on 0 | cec-client -s -d 1


Turn-OFF.sh
#!/bin/sh
echo standby 0 | cec-client -s -d 1


The commands were found at the following site along with a few other notes.
https://timleland.com/raspberry-pi-turn-tv-onoff-cec/


Hope this can help others this year as we hit crunch time!  Good luck to everyone on their shows.


Andrew

Aaron Maue


uzelessknowledge


Support FPP

+- Recent Topics

1 player/2 remote by Poporacer
Today at 08:07:48 PM

K8-PB Network Issue by Kensington Graves
Today at 07:40:50 PM

Failed V1.03 diff receiver boards by bud29
Today at 07:13:38 PM

FPP not releasing control to WLED when idle by Poporacer
Today at 07:08:31 PM

XLights Variant by Poporacer
Today at 06:56:52 PM

FPP Oddness. Remote not remoting, schedule not scheduling??? by Poporacer
Today at 06:27:33 PM

Text inverted by Poporacer
Today at 06:20:05 PM

FPP(RPi4) Network Setup With Falcon F4V3 Controller by jnealand
Today at 05:22:00 PM

FPP Playlist by jnealand
Today at 05:04:02 PM

Hanging/mounting hacks by K-State Fan
Today at 05:00:55 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod