No display from HDMI

I have two monitors.
They were just working fine but suddenly HDMI one is just black now.
If I connect the HDMI monitor via VGA it works fine.

This happened before and I was only able to solve the problem by reinstalling OS.
Even changing the motherboard didn’t solve the problem.


~> xrandr --listmonitors  
Monitors: 2
 0: +*HDMI-2 1920/480x1080/270+1080+120  HDMI-2
 1: +VGA-1 1080/477x1920/268+0+0  VGA-1

~> xrandr --listproviders  
Providers: number : 1
Provider 0: id: 0x47; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 5; associated providers: 0; name: modesetting
    output VGA-1
    output HDMI-1
    output DP-1
    output HDMI-2
    output DP-2

~> lspci | grep VGA
00:02.0 **VGA** compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)

I can provide more outputs.

If you connect both monitors to HDMI outputs what is then reported by xrandr?

xrandr

My second monitor does not support HDMI.

So first monitor is connected via HDMI and second via VGA? Please show xrandr output with both monitors connected.

Which DE or WM are you using? What method do you use to configure your display positioning and/or orientation? If you try logging into another DE or WM instead, does the black persist?