Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- Does closing the M-series laptop lid no longer throttle the CPU like it did on the Intel ones?by dcan
- I’ve often wondered about the thermal performance or running a MacBook with the lid closed. One argument is that the reduced surface area from a closed lid increases temperature. Others argue that not running & rendering the display (and thus GPU) generates less heat. I’m not sure who to believe.by mr_toad
- Running lid closed with external display has been officially supported since forever so I wouldn't worry about it too much.by herrkanin
- At some point, if you closed the lid and didn't have an external monitor plugged in, macos would put the GPU in power save mode, which would tank local llm performance. Is that not the case any more? There were even small singles you could get which would trick the ps into thinking an external monitor was plugged in
- I don't think this is for running local llms.by loeg
- Interesting. Kind of similar in purpose, but I created a simple app to schedule and type the "continue" word in my terminal after X time has passed, since I have to wait for my usage to be restored. =)by lellow
- For MacOS, keep awake with:
sudo pmset -a disablesleep 1
Reset back:
sudo pmset -a disablesleep 0
by rancar2 - This works great. Only downside is display doesn't turn off when you close the lid. Made a little status bar utility to wrap the disablesleep command and address that downside:
https://github.com/narcotic-sh/modafinil
(yes, I know, another *afinil named Mac sleep prevention app? but hey, I was first :P)
by hamza_q_ - 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.by kageroumado
- 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.by dawnerd
- 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 descriptionby flexagoon
- Easier to ask Claude than ask google I guess.by conception
- 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 outhereby neoecos
- Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.by kageroumado
- Thank goodness. I can’t leave my laptop for a second unattended because my cat loves nothing more than to dance on the keyboard. I’ve need something like this.by aqme28
- by EddieLomax
- I have been using the builtin macOS `caffeinate` command for this.
For example:
caffeinate -dimsu
That keeps the Mac awake so I can use Claude remotely from phone.
You can also wrap your command as well, but I rarely use it.
caffeinate -dimsu your-agent-command
by 47 - The new wave apps named after speed / modifinil must be hard core?
- Claude Code actually uses caffeinate -i -t 300 during Claude’s turn, restarted automatically until the turn finishes.by kageroumado
- Caffeinate is burned into my muscle memory at this point. I attribute that to the realization that you could repeat opt flags. There's something catchy about
caffeinate -dimsum
by zxexz - 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.
by moralestapia - had a coworkers whose laptop keys melted into mushby dominotw
- that was true of intel but definitely not of arm macbooks.by dmd
- 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.by kageroumado
- Does it also make my Mac irritable?
- Probably less irritable than amphetamine~by kageroumado
- I guess we are getting the entire modafinil, R-modafinil extended universe.by loeg
- 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
by chopete3 - Can't you just use a hot corner configured as "prevent sleep"?by bluedino
- The dummy display enables “clamshell mode,” which lets your MacBook stay awake even with the lid closed, provided that it’s also on AC power. If the MacBook is not connected to power, the clamshell mode isn’t activated and it will sleep normally.
Adrafinil simply disables the global sleep without spoofing hardware, and re-enables it once the agent is done working, the temperature is too high, or the battery is low.
by kageroumado