Hey there!
Nice to meet you! I'm Randy, an Independent Advisor.
If your Surface shuts down when you close the lid, it's probably set to do that — or a recent update changed the settings.
Here’s what to do: Right-click the Start button, go to Power Options, then click “Additional power settings.” On the left, choose “Choose what closing the lid does.” Make sure both options say Sleep, not Shut down. Then save.
While you’re there, click “Change settings that are currently unavailable,” then uncheck “Turn on fast startup.” That can mess with sleep mode.
Next, check for updates: Go to Settings > Windows Update, and install everything — especially under Optional updates if you see any firmware updates for Surface.
If it’s still shutting down, open Terminal as admin (right-click Start), then type this:
powercfg /a
This shows if Sleep is working. If not, type:
powercfg -h off
That turns off hibernate, which sometimes fixes sleep issues.
Hope that it helps.
Best regards,