pop-os / cosmic-epoch

Next generation Cosmic desktop environment
3.11k stars 83 forks source link

External screen goes black when closing windows in tiling mode #1220

Open BVildljung opened 1 day ago

BVildljung commented 1 day ago

The setup

I have an external monitor connected to my laptop. The screen is connected via a USB-C -> Display port cable. I use tiling as my window management style.

The problem

When I open a larger number of windows (8-10, usually testing with cosmic terminal) and then closes them again, from the middle, in rapid succession the screen goes black. Some times for just a second or two, but some times it is much longer. When it takes a long time I can work around it by using SUPER+ESC to lock the screen. That brings the image back. The laptop screen is un-affected, and I can keep using it while the external monitor is black.

It does not seem to be the monitor going to sleep or anything like that, the back-light is on even when the screen is black.

I think this has to do with tiling the windows. Cosmic is trying to re-arrange the windows while I am closing them, and somehow it fails and something crashes(?). The tiled windows left when the image comes back are not always arranged in a way that makes sense from what it looked like before the screen went black.

This problem can not be reproduced 100% of the time, as per my experience.

canadaduane commented 4 hours ago

I'm not sure if this is related to your hardware, but on my Intel GPU i915 there seems to be a kernel bug outstanding that causes high-bandwidth external displayport/USB connections to cause the external screen to go black. The tell-tale sign is a "CPU Pipe B Fifo Underrun" message in dmesg (logs).

See https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5455