I want to force both Raspberry 4 HDMI output's to 1920x1080@60Hz in desktop mode where either one output doesn't necessarily have a HDMI connected but usually will but often not at the same time. When connected it should use the same resolution as which I forced it to do. This is because of video processing output software I'm using that should always output the same resolution, no matter what. The end result is for an art project which uses projectors, which all support 1920x1080@60Hz but can vary in model and brand.
In Raspberry Pi OS releases before Bookworm this was possible through config.txt:
Because of the new default desktop Wayland this is now different, but I am confused on how to do it properly. The config.txt documentation explains that we cannot set the hdmi settings here anymore.
The HDMI settings used to be configured by firmware via settings in config.txt; this configuration is now instead done by KMS via settings in cmdline.txt.
And if I check the above link from the quote it shows that indeed I can change the HDMI settings there like this by editing the .config/wayfire.ini:
mode = 1920x1080@60
But when I read on it also shows this:
The part of the output: line (HDMI-A-1 in the example shown here) matches the display options described for KMS. The mode line is similar to that used by KMS, but slightly different. Consult the Wayfire documentation for more extensive information.
The KMS linked page then proceeds:
If no video entry is present in cmdline.txt then the Linux kernel will read the EDID of an HDMI-connected monitor, and automatically pick the best display resolution supported by your monitor / television. If you’re using Raspberry Pi OS Lite, or the "boot to CLI" mode of Raspberry Pi OS, and you want to change the resolution of the text console, then you’ll need to add a video setting to cmdline.txt...
How I read this, the cmdline.txt takes precedence over wayland.ini. Am I correct here? Or what happens when only the settings are changed in wayland.ini and not the cmdline.text or vice versa?