Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • For MacOS, keep awake with:

    sudo pmset -a disablesleep 1

    Reset back:

    sudo pmset -a disablesleep 0

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

  • Does it also make my Mac irritable?
  • 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

  • Amphetamine is what I use. It has a robust set of triggers, like if you ip address changes to a certain subnet (like private IPs on a work network)

    https://apps.apple.com/us/app/amphetamine/id937984704?mt=12

Explore Birbla archives