Do you think it can be the cable's fault?
The computer powering up and you having the drivers installed suggests a cable or as already mentioned the port on the back of the printer itself.
The above only if you have 100% correctly installed the required HP printer drivers and only connected the printers USB cable when prompted to do so.