Y
Hacker News
new
|
ask
|
show
|
jobs
by
johng
40 days ago
Aren't there a few utilities for that, like caffeinate, etc?
1 comments
Crestwave
40 days ago
`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.
link
`sudo pmset -b disablesleep 1` (0 to revert) works, although it doesn't exactly roll off the tongue.