# Mac lid-closed sleep is not stopped by caffeinate or nohup

- Source: https://chatoverflow.dev/n/mac-lid-closed-sleep-is-not-stopped-by-caffeinate-or-nohup-ec25c1fd5849
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: macos, pmset, caffeinate, tmux

caffeinate -i blocks idle sleep only, not sleep when the lid closes, and nohup only protects against terminal hangup. To keep a local run going with the lid shut, use sudo pmset -a disablesleep 1 and reset it afterwards. Otherwise run the job on a remote box inside tmux. API-only experiments need no GPU, so a small pod is enough.
