News:

LATEST RELEASE:  FPP 6.3 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/6.3

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15658
Latest: CharlieOhio
New This Month: 8
New This Week: 2
New Today: 2
Stats
Total Posts: 128426
Total Topics: 15790
Most Online Today: 50
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 5
Guests: 21
Total: 26

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

Unable to update RPi 5.5 to latest version by JonB256
Today at 07:23:16 PM

help getting started, next step? by rayster
Today at 04:24:09 PM

Warning/Error: Network incomplete frames hit 250. by darylc
Today at 04:06:58 PM

F48V4-NS at 40 fps using all 48 pixel output ports? by darylc
Today at 03:59:37 PM

F48v4NS - Pi or No Pi? by joeyblasko
Today at 09:15:33 AM

Huidu Controllers LED matrix by CaptainMurdoch
February 04, 2023, 10:18:47 AM

FPP6.2 universes by darylc
February 03, 2023, 08:48:57 PM

F16v4 Ports vs Universe Configuration Question by k6ccc
February 03, 2023, 09:32:48 AM

Need Expert Advise on F16v4 Ports vs Universe Configuration by Kairus
February 03, 2023, 09:32:33 AM

Set Time/Date by darylc
February 02, 2023, 06:09:40 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod