Using an HDMI cable to charge is not a good idea. It is intended for multimedia sharing rather than charging laptops. Furthermore, an HDMI's voltage output is low, requiring more time to charge. As a result, it may negatively impact the laptop's battery.