The five flashes of the Caps Lock light suggest a system board failure (motherboard).
A new board or a new computer may be the answer.
Troubleshooting and repair may be expensive - a new laptop may be had for about £300.
Good luck...
http://h10010.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=us&docname=c01732674&product=1132551#N213
Peccavi
June 2013