I tested the changes and the CEC in Kodi does not work at all. To get more details, I disabled startup of mediacenter, rebooted and ran cec-client
:
osmc@vero4k:~$ cec-client
No device type given. Using 'recording device'
CEC Parser created - libCEC version 4.0.2
no serial port given. trying autodetect:
path: /dev/aocec
com port: AOCEC
opening a connection to the CEC adapter...
DEBUG: [ 144] Broadcast (F): osd name set to 'Broadcast'
NOTICE: [ 145] connection opened
DEBUG: [ 145] processor thread started
DEBUG: [ 145] << Broadcast (F) -> TV (0): POLL
TRAFFIC: [ 145] << f0
DEBUG: [ 214] >> POLL sent
DEBUG: [ 214] TV (0): device status changed into 'present'
DEBUG: [ 214] << requesting vendor ID of 'TV' (0)
TRAFFIC: [ 214] << f0:8c
TRAFFIC: [ 408] >> 0f:87:00:00:f0
DEBUG: [ 408] >> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG: [ 409] TV (0): vendor = Samsung (0000f0)
DEBUG: [ 409] expected response received (87: device vendor id)
DEBUG: [ 409] replacing the command handler for device 'TV' (0)
NOTICE: [ 409] registering new CEC client - v4.0.2
DEBUG: [ 409] detecting logical address for type 'recording device'
DEBUG: [ 409] trying logical address 'Recorder 1'
DEBUG: [ 409] << Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [ 409] << 11
DEBUG: [ 624] >> POLL sent
DEBUG: [ 624] logical address 'Recorder 1' already taken
DEBUG: [ 624] Recorder 1 (1): device status changed into 'present'
DEBUG: [ 624] trying logical address 'Recorder 2'
DEBUG: [ 624] << Recorder 2 (2) -> Recorder 2 (2): POLL
TRAFFIC: [ 624] << 22
DEBUG: [ 824] >> POLL sent
DEBUG: [ 824] logical address 'Recorder 2' already taken
DEBUG: [ 824] Recorder 2 (2): device status changed into 'present'
DEBUG: [ 824] trying logical address 'Recorder 3'
DEBUG: [ 824] << Recorder 3 (9) -> Recorder 3 (9): POLL
TRAFFIC: [ 824] << 99
DEBUG: [ 1024] >> POLL sent
DEBUG: [ 1024] logical address 'Recorder 3' already taken
DEBUG: [ 1024] Recorder 3 (9): device status changed into 'present'
ERROR: [ 1024] AllocateLogicalAddresses - failed to allocate device '0', type 'recording device'
ERROR: [ 1024] failed to find a free logical address for the client
ERROR: [ 1024] failed to register the new CEC client - cannot allocate the requested device types
unable to open the device on port AOCEC
ERROR: [ 1025] failed to register a CEC client
DEBUG: [ 1025] unregistering all CEC clients