Forum

Full Version: Change TV Source over CEC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I wondered if it's possible to change the source of my TV over command line.

I'm controling xbmc with my cell phone so I don't need the remote of my tv anymore but I always need it to change the source on my TV.


In this thread http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=15749
I found the command

Code:
echo "as" | cec-client -s

this changed the source of my TV to HDMI where my raspberry is connected. But I couldn't find a command to change the source back to AV where my receiver is connected to watch tv again.

Could anybody help?
Thanks in advance.

Scanto
dont think so this would be possible.
cec sending commands on active TV input or to switch TV ON or to right input where the cec device(RPi) is connected.
So to switch input on your TV to something else would required cec command from that device which is not possible in your case as you want to switch to TV tuner
if TV (signal) was active before you changed input, maybe sending "inactive source" command could work?

send is | cec-client -s
nope didn't work. but thanks for your help.

I'm thinking about connecting an IR transmitter to my RPi so I can switch the source with that.
And even control my receiver, and sound system, and LED lights, and... Smile
I never know this can be done, actually it's a rare option found here, it's really amazing, i'm going to try this. Thanks for all your discussion it becomes easier because of this.
But with so many options available, it can be a bit overwhelming trying to figure out which one is the best. wordle unlimited wordle
Reference URL's