Straight from HP website.
Computer powered off automatically and the Power LED flashes Red two times, once every second, followed by a two
second pause, and the computer beeps two times. (Beeps stop after fifth iteration but LEDs continue flashing.)
Cause
Solution
Processor thermal protection activated:
A fan may be blocked or not turning.
OR
The heatsink is not properly attached to the processor.
1.
Ensure that the computer air vents are not blocked and
the processor cooling fan is running.
2.
Open hood, press power button, and see if the processor
fan spins. If the processor fan is not spinning, make sure
the fan's cable is plugged onto the system board header.
3.
If fan is plugged in, but is not spinning, then replace the
heatsink/fan assembly.
4.
Contact an authorized reseller or service provider.