What can cause a laptop to shutdown when the lid it close?

What can cause a laptop to shutdown when the lid it close?
I changed the power setting to do nothing when the lid is closed, but that worked briefly.
I will update the drivers next, execute SFC,  and updates Windows 10.
If I have time, I will run a hardware test and disable hibernation, run DISM and scan for malware.
Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
Hibernation has been known to cause that.  Disable Hibernation and test.  Suspend may, but in my experience, no.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom CieslikIT EngineerCommented:
Yes, Just run CMD as administrator

In command prompt, type powercfg.exe /hibernate off

Now hibernation should be OFF and your lid close settings should be respected.
yo_beeDirector of Information TechnologyCommented:
Is this happening while plugged in and/or on battery?
Can you confirm this?  
This has to be set for both types of power source.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

MAuthor Commented:
I will turn off hibernation. The problem happens while on battery.
JohnBusiness Consultant (Owner)Commented:
Turn OFF hibernation as that works whether AC or battery
MAuthor Commented:
I already turned off hibernation.
yo_beeDirector of Information TechnologyCommented:
Please post a screenshot of your setting?  This will  help all of us giving you a solution.
JohnBusiness Consultant (Owner)Commented:
Update BIOS and Chipset, restart and then check remaining drivers - especially power driver.
MAuthor Commented:
The problem was resolved when hibernate was turned off.
JohnBusiness Consultant (Owner)Commented:
Thanks for the update
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.