I think the issue with macbooks is similar, but happens when you have USB-C dock with an external display connected. When you close the lid while connected to the dock, mac does not go to sleep but just switches to using the external display (aka clamshell mode) and when you unplug your computer to put it in your backpack, it just remains active instead of going to sleep.The solution to this is to install noclamshell via brew or just get in the habit of disconnecting your mac first before closing the lid.
I noticed this because previously it was sleeping completly fine and the problems started only recently which is inline then I started using the dock.
jscheel|3 years ago