HDMI monitor flickering on and off

I switched from Display 1 to Display 2 and still having issues with both monitors at least with the Mac.