←back to thread

700 points yen223 | 3 comments | | HN request time: 0.649s | source
Show context
selectnull ◴[] No.42058087[source]
TIL: caffeinate

Very useful.

replies(5): >>42058262 #>>42058366 #>>42058643 #>>42060502 #>>42063310 #
1. al_borland ◴[] No.42063310[source]
While it may avoid sleep, it doesn’t prevent inactivity, in my experience. For instance, my chat app at work will still show me inactive while running caffeinate. I have to do non-interactive training semi-regularly and need to interact to keep from looking like I’m away from my desk.
replies(1): >>42063912 #
2. latexr ◴[] No.42063912[source]
Have you used the `-u` flag? From the manual:

  -u      Create an assertion to declare that user is active.
replies(1): >>42065721 #
3. mathieuh ◴[] No.42065721[source]
Doesn’t work with Slack at least. I’ve had an iTerm window running `caffeinate -disu` for years. I think it used to work and stopped working in the last few months.