I have Laptop HP m6-1225dx bought 2013. From few months my Laptop works and suddenly is shutting down and is going to sleep or hybernate mode. I need to wait to shut down itself and then I press the buttom to start. It's actually start where I left so it's not restarrting.
I've just ordered new battery. I will see if it's making it because of my battery not working properly or is something diferent.
I understand your laptop shutting down or going to sleep mode automatically.
Don't worry I'll try to help you out.
Does your laptop shutdown in BIOS?
Did you make any make software or hardware changes on your PC?
Have you tried checking with a different adapter?
Check if your laptop is charging correctly. Check if the pin inside the charging port is bent or broken.
Please try the steps recommended below.
Skip this step if the computer does not enter sleep mode or if the computer wakes unexpectedly.
Follow these steps to enable your keyboard to wake your computer from sleep mode:
In Windows, search for and open the Device Manager.
Click the arrow next to Keyboards and double-click the name of your keyboard.
If the Power Management tab is available, proceed to the next step.
If the Power Management tab is not available, click the Change Settings button if it appears below the Device status box. The same Keyboard Properties window opens with the Power Management tab available.
If you are prompted for an Administrator password or confirmation, type the password or provide confirmation.
Click the Power Management tab and make sure that the box next to Allow this device to wake the computer is checked.
Click OK, and then test to make sure that the keyboard can now wake the computer. If the computer still cannot wake from sleep mode, continue using these steps.
Please refer this article to further troubleshoot sleep or hibernate issues with your PC.