rpi-hdmi-cec-rest icon indicating copy to clipboard operation
rpi-hdmi-cec-rest copied to clipboard

Could not start CEC communication

Open goobags opened this issue 2 years ago • 0 comments

Hi,

I have installed this container via Portainer and cannot ge the CEC device to initialise. I keep getting the following errors in the log.

2022/07/12 15:24:21 InitHostCEC - vchi_connect succeeded 2022/07/12 15:24:21 InitHostCEC - vchi_initialise succeeded 2022/07/12 15:24:21 InitHostCEC - vchiq_initialise succeeded 2022/07/12 15:24:20 could not open a connection (try 8) 2022/07/12 15:24:21 RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8) 2022/07/12 15:24:21 Open - vc_cec could not be initialised

I have run cic-client on the raspberry pi via SSH and the device will initialise however it uses the com port as /dev/cec0 rather than RPI. I cannot work out how to change this.

~ $ cec-client -m starting a monitor-only client. use 'mon 0' to switch to normal mode No device type given. Using 'recording device' CEC Parser created - libCEC version 6.0.2 no serial port given. trying autodetect: path: /sys/devices/platform/soc/3f902000.hdmi/cec0 com port: /dev/cec0

Further, when going in through the Portainer Console I run

~ $ echo 'scan' | cec-client -m

Which gives me the following output. Do I need to run a newer version on libCEC given there is a discrepancy of 6.0.2 vs 3.0.1?

`root@raspberrypi:/# echo 'scan' | cec-client -m starting a monitor-only client. use 'mon 0' to switch to normal mode No device type given. Using 'recording device' CEC Parser created - libCEC version 3.0.1 no serial port given. trying autodetect: path: Raspberry Pi com port: RPI

opening a connection to the CEC adapter... DEBUG: [ 87] Broadcast (F): osd name set to 'Broadcast' DEBUG: [ 87] InitHostCEC - vchiq_initialise succeeded DEBUG: [ 87] InitHostCEC - vchi_initialise succeeded DEBUG: [ 87] InitHostCEC - vchi_connect succeeded ERROR: [ 88] RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)`

goobags avatar Jul 12 '22 05:07 goobags