I have 4 monitors that are always connected to my nvidia graphics card and would like two configurations (that can be swapped between).
Desired configurations:
monitors A, B, C
regular, non-mirrored configuration
A is primary
monitor D is disabled
monitors A, D
D is mirrored to A
D is primary
monitors B, C are disabled
Is there a good way to handle swapping between these configurations using kscreen when all monitors are always connected?
There is seemingly no end-user documentation for kscreen, KDEās git repository for kscreen is not helpful, and I cannot find an obvious way via System Settings/Display Configuration.
Is it best to do this with a script using xrandr or nvidia-settings's metamodes? If so, which of these are preferred? xrandr seems to wipe options (such as ForceCompositionPipeline) applied by nvidia-settings.
Hi, my answer will probably only tangently answer yours. Anyway: I have lost hope in using kscreen to handle monitors. I have only two monitors but kscreen seems to always forget the correct settings for single monitors and extended configuration.
So in my case I decided to use xrandr. Canāt actually answer your question about the better solution between xrandr or nvidia-settings.
One small thing: I downloaded yad and created a mini interface to create an alternate meta+p menu to handle my custom configurations.
Iāve come up with some scripts using primarily nvidia-settings (as I think the syntax is a little easier to understand) and a single xrandr command to set the primary monitor.
I am not sure about whats āeasierā in those scripts of you.
The xrandr codes i wrote are bassically everything you need just put in the correct output IDs (you get them by running xrandr) and the correct monitor position and thats it.
It happened this way because I was already doing research on how to use nvidia-settings's metamodes. Iām pretty sure I need to use it if I want ForceCompositionPipeline set, because xrandr seems to clear that (and any other nvidia-specific information) when it sets the mode of a monitor. I basically decided āIām already using metamodes, so Iāll do as much as I can with themā.