Forum
Change TV Source over CEC - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Others (/forum-24.html)
+--- Thread: Change TV Source over CEC (/thread-819.html)



Change TV Source over CEC - Scanto - 21st Apr, 2013 06:12 AM

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


Re: Change TV Source over CEC - rikardo1979 - 21st Apr, 2013 06:57 AM

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


RE: Change TV Source over CEC - mk01 - 1st May, 2013 07:26 AM

if TV (signal) was active before you changed input, maybe sending "inactive source" command could work?

send is | cec-client -s


RE: Change TV Source over CEC - Scanto - 1st May, 2013 08:22 AM

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


RE: Change TV Source over CEC - belese - 1st May, 2013 04:56 PM

maybe this thread could help
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=15593


RE: Change TV Source over CEC - Isabel - 20th Jun, 2013 04:36 AM

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.


RE: Change TV Source over CEC - jimmydean - 12th Apr, 2022 01:25 PM

But with so many options available, it can be a bit overwhelming trying to figure out which one is the best. wordle unlimited wordle