Live data from Hacker News

Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

github.com

11–20 of 98 posts

Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

#11
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

Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

#13

What's old is new again, but I welcome this. I used to do this 15 years ago to keep listening to music from my laptop (one of the white chiclet ones) in my backpack, can't remember the name of the app I used then. One caveat, your laptop cannot cool inside a backpack, it will overheat and shut down anyway. This happened to me several times.

It has a setting for thermal cutoff that you can set to something like 60º C. Sleeping will stop heavy work (like a build) before it leads to overheating.

Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

#18
post #12

But 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.

Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.

Re: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

#19
post #8

Um 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

#20

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"?
Post reply on HN