This is great. Will check it. Recently I bought a usb-c empty external monitor card to prevent mac from going to sleep. There are many of these external monitor simulators on Amazon. I still see the laptop go to sleep many times with the external monitor simulator. This is the one I bought. 4K 60Hz USB-C Type-C Virtual Display Adapter DDC EDID Dummy Plug Headless Ghost Display Emulator 2K 60hz1080P@120Hz
Can't you just use a hot corner configured as "prevent sleep"?
Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
21–30 of 98 posts
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#22Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#23sudo pmset -a disablesleep 1
Reset back:
sudo pmset -a disablesleep 0
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#24Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#25reminds me of ye old caffeinate
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#26But Amphetamine has an option to end when an app closes. I’m just so confused why everyone using ai is reinventing solutions that already exist.
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#27Um so it is sudo bash -c 'touch KEEP_RUNNING; pmset -b sleep 0; pmset -b disablesleep 1; while [ -e KEEP_RUNNING ]; do sleep 1; done; pmset -b sleep 5; pmset -b disablesleep 0' and Agent, when you're done do `rm KEEP_RUNNING`, kthxbye. ? (personally I have Ruby scripts that check activity on "tmux capture-output" for that)
https://news.ycombinator.com/item?id=9224
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#28For MacOS, keep awake with: sudo pmset -a disablesleep 1 Reset back: sudo pmset -a disablesleep 0
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#29For MacOS, keep awake with: sudo pmset -a disablesleep 1 Reset back: sudo pmset -a disablesleep 0
This is exactly what the app does, except it ties it to agent activity and re-enables sleep once the turn ends, the laptop is close to overheating, the battery is low, or on a timer.
Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
#30But Amphetamine has an option to end when an app closes. I’m just so confused why everyone using ai is reinventing solutions that already exist.