====== Per HDMI angeschlossenes Gerät steuern (HDMI-CEC) ====== ===== Installation ===== root@loxberry:~# apt-get install cec-utils Prüfen ob das Raspberry HDMI-CEC Gerät gefunden wurde: root@loxberry:~# cec-client -l libCEC version: 4.0.2, git revision: libcec-4.0.2+8-8563411~dirty, compiled on Sun Apr 2 17:04:01 UTC 2017 by root@hostname: Name or service not known on Linux 4.4.0-57-generic (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi Found devices: 1 device: 1 com port: RPI vendor id: 2708 product id: 1001 firmware version: 1 type: Raspberry Pi ===== Testen ===== Befehle: ^Kommando ^Funktion ^ |''%%echo 'on 0' | cec-client -s -d 1%%''|Einschalten | |echo 'standby 0' | cec-client -s -d 1 |Ausschalten | |echo 'pow 0' | cec-client -s -d 1 |Power-Status abfragen| |echo 'volup' | cec-client -s -d 1 |Volume Up | |echo 'voldown' | cec-client -s -d 1 |Volume Down | |echo 'mute' | cec-client -s -d 1 |Mute | Weitere (jedoch nur komplexe) Kommandos im [[https://github.com/Pulse-Eight/libcec/blob/00afa793a90dc82c53ffb58622294cf9e06fe348/src/cec-client/cec-client.cpp#L317|Sourcecode]] Weitere Informationen: * [[http://www.cec-o-matic.com/]] * [[http://blog.endpoint.com/2012/11/using-cec-client-to-control-hdmi-devices.html]] * [[http://constey.de/2014/10/fernseher-ueber-hdmi-per-raspberry-pi-steuern-cec/]] *