Raspberry Pi2 - powering TV/amp on and off
#1
Hi,

I have a bit of a complex problem that (hopefully) someone might be able to help with.

In my living room, I have a Raspberry Pi2 which is connected by HDMI to an amplifier (Yamaha YHT294), which is connected, by HDMI, to my TV (Samsung LE40A656).

What would be ideal is for the Pi to be able to switch off the TV and amp when it goes to screen saver mode.

Unfortunately, my amp does not have CEC control but my TV does. What I was hoping to do is to buy a smart powerstrips that senses when the TV is in standby mode and automatically turns off the amplifier.

I have come across two problems with this:

1. For some reason, I cannot get the Pi to put the TV into standby mode - everything else works (full navigation and buttons) and I can successfully get the Pi to turn off when the TV goes into standby.
2. If the CEC signal passes via the amp (which does not have passive HDMI pass through), then the Pi would be unable to pass the signal to turn on the TV which would turn on the amp.

Is there some really clever way to get round this?

My only thought, so far, is to buy a power strip that is controlled via a USB signal something like this, if I can find a UK equivalent: http://www.amazon.com/EcoStrip-1503E-Ene...B003CFB9KA

Now I know that the Raspberry PI sends power to the USB even when shutdown, so I would need one of these to cut the power to them - http://www.uugear.com/witty-pi-realtime-...pberry-pi/

Hopefully, this would mean that although I would not be able to get the control of turning everything off when the Pi goes into screensaver mode, it would allow me to set the Pi to shut everything down if there has been no activity for (say) 10 minutes - which happens a lot in my house.

Is this my best option are am I massively overcomplicating things?

Thanks - sorry for the long post.
Reply
#2
Can you try:
Code:
vcgencmd display_power 0
which removes hdmi signal and
Code:
vcgencmd display_power 1
which applies it again.

Some displays detect this and go into standby (possibly after a few minutes).
Reply
#3
Sorry- bit of a beginner with this.

Do I put both of these in the config.txt file?
Reply
#4
No you want to ssh in and then type them in.
Reply
#5
There is a screensaver add-on that uses display_power. You could just try installing that:
https://github.com/timker/kodi.screensaver.pimon
Reply
#6
Thanks - I shall give it a whirl and see what happens.
Reply
#7
I tried both of your suggestions as above and, unfortunately, my TV never actually turns off - it just sits there displaying "no signal".

I had a look on a few Samsung forums and lots of Samsung TVs will not auto-power off if the signal is lost - a real irritation for me in relation to the above (and a major shortcoming on behalf of the company).

Anyway, this means that my intelli-power strip idea is definitely not going to work now, so I shall have to change tact.

One interesting development is this thing:

http://www.amazon.co.uk/Energenie-ENER01...erry+pi+ir

Am I right in thinking that the Pi could then learn to turn off the power strip (containing the TV, amp and sub-woofer), whenever it goes into screensaver mode or when it shuts down?
Reply
#8
(2015-07-30, 10:54)elsmandino Wrote: Am I right in thinking that the Pi could then learn to turn off the power strip (containing the TV, amp and sub-woofer), whenever it goes into screensaver mode or when it shuts down?

Looks like that is possible. It won't work out of the box. You'll have to plumb the right commands into the screensaver add-on to transmit the power off/on.
Reply

Logout Mark Read Team Forum Stats Members Help
Raspberry Pi2 - powering TV/amp on and off0