To prevent your laptop from going to sleep, here are some steps you need to take:
- Open the Control Panel.
- Find and select the option to access Power Options.
- In the options labeled Power buttons and lid , you can set more specific settings for when the lid closes or when the power button is pressed.
- Another helpful option is to choose to Never let the laptop sleep.
- Save any changes.

