vdr-plugin-cecremote+handling
This is a "plugin" for the Video Disk Recorder (VDR).
Written by: Ulrich Eckhardt
Project's homepage: http://www.uli-eckhardt.de/vdr/cec.en.shtml
Latest version available at: http://git.uli-eckhardt.de/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
See the file COPYING for more information.
Requirements
==============
libCEC V2.2.0
http://libcec.pulse-eight.com/
PugiXML V1.5, XML parser for C++
http://pugixml.org/
For PugiXML on Raspberry Pi see:
http://distribution-us.hexxeh.net/raspbian/archive/raspbian/pool/main/p/pugixml/
Description:
==============
Plugin to receive and send commands via CEC.
Installation:
==============
First get connected device either via the cec-client if the plugin is not
running :
echo "scan" | cec-client -s -d 1
The output should look like:
opening a connection to the CEC adapter...
requesting CEC bus information ...
CEC bus information
===================
device #0: TV
address: 0.0.0.0
active source: no
vendor: Panasonic
osd string: TV
CEC version: 1.4
power status: on
language: ger
device #4: Playback 1
address: 1.0.0.0
active source: no
vendor: Panasonic
osd string: CECTester
CEC version: 1.4
power status: on
language: eng
device #8: Playback 2
address: 2.0.0.0
active source: no
vendor: Samsung
osd string: BD Player
CEC version: 1.4
power status: on
language: ???
On a running VDR with the cecremote plugin running, this information can
be retrieved via:
svdrpsend plug cecremote LSTD
The output should look like:
220 vdr SVDRP VideoDiskRecorder 2.0.7; Sun Mar 1 15:19:31 2015; UTF-8
214-Available CEC Devices:
214- Device 0 path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3 port: /dev/ttyACM0 Firmware 0004
214-
214-Active Devices:
214- 0# TV @0000 TV TV Panasonic
214- 3# Tuner 1 @1000 Tuner 1 VDR VDR
214- 4# Playback 1 @1000 VDR VDR VDR
214 8# Playback 2 @2000 BD Player BD Player Samsung
221 vdr closing connection
In the plugin configuration directory create the file cecremote.xml (an example
can be found in the contrib directory) with an device entry for each device
which should be handled by this plugin.
In this example device#8 (osd string=CECTester) is the address of the libCEC
device (VDR).
After the first start of the vdr ensure, that the CEC device is not accessed
by the Modem-Manager or mtp-probe by grep for the device path
(/sys/devices/pci00 ...) in the log.
An example udev rule which can be installed at /etc/udev/rules.d/20-libcec.rules
can be found in the contrib directory. This udev rule disables access of the
ModemManger or mtp-probe to the pulse-eight CEC adapter.
Format of the configuration file :
===================================
The configuration file is in XML format The root element is . Within
this element one child element is used to specify global options
for this plugin and several