Hi,
I recently had a similar issue with a Sony laptop of my sisters, it turned out that the display wasn't getting the chance to work because the OS wasn't booting, it was attempting a scan on startup. Pressing escape a few times after startup allowed it to boot and the hdmi automatically mirrored the displays after that. Hope this helps