Switch to Join Displays to do use memorized layout for displays

I use to switch between External Only and Join Displays with my dual-monitor setup, using Meta+p.

When changing to Join Displays it doesn’t remember the previous layout, so it’s like this:

And then I change it to:

Instead when I connect the laptop to the external monitor it goes directly to the saved status with the built-in display on the left.

Is this a bug? I think it should use the memorized configuration like when attaching the monitor.

I would like the ability to have multiple display profiles. I have 4 different display configurations, no external monitors, 1 external monitor, 2 external monitors (both horizontal), and 2 external monitors (one horizontal, one vertical). If I knew where the configurations were stored, I could save ans restore the configuraition.

display configurations are placed in ~/.config/monitors.xml

I think you could try to save and restore it…

That worked, but…. I had to log out and log back in. The mate-display-properties does not appear to read the monitors.xml file, just writes it. I am not sure if that’s a good idea or not. Obviously, if the monitor.xml is corrupted or if what’s really there is different from what monitors.xml thinks it should be, then monitors.xml should be ignored. But if there was an earlier configuration in a file, then it should be possible for mate-display-properties to read that configuration.
I guess I’d like to put a feature request: the option for mate-display-properties to read any monitors.xml configuration file. That would be more convenient than copying another file to monitors.xml, logging out, logging in, and testing the configuration.

Thank you for your kind assistance. I appreciate that.