I have a Samsung TV / monitor with HDMI, DVI, VGA inputs and more. My Raspberry Pi is connected to the HDMI input, my computer to the DVI input. With
echo as | cec-client -s -d 1
executed on the Pi, I can change the input of the TV to HDMI. As far as I know, DVI does not support CEC. This means I can't execute above command on my computer to make the TV switch to the DVI input.
Is it possible to send a CEC command from the Pi via HDMI to the TV to make it switch to DVI?
lirc
for this.