Prevent laptop from going to sleep when I close the lid, but only if I'm connected to an external display
47055
Can I tell Windows 10 - 'If I close the lid on my laptop, go to sleep IF I don't have an external monitor attached'?
114891
MacBook Air/Pro: run script upon lid close?
47973
Macbook Air shutting off on lid close
51315
How to turn off the display via the command line?
68989
Prevent windows from going into sleep when my program is running?
135749
Ubuntu 12.10 "Turn screen off when inactive for: Never" still turns off
70634
Prevent Windows 7 from sleep + power button hook
93264
Why won't my computer go to sleep automatically?
141107
reduce Screen brightness in battery mode automatically
62229
How do I stop my 2013 Macbook Air from putting the computer to sleep?
59310
Turn off MacBook Pro's display while connected to external monitor on Yosemite
102982
How can I prevent my computer from waking up accidentally?
36320
Is it possible to “Turn off display” with power button without locking screen like in Windows. (Ubuntu 18.10)
50715
prevent monitor switching when closing laptop lid
6341
Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen
49963
My Laptop randomly goes to sleep while working maybe because of malfucntioning lid sensor. How to solve it?
146434
Mute volume of macbook on sleep