caffeinate utility is not working to prevent my macbook from sleeping when I close the display. Instead, the system sleeps and various network services ( VPN, screenshares, VOIP calls, messaging clients, file transfers ) to fail while I walk from my desk to my meeting in < 5 minutes.
Walking around with the laptop lid half open makes it difficult to safely carry with my coffee, and is distinctly uncool.
caffeinate utility is designed to handle this as a user-friendly replacement for
pmset, but appears to be designed not to work when disconnected from AC power.
-s Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.
A timeout feature is essential so that I avoid accidentally stuffing my undead macbook into a bag, resulting in a hot mess. (
caffeinate -t, specifies the timeout value in seconds )