screen goes black every few seconds when switching off external monitor
Affected version
- OS: Fedora 37
- GNOME Shell version: 43.2
- Wayland
Bug summary
I have three displays (primary and two smaller ones) and everythings works fine when all three are powered on. If I switch off one of them without unplugging the displayport however, the remaining displays go black for 1-5 seconds every ~20 seconds. It only stops when I physically unplug the displayport cable of the inactive display. Deactivating the displays in the settings does not change the behavior.
Steps to reproduce
Boot with one or two of three displays powered off, or Boot with three displays powered on, switch off one or two (without unplugging)
What happened
Display is completely black for 1-5 seconds every ~20 seconds or so, the interval is a bit random. Once I physically unplug the inactive display port cable - the flickering stops immediately.
What did you expect to happen
Displays should disappear from the display settings when powered off and remaining displays should not go black.
Relevant logs, screenshots, screencasts etc.
The log contains a bunch of these messages everytime the screen goes black:
gnome-shell[2927]: meta_display_get_monitor_geometry: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
gnome-shell[2927]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
gnome-shell[2927]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
gnome-shell[2927]: meta_background_get_texture: assertion 'monitor_index >= 0 && monitor_index < self->n_monitors' failed