Try pressing the Fn key and usually F5 or F8 (it will have a picture of 2 screens overlapping on it, or similar)
Keep going until it selects just the external source. This works via VGA, no idea about HDMI though.
Worth a poke, or just set the laptop to do nothing when the lid is closed