Live data from Hacker News

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

github.com

21–30 of 98 posts

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

#21

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"?

How does it sleep when the agent is done working with the hot corner?

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

#24

Earlier quoted context omitted.

Can't you just use a hot corner configured as "prevent sleep"?

How does it sleep when the agent is done working with the hot corner?

Have the agent write an app that moves the cursor our of the hot corner and trigger it when done.

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

#26
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.

Everyone dreams about making the next cool AI tool and doesn't bother checking if someone has already made the same thing years ago without the word "AI" in the description

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

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

Yeah, I'll stick with the oneliner.

https://ghloc.vercel.app/kageroumado/adrafinil?branch=main

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

#28
post #23

For 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

#29
post #23

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

Nice. I needed this yesterday, and will need it again today.

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

#30
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.

I think the same...It happend to me that I just ask Claude to build whatever I need for my personal very specific use case without looking what else it's outhere
Post reply on HN