Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've never used sleep on my laptop. I always have the lid set to 'do nothing' when closed (i.e., stay on and keep running). In the past I gave up on using a macbook for many reasons, but a key one was that I couldn't keep the machine on when closing the lid. I can't fathom having to reconnect terminal sessions or other similar connections every time I want to move from one meeting room to another. Carrying my laptop awkwardly with the lid open between rooms just seems silly. I just close my lid and let the laptop keep running and then hibernate at the end of the day, resuming the next morning. True instant-on, and no downsides to me.


There is a command line tool for this: "caffeinate". You can add a script that runs it while there are SSH sessions open.


It's a failing that I need to pre-empt every situation where I don't want the machine to sleep and run a tool to prevent it from sleeping, when I could usually just say 'don't sleep when I shut the lid'.


That's probably because most people _want_ their laptop to sleep each time they close the lid.

The exceptions are really narrow. E.g. if you want your SSH sessions to stay alive, you also need to ensure that you never leave the WiFi coverage.


I don't disagree, but at least give me an option like windows does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: