Legacy conditional filters
(See also config.txt conditional filters.)
The [HDMI:*] filter
| This filter is for Raspberry Pi 4 only. |
Raspberry Pi 4 has two HDMI ports, and for many config.txt commands related to HDMI, it is necessary to specify which HDMI port is being referred to. The HDMI conditional filters subsequent HDMI configurations to the specific port.
[HDMI:0]
hdmi_group=2
hdmi_mode=45
[HDMI:1]
hdmi_group=2
hdmi_mode=67
An alternative variable:index syntax is available on all port-specific HDMI commands. You could use the following, which is the same as the previous example:
hdmi_group:0=2
hdmi_mode:0=45
hdmi_group:1=2
hdmi_mode:1=67