Notebook Shuts Down when i close the lid

I found out the problem. When Hibernation is off the problem occurs and shuts everything. To open hibernation on your computer do the following.

  1. Press start Type CMD to search.
  2. Right click cmd.exe and click "Run as an administrator"
  3. Type this and press enter: powercfg /hibernate on
  4. You are done.