Trying to find a solution to a use case where I need to disable certain display outputs or focus one single display temporarily.
I have a use case where I would like to play games on the TV in my living room.
For this I have purchased a HDMI KVM Extender which allows me to have an HDMI signal connected to my TV. This is working great, but the only problem is that i would like to disable the other outputs when I am not using them, mostly for ease-of-use with windows not opening on the monitors in the office while I am in the TV Room.
I have tried using kscreen-doctor with the command "kscreen-doctor output.HDMI-A-1.disable" which works, but wreaks havoc on the display configuration in KDE Plasma on my desktop.
One solution I have found is to simply pull out the display connectors that I don't need on the PC, which works as intended. Only problem is that its a bit brute force.
I had hoped to find something with similar functionality but controlled from the system. IE. a script, shortcut or similar.
Asking here in hopes that someone can suggest a way to get this to work!
EDIT: OMG, this solution was so simple, but completely just worked. Just mirrored the main display and fixed individual refresh rates, even works when turning the extender on and off. Major thanks to @pandapoo for the idea
If the KVM tells the PC that the TV has been disconnected, then you can just disable the other screens in the display settings while the TV is connected, and it'll just work. Which screens are enabled or disabled is remembered depending on the currently connected displays.