I connected my TV via HDMI and I noticed that there were additional 4:3 modes provided by Gnome. I checked the DRM modes and edid info for the TV and am pretty sure that it doesn’t advertise these resolutions. Does gnome add these resolutions, and if so, why and where? I would be interested in adding an additional custom resolution if it can be done easily.
I see the same on my display: Settings lists some resolutions not in the EDID. I think those are common resolutions added by Mutter. They’re generated here: src/backends/native/gen-default-modes.py · main · GNOME / mutter · GitLab. All the extra resolutions I see in Settings are on that list.
At build time meson runs that script to create a meta-default-modes.h file which contains a meta_default_landscape_drm_mode_infos list with the generated info for these common resolutions.
All those extra modes work for me as well. My main motivation behind this question is if it would be possible to add additional modes (without recompiling mutter…) with custom resolutions for e.g. game streaming with Moonlight, which relies on modes advertised by mutter or EDID.
Currently, one can patch an EDID file with desired modes, but I was wondering how it was working from mutter since those extra modes didn’t exist on KDE, but your link cleared it up for me.