HDMI cables do not carry power, so you cannot charge a laptop with an HDMI cable. You will need to use the laptop's power cable or a separate charging cable.