Powered by coANDco UK

CEC How2s

From How2s

CEC (Consumer Electronic Control) allows you to send signals to consumer electronic devices, for example via HDMI port.

sudo apt-get install cec-utils

You can for example switch a TV from standby to ON if you send the following command to the *cec-client* (which you need to install first). The last four digits are the hardware address of the source. These commands allow you to switch between the different sources (provided the addresses are correct):

echo "tx 4F:82:30:00" | cec-client -s
echo "tx 4F:82:20:00" | cec-client -s
echo "tx 4F:82:10:00" | cec-client -s

You can check cec commands at http://www.cec-o-matic.com/

If you want to find out what commands are supported by the connected device, you can use

echo h | cec-client -s -d 1


echo scan | cec-client -s -d 1
Please check out our sponsor, thanks to whom How2s.org is FREE: