I’ve got a 7,1 Mac Pro with the Radeon Pro 580x video card. I’ve noticed the screen flickers occasionally (turns on and off briefly), when connected with an hdmi cable (hdmi on monitor, and on the Mac Pro). I recently added an adapter(hdmi to usb-c) into the mix so that the hdmi cable is connected to the thunderbolt3 port, and the flicker, at least with my brief testing period seems to have gone away. Has anyone else experienced anything similar?
I think I can shed some light on this. I'm pretty close to 100% convinced from my personal experience and research that the flicker is due to HDCP (High-bandwidth Digital Content Protection) handshake issues. You can research this yourself, but basically the endpoints of an HDMI connection at the start of the connection go through a series of steps to ensure the devices are "authorized" to transmit high definition content. This handshake also is done periodically to verify the connection hasn't been tampered with. It is the absolute bane of HDMI. Any number of things can cause the handshake process to fail (bad cables, buggy drivers, firmware issues, barely signal compliant devices, incompatible[?] HDCP versions, etc.).
The FIRST thing to check is the cable. Seriously, if you think you have a good-quality cable, just get another brand and try that anyway. Check what the cable rating is (as far as HDMI compliance) compared to the resolution you are trying to use. You can try switching to a lower resolution as a debugging aid to see if the problem goes away.
Other than that, it's all bad news. Like I said, certain devices may have buggy firmware or sketchy signal compliance built-in. Getting a different brand device may be the only solution. If it's a driver problem then hope the vendor puts out an update.
I'm pretty convinced at this point Apple's drivers have HDCP compliance issues or bugs in them that cause issues like this. I've got an older system (2008 Mac Pro) hooked up to the same KVMP switch and monitor as 2 newer Apple products (MacBook Pro and Mac Pro 2019). All are running the exact same resolution. The older system has ZERO problems with this screen blanking. The two newer Apple products pretty much ALWAYS have this problem when I switch back to them. I "fix" it by quickly switching away from the system via the KVMP and then switching back. 99% of the time the connection stabilizes. If it becomes unstable again at some point I do the same process to re-stabilize the video connection.
Lastly, there is one somewhat shady area where you can fix this, depending on the resolution you are attempting to use. You can try to get an HDCP stripper. They're pretty rare at this point, but if you can find one it will very likely solve the problem -- assuming again it isn't just the cable.