Hi Sanok,
Thank you for visiting the HP Support Forums and Welcome. I have read your thread on yourCompaq Presario CQ61-410US Notebookand getting a black screen and freezing. Try performing a hard reset. When performing a hard reset please note remove any and all USB devices, and remove memory cards from the card reader slot. Disconnect all non-essential devices. A hard reset terminates any process that might be causing the freezing or halts. If that does not help you will need to return the BIOS to factory defaults. In this document it gives you a step by step to resolve the boot device error. You might benefit from this document on overheating as this could cause the shutdown and the flashing lights.
Hope this is helpful.
Thanks.