sudo pmset lidwake 0
Why would anybody care to make this setting change?
There were a couple of times when I found my MacBook just burning up when I took it out of my bag. I have been wondering why it would be running when it should have be asleep! When I learned about this power management setting, I immediately thought about my burning notebook. The lid must have somehow been opening in my bag and the notebook must have been running when it opened. I hope this solves my issue.