Question: How can I temporarily prevent Ubuntu from recognizing a second monitor that is plugged in? I'm looking for a solution that can be implemented remotely, without physical access to the machine at a given moment.
Background: The monitors are plugged into an NVIDIA 3080 RTX Ti GPU via Displayport. The machine runs Ubuntu 22.04 LTS.
Some possible approaches that don't work (well) : I do not see any option in Settings > Displays to disable a monitor. Mirroring the monitors would effectively accomplish my goal if not for the fact these two monitors are different resolutions, so the resolution is limited to that of the lesser monitor. We could simply unplug the second monitor whenever we're done working on the machine in person, but this is not convenient for everyone.
Rationale: I use VNC viewer to connect to an Ubuntu machine with two monitors. When connecting remotely, I have a smoother and more practical experience if I only work with the first monitor. The second only gets in the way unless I'm working on the machine in person.