Releasing the TV before shutting down ?

Jul 30, 2024 Last reply: 1 year ago 42 Replies

Hello all,



I've got a RPi 3 which I use to view YouTube stuff on a TV. Although the TV automatically switches to the RPi when the latter is switched on, it doesn't switch back when the RPI is shut down.



Question : is anyone know of a program which will release the TV (so it can switch back to whatever it was displaying before, as it happens with my DVR) ?



Regards, Rudy Wieser



Have a look what commands you can send to the TV using cec-client

I've had a similar problem with the pi4 and an hdmi monitor. The monitor is connected via one of those multi-input automatic switches: it won't switch away when the pi is shut down - the pi4 needs to be powered down too. Have you tried powering down your pi? - does it switch then?

Mike,

Thats the name I forgot, HDMI. The RPi 3 is connected to the TV using HDMI.

Yep, nope (I just repeated the test to be sure I did). The TV just keeps showing a "no signal" message.

Regards, Rudy Wieser

Andy,

A "cec-client" you say ? I'll have to look for it.

Regards, Rudy Wieser

Then there is nothing you can do about the pi, it's turned off. So you must check if there is a setting on your HDMI switch to make him switch back when there is no signal on input x. If you don't have a setting for this behaviour you need a different switch.

-jw-

Joerg,

:-) There is a moment before its shut down and powered off that its still running. That would be a splendid moment to have the RPi tell the TV that it should switch its inputs away from the RPi, don't you think ?

What switch ? You mean the one thats part of the TV ? That one doesn't have a settings panel I'm afraid.

Regards, Rudy Wieser

why not use the remote to switch it over?

Chris,

What do you think I've been doing all this time ? Buying a new TV every time so I could go back to watching to whats on cable ? Thats a bit expensive. :-)

Regards, Rudy Wieser

It might be worth trying "vcgencmd display_power 0" at that point, which I think effectively stops the HDMI output, just in case the TV happens to treat that differently. I sometimes use that with a monitor to do something similar. (You could try that out without turning off the Pi of course, and it's "vcgencmd display_power 1" to get the picture back.)

-Rus.

Russel,

...

:-) And how would I be able to see what I was typing, with HDMI having been switched off ?

Yes, I also thought of such a solution. But :

1) It looks like that shutting- and powering-down the RPi should be "rather effective" in stopping the HDMI output. And when I do I get a "no signal" message on my TV, confirming it. 2) looking at a black screen while trying to figure out if the RPi really did shut down isn't really a situation I want to find myself in.

Being able to instruct the TV to switch away from the RPi gives the best of both worlds. In doubt I than can have the TV switch back to the RPi and check if it really shut down.

Regards, Rudy Wieser

You might want to try the vgencmd thing Russell suggested, but other than that...

Sorry, I was mixing things up with my own setup here. Basically why I got an HDMI switch although my TV has plenty input is exaxtly the behaviour I described: whatever I turn on makes the switch go to this new source, when I turn it off it goes back to what was playing before. TVs don't do that, (most) switches do and with some switches the behaviour can even be configured. So I have four HDMI devices all connected to the switch and one HDMI cable from the switch to the TV.

-jw-

Joerg,

Andy Burns suggested something called "cec-client".

:-) I already assumed that that was the case.

[snip]

Hmmm... thats something I need to keep under consideration. Thanks.

Regards, Rudy Wieser

Lawrence,

:-) The idea is to *solve* the problem. Tackeling one but at the same time creating the next ain't it.

Regards, Rudy Wieser

This SRB: Standard Rudy Behaviour

Look up his previous questions and replies in the archives. He'll ask a question, people make suggestions, he'll not find any of the suggestions acceptable or there'll be extra information provided after the suggestions that makes the situation different. And it goes on for a while. Lather, rinse, repeat.

You don’t know how to use SSH?

Lawrence,

:-) SSH is just part of the equation.

Regards, Rudy Wieser

That’s a back down from your previous position that it would only make the problem worse, then?

Lawrence,

You think so ? I think that without the other parts of the equation installing SSH is as usefull as a plane without wings.

Regards, Rudy Wieser

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required