I would like to be able to switch my Pi between several different physical monitors that I have (one at a time). The screens are not all the same type or resolution.
For most of the monitors, the Pi's autodetection works fine and it displays at the "right" resolution with nothing specified in config.txt.
However for some of them I need to explicitly specify
hdmi_mode or similar in config.txt to get it to display at the correct resolution. Unfortunately, this means that I need to edit config.txt every time that I want to switch between these screens.
Is there any way of avoiding this? Can I somehow get it to detect a specific brand/model of monitor (via EDID, presumably) but then go to a specific mode that I choose for that monitor instead of what it wants to do by default -- while still behaving normally for other monitors? Ideally right from boot, but it's probably ok if a boot script can change the resolution in flight.
I'm ok with modifying code to do this, if someone can point me at the program that would have to be changed.