Raspberry PI – TV per HDMI-CEC steuern

Raspberry PI – TV per HDMI-CEC steuern

apt-get update
apt-get install cmake liblockdev1-dev libudev-dev libxrandr-dev python-dev swig
cd
git clone https://github.com/Pulse-Eight/platform.git
mkdir platform/build
cd platform/build
cmake ..
make
sudo make install
cd
git clone https://github.com/Pulse-Eight/libcec.git
mkdir libcec/build
cd libcec/build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
sudo ldconfig


Autostart modifizieren :

apt-get install unclutter // Zum Ausblenden des Mauszeigers

dann für den Benutzer pi : /home/pi/.config/lxsession/LXDE-pi/autostart modifizieren :

@xset s off
@xset -dpms
@xset s noblank

@unclutter -idle 1
# PROD
#@chromium-browser --incognito --kiosk http://dashboard.local/

# DEBUG
@chromium-browser --remote-debugging-port=4444 --show-fps-counter --incognito --kiosk http://dashboard.local/



#!/bin/sh
echo "standby 0" | sudo cec-client -s -d 1
/sbin/shutdown -h now


/boot/config.txt editieren um overscan auszuschalten