Comment Comment by Crestwave `caffeinate` is primarily designed to prevent sleeping due to inactivity. It doesn't prevent sleeping due to lid closure while on battery.`sudo pmset -b disablesleep 1` (0 to revert) works, although it doesn't exactly roll off the tongue. parent Crestwave 5 months ago
`sudo pmset -b disablesleep 1` (0 to revert) works, although it doesn't exactly roll off the tongue.