Internal display disabled (black screen) when hdmi is connected before boot

As per title. I have a Lenovo V130-15IKB. The internal display remains black (though it’s still recognized in display list) when hdmi in inserted before booting up macOS.

It has only igpu HD 620 (i3 7020U)

Author: @cipi1965