I see you have a computer with HD Graphics (2nd Generation) and it displays fine with a VGA connection. The problem starts when you plug HDMI. If this is correct, it looks like the monitor's EDID is not been detected properly.
You need to make sure that you install the latest monitor firmware or monitor drivers.
If device manager is detecting your monitor as “Plug and Play Monitor" or “Generic PnP Monitor”, then the drivers are not installed. In that case, contact the monitor manufacturer in order to obtain the .INF file to install the driver. Once you have the .INF, right-click on "Plug and Play Monitor" or “Generic PnP Monitor” and choose "Update Driver", and refer to the monitor's .INF file.
If you are interested in additional information please check below: