Start in the home directory
Code: Select all
cd /home
Code: Select all
sudo apt-get install build-essential autoconf liblockdev1-dev libudev-dev git libtool pkg-config
Code: Select all
sudo git clone git://github.com/Pulse-Eight/libcec.git
Code: Select all
cd libcec
Code: Select all
sudo ./bootstrap
Code: Select all
sudo ./configure --with-rpi-include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/lib --enable-rpi
Code: Select all
sudo make
Code: Select all
sudo make install
Code: Select all
sudo ldconfig
Code: Select all
cec-client -l
device: 1
com port: RPI
vendor id: 2708
product id: 1001
firmware version: 1
type: Raspberry Pi
To send commands to for instance a connected TV:
Turn off TV:
echo “standby 0” | cec-client -s