Could someone double check if this error occurs on other people?
Run the following command on Terminal to open log of the display devices:
log stream --predicate '(process == "WindowServer")' --level debug
On my Mac this was being spammed (20+ times per second) when Display scaling on external monitor was maximum:
2020-05-28 00:29:06.640922+0300 0x53d Debug 0x0 311 0 WindowServer: (CoreDisplay) [com.apple.CoreDisplay:default] [DEBUG] - On display 0x04280c06, surface is not detached, CoreDisplay is detached (0x00000000), DetachCode = 0
The fix for this was to adjust external display scaling towards Less Text until it stopped spamming. This also reduces the CPU use of WindowServer. This error was occuring also when the lid is closed. I thought I found a fix for the problem for high WindowServer CPU use and thus a loud fan noise.
My computer has been really loud when I use Teams and was wondering what might cause the problem. Today I had the logging enabled and noticed that when I open Microsoft Teams or Google Meet with the video on the error above starts to appear again, but only when I the window is moved from the external monitor screen to Macbook Pro's display. When I move the window back, the (debug) error stops spamming.
So the problem is kinda back, but only when using Teams / Meet :) I think also other software might trigger the problem, but could what does the debug error mean and what causes it?
I hope this might help or raise ideas on anyone else?