Set the HDMI as a second display. Make sure to set the resolution so it is not higher than 1080p (or 720p if that is max for the TV).
You may also have to switch TV inputs back and forth a few times until the PC and TV handshake. Sometimes a different input or HDMI cable might work even if it worked for the laptop. HDMI specifications are not followed very strictly so you can get combinations of source - cable - display that don't work.