In the CEC configuration it starts with 1, so i assume 1 == 0 and 2 == 1, right?
No. This setting is to select/address the right HDMI input on your TV, not the output of the RPi ! This should important for those functions:
- Switch source to this device on startup / Beim Starten Kodi als aktive Quelle melden
- Action when switching to another source / Aktion beim Umschalten auf eine andere Quelle
- Send "Inactive source" command on shutdown / Beim Ausschalten Kodi als inaktive Quelle melden
One of the 2 CEC Adapter entries in the peripherals (Peripheriegeräte) list equals to HDMI 0 and the other to HDMI 1. Currently it makes not really a difference which entry you use to configure, because it results in the same configuration set.
Try to imagine the HDMI chain like a pyramid:
The root device is mostly a TV (HDMI sink) with the address 0.0.0.0
Every connected device get a physical address with that pattern : 1.1.0.0
The first digit is the HDMI port number of the TV
The second digit is the HDMI port number of the AVR
Example 1:
RPi is connected directly to HDMI 1 of your TV: 1.0.0.0
Example 2:
RPi is connected via AVR to the TV. AVR is connected to HDMI port 2 of TV.
The RPi is connected to HDMI port 3 of the AVR: 2.3.0.0
Bluray at HDMI 4: 2.4.0.0
Game console at HDMI 1: 2.1.0.0
This addressing is important if you want to signaling the device as the current source, so the TV and AVR switch to the right HDMI inputs and you can get a picture and sound. libCEC seems to detect this address automatically.
However, you could set this address manually via one of these:
- "HDMI port number / HDMI-Portnummer" + "Connected to HDMI device / Verbunden mit HDMI-Gerät"
- Physical address (overrules HDMI port) / Physikalische Adresse (verwirft HDMI-Port)
In case of example 2:
The correct value for physical address is 2300
or
HDMI port number: 3 + Connected to HDMI device: AVR.
or
- Alternatively HDMI port number: 2 + Connected to HDMI device: TV
The issue is, that this manual setting will be overwritten automatically after you closed the settings dialog or reboots KODI. This seems intended by libCEC as long the auto detection works.
In my experience it's better to leave this settings at default and don't change that, although sometimes the correct addressing is displayed:
HDMI port number: 0
Connected to HDMI device: TV
Physical address (overrules HDMI port): 0
You can check the current addressing in this way:
- stop KODI
systemctl stop kodi - scan CEC bus
echo 'scan' | cec-client -s -d 1