Don't reconfigure displays (blink display, interrupt sound) on laptop lid close when display mirroring is active
Current behavior
- Connect laptop to one or more external displays (HDMI in my case)
- Select display mirroring
- Play sound via external display for testing the short sound interrupt
- Close laptop lid.
- Observe that the external display goes black for 1-2 seconds and the the sound also interrupts while screen is black. It all comes back after that. To my understanding this happens because the displays are automatically reconfigured on lid close.
Expected behavior
In step 5: External display shouldn't go black and should keep playing sound without any interruption. As far as I understand no display reconfiguration should be required when display mirroring is active. Nothing will change.
Why this is important
When in an environment where you have to constantly control some content through your laptop while also needing to close your laptop lid in between, this is quite disturbing. I used i3 (only Xorg there obviously) before and handled the display configuration myself using xrandr (audio configuration using Pulse Audio). When display mirroring was chosen and laptop lid was closed, there was no interruption, no short display blink, sound kept playing. If the expected behavior requires also constantly rendering the content on the closed lid display, feel free to close the issue because I guess there's currently no viable solution then. But I couldn't find anything on the internet about this topic so this issue might be helpful as a reference. But even if the screen reconfiguration is necessary, maybe at least the sound interruption is solvable.
My environment
- OS: Fedora 32
- GDM version: 3.36.2
- Same behavior in Xorg and Wayland