Hallo.
Ich versuche schon eine Weile den VDR dazu zu Übereden, beim Drücken der Power/Standby-Taste an der FB des Samsung TV den VDR (Raspberry Pi) herunter zufahren. Leider bekomme ich beim Drücken der Taste im Log nur den Hinweis 'CEC Command 54 : standby', der Fernseher geht in den Standby aber der VDR läuft munter weiter. Per 'svdrpsend HITK power' kann ich den VDR (und Rechner) sauber herunterfahren.
Wie muss ich das CECremote-Plugin konfigurieren, damit der VDR auch den Rechner herunter fährt?
Meine /etc/vdr/plugins/cecremote/cecremote.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Minimal configuration file for the cec-plugin.
Normally the following cec logical addresses are used:
0 : TV
4 : Own libCEC address
5 : Audio
8 : DVD/Blueray player
-->
<config>
<global>
<cecdebug>7</cecdebug>
<combokeytimeoutms>1000</combokeytimeoutms>
<shutdownonstandby>false</shutdownonstandby>
<poweroffonstandby>true</poweroffonstandby>
<!-- On VDR start power on TV, make VDR device active -->
<onstart>
<poweron>TV</poweron>
<poweron>Audio</poweron>
<makeactive />
</onstart>
<!-- On VDR stop power off TV and DVD/Blueray player -->
<onstop>
<poweroff>TV</poweroff>
<poweroff>Audio</poweroff>
</onstop>
<cecdevicetype>RECORDING_DEVICE</cecdevicetype>
<keymaps cec="myTV" />
</global>
<!-- If tv is powered off CEC_OPCODE_STANDBY (54,0x36)-->
<onceccommand command="STANDBY">
<!-- command queue -->
<commandlist>
<exec>/usr/bin/svdrpsend HITK power</exec>
</commandlist>
</onceccommand>
<ceckeymap id="myTV">
<key code="ELECTRONIC_PROGRAM_GUIDE">
<value>Menu</value>
<value>Up</value>
<value>Ok</value>
</key>
<key code="AN_CHANNELS_LIST">
<value>Menu</value>
<value>2</value>
</key>
</ceckeymap>
<!-- Define Audio Receiver -->
<device id="Audio">
<physical>2000</physical>
<logical>5</logical>
</device>
</config>
Display More
Ausgabe von svdrpsend plug cecremote LSTD
root@VDRpi-dev:~# svdrpsend plug cecremote LSTD
220 VDRpi-dev SVDRP VideoDiskRecorder 2.2.0; Wed Feb 22 23:25:58 2017; UTF-8
214-Available CEC Devices:
214- Device 0 path: Raspberry Pi port: RPI Firmware 0001
214-
214-Active Devices:
214- 0# TV @0000 TV TV Samsung on
214- 1# Recorder 1 @2200 VDR VDR VDR
214 5# Audio @2000 RECEIVER RECEIVER Pioneer on
221 VDRpi-dev closing connection
Ausgabe von journalctl | grep cecremote:
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [2165] loading plugin: /usr/lib/vdr/plugins/libvdr-cecremote.so.2.2.0
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Load keymap
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [2165] initializing plugin: cecremote (1.3.1): Send/Receive CEC commands
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [2165] starting plugin: cecremote
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Next Wakeup 0
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] manual start
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Node Name global
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Node Name onceccommand
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Node Name ceckeymap
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Node Name device
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CECKEYMAP myTV
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] DEVICE Audio
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Physical Address = 2000
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Logical Address = 5
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option cecdebug
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CECDebug = 7
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option combokeytimeoutms
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] ComboKeyTimeoutMs = 1000
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option shutdownonstandby
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option poweroffonstandby
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option onstart
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] onstart poweron
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] POWERON TV
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] onstart poweron
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] POWERON Audio
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] onstart makeactive
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] MAKEACTIVE
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option onstop
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] onstop poweroff
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] POWEROFF TV
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] onstop poweroff
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] POWEROFF Audio
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option cecdevicetype
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CECDevicetype = 1
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Global Option keymaps
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Keymap VDR default CEC myTV
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] cCECRemote::Connect
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Add device 1
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] LibCEC compiled on Fri Jul 3 19:20:43 UTC 2015 by pbuilder@mgorven-pc.thefacebook.com on Linux 3.16.0-41-generic (armv7l), features: P8_USB, P8_detect, 'RPi'
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: connection opened
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] Device 0 path: Raspberry Pi port: RPI Firmware 0001
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: connection opened
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:24 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: registering new CEC client - v3.0.1
Feb 23 00:16:25 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: CEC client registered: libCEC version = 3.0.1, client version = 3.0.1, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 2.2.0.0, compiled on Fri Jul 3 19:20:43 UTC 2015 by pbuilder@mgorven-pc.thefa
Feb 23 00:16:25 VDRpi-dev vdr[2165]: [cecremote] CEC Command 144 : report power status
Feb 23 00:16:27 VDRpi-dev vdr[2165]: [cecremote] TV 0@0000 TV Samsung
Feb 23 00:16:27 VDRpi-dev vdr[2165]: [cecremote] Recorder 1 1@2200 VDR Pulse Eight
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] CEC Command 132 : report physical address
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] Audio 5@2000 RECEIVER Pioneer
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] CEC Command 71 : set osd name
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] END cCECRemote::Initialize
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] cCECRemote start
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] cCECRemote start worker thread
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] Action 4 Val 0 Phys Addr 0 Logical 0000 0000
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] Power on
Feb 23 00:16:28 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << powering on 'TV' (0)
Feb 23 00:16:31 VDRpi-dev vdr[2165]: [cecremote] CEC Command 144 : report power status
Feb 23 00:16:32 VDRpi-dev vdr[2165]: [cecremote] Primary device, Channel Switch 0 t
Feb 23 00:16:32 VDRpi-dev vdr[2165]: [cecremote] Not primary device, Channel Switch 0 f
Feb 23 00:16:32 VDRpi-dev vdr[2165]: [cecremote] Not primary device, Channel Switch 8 f
Feb 23 00:16:32 VDRpi-dev vdr[2165]: [cecremote] Primary device, Channel Switch 8 t
Feb 23 00:16:32 VDRpi-dev vdr[2165]: [cecremote] TV : VOX
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] Action 4 Val 0 Phys Addr 8192 Logical 0005 ffffffff
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] Power on
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] Mapping Physical 2000->Logical 5
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] CEC Command 144 : report power status
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << powering on 'Audio' (5)
Feb 23 00:16:34 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:35 VDRpi-dev vdr[2165]: [cecremote] CEC Command 132 : report physical address
Feb 23 00:16:35 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:35 VDRpi-dev vdr[2165]: [cecremote] CEC Command 132 : report physical address
Feb 23 00:16:36 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:36 VDRpi-dev vdr[2165]: [cecremote] CEC Command 140 : give device vendor id
Feb 23 00:16:36 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] Action 2 Val 0 Phys Addr 8192 Logical 0005 ffffffff
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] Make active
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: >> source activated: Recorder 1 (1)
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] CECSourceActivatedCallback adress 1 activated 1
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << powering on 'Audio' (5)
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << powering on 'TV' (0)
Feb 23 00:16:39 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << Recorder 1 (1) -> broadcast (F): active source (2200)
Feb 23 00:16:43 VDRpi-dev vdr[2165]: [cecremote] CEC Command 50 : set menu language
Feb 23 00:16:44 VDRpi-dev vdr[2165]: [cecremote] CEC Command 26 : give deck status
Feb 23 00:16:46 VDRpi-dev vdr[2165]: [cecremote] CEC Command 140 : give device vendor id
Feb 23 00:16:46 VDRpi-dev vdr[2165]: [cecremote] CEC Command 70 : give osd name
Feb 23 00:16:47 VDRpi-dev vdr[2165]: [cecremote] CEC Command 160 : vendor command with id
Feb 23 00:16:47 VDRpi-dev vdr[2165]: [cecremote] CEC Command 159 : get cec version
Feb 23 00:16:47 VDRpi-dev vdr[2165]: [cecremote] CEC Command 135 : device vendor id
Feb 23 00:16:48 VDRpi-dev vdr[2165]: [cecremote] CEC Command 132 : report physical address
Feb 23 00:16:50 VDRpi-dev vdr[2165]: [cecremote] CEC Command 133 : request active source
Feb 23 00:16:50 VDRpi-dev vdr[2165]: [cecremote] CEC NOTICE: << Recorder 1 (1) -> broadcast (F): active source (2200)
Feb 23 00:16:58 VDRpi-dev vdr[2165]: [cecremote] CEC Command 54 : standby
Feb 23 00:17:01 VDRpi-dev vdr[2165]: [cecremote] CEC Command 143 : give device power status
Display More