Thank you for joining HP Forums.
This is a great place to get support, find answers to your technical queries.
I understand that the computer shuts down whenever it goes to the sleep mode. Need not worry
Have you tried changing any setting on your PC?
Are you facing this issue after an update?
However, let's try the below steps.
Changing power button and lid settings
You can save power by specifying what the computer does when you close the lid or when you press the power button.
Depending on the setting you specify, pressing the power button causes the computer to do one of the following: Do nothing, Sleep, Hibernate, or Shut down.
Depending on the setting you specify, closing the lid causes the computer to do one of the following: Do nothing, Sleep, Hibernate, or Shut down.
In Windows, search for and open Control Panel.
Figure : Opening Control Panel
![Opening Control Panel]()
In Control Panel, search for Power, and then click Choose a power plan in the Search results.
Figure : Choosing a power plan
![Choosing a power plan]()
In the left pane, click Choose what the power buttons do or Choose what closing the lid does.
Figure : Power button and closing the lid options
![Power button and closing the lid options]()
To change settings for the power button, the sleep button, or the lid when it is closed, click the settings and select the desired settings for use when using the battery or when the computer is plugged in. Then click Save changes.
Figure : Changing power button and lid settings
![Changing power, sleep, and lid settings]()
For more instructions use this link: https://support.hp.com/in-en/document/c04752217#AbT5
For Sleep and Hibernate Issues use this link: https://support.hp.com/in-en/document/c03383935
Keep me posted,
For I shall follow-up on this case to ensure the concern has been addressed,
And your device is up and running again,
that said, If the information I've provided was helpful, give us some reinforcement by clicking the solution and kudos buttons, that'll help us and others see that we've got the answers!
Have a great day!
Cheers![Smiley Happy Smiley Happy]()