Linux is cool, I can do a lot of things with it. If i set a config file in Linux, I am damn sure that it is ran every single time. The code does what you tell it to do.
There is 1 thing that always seems to be “black magic”: 1) lid close and suspend 2) lid close and suspend and lock.
If we ignore locking for a moment and focus on suspend. I cant seem to figure out why sometimes lid close would suspend immediately, when other time it takes 5 seconds after lid closes. On some days, lid closes would not even suspend !!
Did anyone manage to get suspend work 100 %? I cant believe we have tons of great linux tools and years into kernel dev, and still suspend is a hit or miss.


Not sure how lid detection works on Linux because there are so few laptops that ship with Linux. So I’m not sure if there’s a set rule on that. But, Linux can run on like most, if not all, x86-64 Wintel laptops out there, so there’s gotta be a standard.
That said, I use Macs at home and Windows at work. It’s hard wired in my brain that when you get up, you ⌘+CTRL+Q on a Mac or Win+L on a Windows box to lock the machine when you get up. Every single time. I don’t care if it’s a laptop or a desktop. The exception is my MacBook because I know exactly what it’ll do, and it’ll do what I want it to. But sometimes I do the three finger salute.
So I imagine if I used Linux, I’d just use its 2/3 finger salute to lock workstation before walking away, because that’s my SOP for walking away from any computer. My main phone is an iPhone, but sometimes I use an old Android phone. My SOP for using it is much the same as the iPhone. So if I were using Linux, I wouldn’t treat it any differently. All that being said, I’d expect the lid action to be in the power options like it is in macOS and Windows. But I guess I’d see if it actually does what it says?