Since the laptop is out of warranty, I would take it apart and see if there is maybe a loose connection or something. I have heard of problems where the little button that tells the computer when the screen is closed can get stuck.
However, if, as you say, the CPU is bad, you will need to take...