A friend had the same problem two days ago with the same brand and they found the problem to be deeply rooted in the cable.
The guy had the same resentment, promising to never buy a HP product, even a pen.
For a good price, you can get really neat Lenovo Ideapad that hardly fail or as earlier suggested, a Mac.