Close the lid immediately After putting macbook to sleep manually by  → Sleep will cause the system awake, is this a bug?
14318
why "lidwake: 0" does not work?
113814
Is MacBook Pro warming during gaming normal?
47386
How can I tell if my computer went to sleep?
97752
GNOME: supend on laptop lid close no longer works since 19.10 upgrade
129220
My laptop will not sleep when I close the lid
37495
Disable sleep on laptop lid close in tty1
16921
How to turnoff screen / lock Macbook Pro with touch bar using keyboard?
97525
How to diagnose failure to hibernate after hard drive swap (yet sleep works fine)?
61776
How can I keep the computer awake, depending on activity?
156053
How to force Mac window to foreground?
92194
Windows 10 gets shutdown instead of going to sleep/hibernate
43496
Why does OS X show a forgot password prompt when trying to boot or wakeup screen?
62229
How do I stop my 2013 Macbook Air from putting the computer to sleep?
126995
How to programmatically prevent a Mac from going to sleep?
96831
The screen stays off and the laptop is unresponsive after waking from sleep
75172
MacBook is sleeping despite being set to "never" sleep
6341
Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen