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

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton