How to connect Pi and tv so they turn on/off together
-
I have a raspberry pi 4 with retro pie and was wondering if there is any way to connect the pi and tv controls to each other, so when I flip the power switch on the pi, the tv will also turn on
-
@Mikeymac02 Which power switch are you referring to on the Pi? Can you please provide more details about your setup?
-
If your TV supports HDMI CEC it should be doing that automatically, it will not turn off though (at least it doesn't do it for me). Can you provide more information on your system as explained in https://retropie.org.uk/forum/topic/3/read-this-first ?
-
My model pi is a Raspberry Pi 4, from what I’ve experienced, it doesn’t turn the tv on... Here’s the specs of the tv: https://imgur.com/gallery/uaeZ17J
I’m looking to see if there’s a setting in retro pie or rasp-confit that will let me do this
-
They do make power strips that have this functionality (I've used this one but US Amazon doesn't seem to have it in stock). When you power down whatever is plugged into the master it cuts power to the other outlets. You might need to power on the TV though and it might confuse the PI which likes to have a place to send signal when using HDMI.
-
@Mikeymac02 As GeekOB mentioned CEC... either your TV support CEC, or it doesn't. And at least on those TVs I know to work with the Backchannel, it ain't turning on the TV and neither switching it off. All that is working on my TV(s) which support CEC is, that once the TV is turned on and I switch the Raspi on, the TV is switching itself to display the Sourceport the Raspi is connected to. Thats all, and switching off the Raspi does not switch of the TV [1]. ... CEC is (for me) most usefull in KODI/OSMC/LibreELEC/Whatsoever MediaCenters, where I can use the TV-RC to control the MC.
According to the kodi wiki "turning off" (stand by) should be possible, but turning on isn't mentioned (unless I've missed that feature whence reading the article).
P.S.: And switching on, would/could(?) led to unwanted results, as (AFAIK) the Raspi depends on an active HDMI connection to get the information from the display for screensize/frequency available and if it does not get 'em resorts to analog output instead (aka "HDMI display has to be on, before the raspi is powered up"/unless you configured a fixed output within the bootconfig).
P.P.S.: As simpleethat hinted, you could use a master/slave power-strip... but if my postscript assumption is correct, it should be the TV that is acting as master - and then, if it ain't a dedicated display for the raspi, that is more or less making your TV unusable/unpracticable for regular use :/
Edit:
(1): But maybe that is because the Shutdown of the Raspi is not sending a "switch off" via HDMI-CEC... and the vice versa of a TV(-RC) shutdown is sending the signal to the raspi, but without any recieving part/script thats pointless... -
@Ashpool A master/slave power strip probably won’t work with a Raspberry Pi as master. Those strips work by sensing power draw on the master port, and if it drops below a certain level, it shuts everything else off. The Raspberry Pi draws about 10W under normal usage, which is below the threshold of most power strips, thus the other devices would never turn on. Even the Tripp Lite surge protector @simpleethat suggested wouldn’t work because it requires a 15W minimum power draw.
It might work using the TV as the master and then plugging the Raspberry Pi into one of the slave ports. That would turn on the Pi whenever the TV is turned on, which might be in line with what @Mikeymac02 wants. The problem, though, is that the Pi would do a hard shutdown whenever the TV is turned off. The OP could build a UPS battery backup unit for the Pi, as I did, which would alleviate that problem.
Edit: @Mikeymac02 per the Panasonic manual, that TV uses something called VIERA Link, which is based on the CEC standard. HDMI-CEC compatibility is not guaranteed. You might try reading that section of your manual to see if there’s a setting you can change to make everything work.
-
@Mikeymac02 All I did in my cabinet was run the power coming in through a toggle switch first then to a outlet inside the cabinet. Then I just plugged in a good surge protector to my switched outlet to power everything. To turn on just flip the toggle switch and it boots up. To turn off, properly shutdown retropie from the menu then flip the toggle switch to kill everything else.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.