2

I like to plug in my macbook and SSH to it from my Windows machine to take advantage of my 27" monitors, and do work in the shell and in Vim.

Now i know that supposedly the machine is capable of going into Power Nap mode and still support my SSH session, and I'd like to see this for myself. It does seem like the computer is in some form of sleep mode, as moving my finger over the touchpad does not wake it up; my SSH session is indeed still active. But, the system fan is still on. I guess if it's executing commands, the CPU, RAM, SSD, i guess the whole thing has to be powered on, so that's not surprising.

What commands can I run to view the system power state? Will I be able to detect a difference between "Power Nap mode" and just plain "having the screen off"?

1
  • Actually, once I close the cover it appears to go completely offline :(
    – Steven Lu
    Commented Jun 6, 2013 at 3:02

1 Answer 1

2

You will not be able to connect to your Mac without waking it up. Modern Macs can be accessed remotely without needing to power on the display; this behaviour saves energy but is not Power Nap.

Apple's Power Nap technical note describes what the state is and how it affects your Mac.

Power Nap does not leave your Mac in a generally usable state; only specifically designed processes are permitted during the power nap state. The permitted processes do not currently include remote connections via secure shell (ssh).

2
  • Okay. this guy is wrong, then.
    – Steven Lu
    Commented Jun 6, 2013 at 15:41
  • I suppose that I will note, 10 years later, that maybe the scope of Power Nap has changed or maybe we shouldn't even call it that anymore (macOS's Battery Settings just calls it Wake for network access)... but I'll tell ya what, the functionality works quite well. If the macbook is connected to power, I find that it is generally accessible from SSH, which can be very convenient. A great way to do this is with a thunderbolt power delivering ethernet connection. I have a 40Gbit setup with a Mellanox ConnectX-4 card in an eGPU enclosure connecting to the rest of my network with fiber.
    – Steven Lu
    Commented Nov 7, 2023 at 0:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .