Sounds like it might be overheating. A lot of games will run system processes close to the max.
What type of laptop do you have? What games are you running? Has this always happened?
Hi.
Did you say that it "does work" with a external keyboard/monitor?
In that case, try updating your drivers (from hp website or windows update only, lots of other driver sites have malware).
Please keep us posted.