man mekt ich hab lange nichts gemacht ....
ich hab yavdr neu installiert (testing)
in den Abhängikeiten zu kodi ist libcec3. Das beisst sich erstmal mit den Abhängikeiten von cecremote welches libcec2 wollte (kein Fehler im Plugin ! Nur im Paket Abhängikeiten)
Dann startet das Paket automatisch libcec-daemon.
Tatata ....
vdr kann ferngesteuert werden mit der TV Fernbedienung !
Das hier:
USB - CEC Adapter
war ja soweit vorbereitet.
Auch die Probleme die es da gab sind weg. TV aus und wieder an ist kein Problem mehr.
Also eigentlich könnte ich zufrieden sein und alles so lassen .... aber:
Kodi findet beim Start aus vdr keinen cec-adapter bzw. "verliert" die Verbindung.
Dachte zuerst das liegt an libcec-daemon aber den hab ich vorher "gestoppt".
UND ich würde gerne cecremote testen. Da passiert aber auch "nichts" trotz gestoppten libcec-daemon.
ZitatAlles anzeigen
echo "scan" | cec-client -s -d 1
opening a connection to the CEC adapter...
requesting CEC bus information ...
ERROR: [ 10594] failed to request the physical address
ERROR: [ 18237] failed to request the physical address
CEC bus information
===================
device #0: TV
address: 0.0.0.0
active source: no
vendor: Sony
osd string: TV
CEC version: 1.4
power status: on
language: ger
device #1: Recorder 1
address: 1.0.0.0
active source: no
vendor: Pulse Eight
osd string: CECTester
CEC version: 1.4
power status: on
language: eng
device #4: Playback 1
address: f.f.f.f
active source: no
vendor: Unknown
osd string: Playback 1
CEC version: unknown
power status: unknown
language: ???
device #5: Audio
address: f.f.f.f
active source: no
vendor: Unknown
osd string: Audio
CEC version: unknown
power status: unknown
/etc/vdr/plugins/cecremote/cecremote.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Example configuration wich shows all available options,
but the examples may not be very useful in practice.
Normally the following cec logical addresses are used:
0 : TV
1 : Own libCEC address
8 : DVD/Blueray player
-->
<config>
<global>
<cecdebug>7</cecdebug>
<hdmiport>1</hdmiport>
<shutdownonstandby>false</shutdownonstandby>
<poweroffonstandby>false</poweroffonstandby>
<combokeytimeoutms>1000</combokeytimeoutms>
<!-- Use the keymap to translate from CEC Keymap to VDR keys -->
<!-- if not overwritten by a keymap in a player section -->
<keymaps cec="myTV" />
<!-- On VDR start power on TV, make VDR device active -->
<onmanualstart>
<poweron>blueray</poweron>
<makeactive />
</onmanualstart>
<!-- <onstart>
<poweron>TV</poweron>
<makeactive />
</onstart> -->
<!-- On VDR stop power off TV and DVD/Blueray player -->
<onstop>
<poweroff>0</poweroff>
<poweroff>8</poweroff>
</onstop>
<onswitchtotv>
<poweron>TV</poweron>
<makeactive />
</onswitchtotv>
<onswitchtoradio>
<poweroff>TV</poweroff>
</onswitchtoradio>
<onswitchtoreplay>
<poweron>TV</poweron>
</onswitchtoreplay>
<cecdevicetype>RECORDING_DEVICE</cecdevicetype>
<cecdevicetype>TUNER</cecdevicetype>
<!-- <cecdevicetype>TV</cecdevicetype>
<cecdevicetype>PLAYBACK_DEVICE</cecdevicetype>
<cecdevicetype>AUDIO_SYSTEM</cecdevicetype> -->
</global>
<!-- Key mapping CEC Key to VDR -->
<ceckeymap id="myTV">
<key code="SELECT">
<value>Menu</value>
</key>
<key code="RIGHT_UP">
<value>Right</value>
<value>Right</value>
</key>
</ceckeymap>
<!-- Key mapping VDR Key to CEC -->
<vdrkeymap id="myVDR">
<key code="OK">
<value>ROOT_MENU</value>
</key>
</vdrkeymap>
<!-- Define a device -->
<device id="blueray">
<physical>2000</physical>
<logical>8</logical>
</device>
<!-- The following device is predefined:
<device id="TV">
<physical>0000</physical>
<logical>0</logical>
</device>
-->
<!-- Menu for TV -->
<menu name="TV" address="TV">
<!-- When menu is selected, switch on and make TV active -->
<!-- TODO config option for selecting broadcast type -->
<onstart>
<poweron>TV</poweron>
<makeinactive />
</onstart>
<!-- player starts a VDR-Player -->
<player file="/video/conf/plugins/cecremote/blueray.mpg">
<keymaps cec="myTV" vdr="myVDR" />
<stop>Stop</stop>
<stop>Back</stop>
</player>
<!-- When returning to VDR poweroff TV and make VDR active -->
<onstop>
<poweroff>TV</poweroff>
<makeactive />
</onstop>
</menu>
<!-- Menu for Blueray/DVD player -->
<menu name="Blueray" address="blueray">
<!-- When menu is selected, switch on TV and player and make player active -->
<onstart>
<poweron>TV</poweron>
<poweron>blueray</poweron>
<makeinactive />
</onstart>
<player file="/video/conf/plugins/cecremote/blueray.mpg">
<!-- <keymaps cec="default" vdr="default" /> -->
<stop>Back</stop>
<stop>Menu</stop>
</player>
<!-- When returning to VDR poweroff DVD Player and make VDR active -->
<onstop>
<poweroff>blueray</poweroff>
<makeactive />
</onstop>
</menu>
<!-- Menu to just power on TV -->
<menu name="TV ON" address="0">
<!-- When menu is selected, switch on TV, -->
<!-- leaving VDR the active device. Start no player, no -->
<!-- player tag, so that the TV displays the VDR output -->
<!-- When player is not used, onstop is ignored -->
<onstart>
<poweron>TV</poweron>
</onstart>
</menu>
<!-- Menu to power off TV, using logical address -->
<menu name="TV OFF" address="0">
<!-- When menu is selected, switch off TV -->
<onstart>
<poweroff>0</poweroff>
<makeactive />
</onstart>
</menu>
<!-- Menu to togle power of TV -->
<menu name="TV TOGGLE" address="0">
<!-- When menu is selected, toggle TV power state -->
<onpoweron>
<!-- Switch on the programmable power outlet for the TV -->
<exec>sispmctl -o 3</exec>
<!-- Wait until TV settles -->
<exec>sleep 10</exec>
<!-- Send CEC commands to power on TV -->
<poweron>0</poweron>
<makeactive />
</onpoweron>
<onpoweroff>
<!-- Send CEC commands to power off TV -->
<poweroff>0</poweroff>
<makeactive />
<!-- Wait until TV finishes switching off -->
<exec>sleep 10</exec>
<!-- Switch off the programmable power outlet for the TV -->
<exec>sispmctl -f 3</exec>
</onpoweroff>
</menu>
<!-- Menu for TV (using CEC TextViewOn) -->
<menu name="TV TextViewOn" address="TV">
<onstart>
<textviewon>0</textviewon>
</onstart>
</menu>
</config>
Alles anzeigen
ist natürlich die Beispiel xml ......
aber es passiert nada. Da ich gerade an 8 Baustellen gleichzeitig arbeite ... wer gibt mir den richtigen Tipp ?