Multi-monitor settings are lost when switching between single- and extended-display modes using the keyboard (Super+P) or in gnome-control-center
Affected version
- Ubuntu 20.04
- gnome-shell 3.36.4
- Wayland and X11
Bug summary
I set up and save the two configurations separately in gnome-control-center for single- and extended-display modes, but they are not applied when switching modes with Super+P (or with the dedicated key) or when switching modes in gnome-control-center, the settings don't persist.
The settings are saved in ~/.config/monitors.xml when setting up and saving the configuration in gnome-control-center, but they are not applied when switching with Super+P or when switching modes in gnome-control-center, the settings don't persist.
Another way to see the bug is to save a mode configuration in gnome-control-center then switch to the same mode using Super+P by pressing Super+P many times without selecting a different mode, the settings will be lost. See the attached screencast.
Steps to reproduce
- Attach an external monitor to the laptop
- Change the fractional scaling of the external monitor to 150% and change the positioning of the built-in monitor to the desired positioning
- Switch to the single-display mode using the keyboard or in gnome-control-center
- The fractional scaling of the external monitor changes to 100% → (this could be the intended behaviour and not a bug)
- Change again the fractional scaling of the external monitor to 150%
- Switch to the extended-display mode using the keyboard or in gnome-control-center
- The fractional scaling of the external monitor changes to 100% → (this is a bug, it should persist from step 1 or 4)
- The positioning of the built-in monitor changes to the default → (this is a bug, it should persist from step 1)
What happened
Multi-monitor settings are lost when switching between single- and extended-display modes.
What did you expect to happen
Multi-monitor settings should persist.