Cec-ctl or cec-client?

With LibreELEC I used Scripts on a Raspberry Pi which use cec-ctl. I tried it in the same way with CoreELEC, but get an error:

Failed to open /dev/cec0: No such file or directory

There is also cec-client which seems to use /dev/aocec

Is it possible to use cec-ctl with amlogic 4.9 kernel or can I stop searching further?

Yes CE uses /dev/aocec instead of /dev/cec0. To use cec-ctl, specify the device with your commands
CoreELEC:/ # cec-ctl -d /dev/aocec

1 Like

I tried to use the commands which worked on the Raspi, but get always β€œAdapter is unconfigured, please configure it first.

This should configure the adapter:

CoreELECTX3:~ # cec-ctl -d/dev/aocec --playback
Driver Info:
Driver Name :
Adapter Name :
Capabilities : 0x00000000
Driver version : 0.0.0
Available Logical Addresses: 0
Connector Info : None
Physical Address : f.7.1.f
Logical Address Mask : 0x0000
CEC Version : Unknown
Vendor ID : 0x000000, 0
OSD Name : β€˜β€™
Logical Addresses : 0

That looks dubious. And each time I perform the command I get a different Physical Address:

CoreELECTX3:~ # cec-ctl -d/dev/aocec --playback
Driver Info:
Driver Name :
Adapter Name :
Capabilities : 0x00000000
Driver version : 0.0.0
Available Logical Addresses: 0
Connector Info : None
Physical Address : f.7.1.3
Logical Address Mask : 0x0000
CEC Version : Unknown
Vendor ID : 0x000000, 0
OSD Name : β€˜β€™
Logical Addresses : 0
CoreELECTX3:~ # cec-ctl -d/dev/aocec --playback
Driver Info:
Driver Name :
Adapter Name :
Capabilities : 0x00000000
Driver version : 0.0.0
Available Logical Addresses: 0
Connector Info : None
Physical Address : f.7.5.6
Logical Address Mask : 0x0000
CEC Version : Unknown
Vendor ID : 0x000000, 0
OSD Name : β€˜β€™
Logical Addresses : 0