您可以远程启动 Mac。
You can power on a Mac remotely

原始链接: https://www.jeffgeerling.com/blog/2026/power-on-your-mac-remotely/

苹果终于推出了一项原生功能,允许较新的 Mac(M4 Mac mini、2025 款及以后的 Mac Studio,以及 2024 款及以后的 iMac)在恢复供电时自动开机,无论它们之前是如何关机的。 虽然媒体将其描述为对 M4 Mac mini 电源键位置不便的补救措施,但该功能对于远程管理、CI/CD 实验室以及现场活动机架而言,是一项重大改进。通过在“系统设置”中将“连接电源时启动”设置为“总是”,用户现在可以利用智能插座可靠地控制设备。 但需注意以下重要事项: * **FileVault:** 用户必须先通过 SSH 登录以解锁磁盘,远程访问功能才能完全启用。 * **安全性:** 请留意屏幕共享会话,因为它们可能会导致桌面处于已登录状态,从而被他人可见。 * **Bug:** 目前存在一个缺陷,即如果 Mac 直接在登录界面执行关机,则无法实现自动开机。 尽管存在这些限制,且距离实现 PC 十几年前就具备的标准功能等待已久,但此次更新仍为管理无头 Mac 提供了一个期待已久的解决方案。

这篇 Hacker News 帖子讨论了苹果公司最近在 macOS 中引入的“始终开启”(Always)电源设置,该功能允许 Mac 在恢复供电时自动启动。用户指出,虽然这一功能在软件层面是新的,但它与 20 世纪 90 年代的经典极客操作如出一辙。 从历史上看,系统管理员曾使用机械手段——例如将一支圆珠笔帽塞进 Apple 扩展键盘的电源键中,或者物理扭动 Macintosh IIsi 等老式机型的电源按钮——来强制机器在通电时启动。在现代远程管理工具出现之前,这对于将 Mac 用作服务器至关重要。 讨论还涉及了服务器管理的演变,指出与 Xserve 上配备的专用 LOM(带外管理)相比,早期硬件存在局限性。一些参与者表示不满,认为尽管用户有广泛的需求,但这项“始终开启”功能仅限于较新的 Apple Silicon 机型。最后,帖子延伸到了关于 YouTube “标题党”文化的元讨论,创作者 Jeff Geerling 解释说,在当前算法驱动的环境中,为了保持生存,耸人听闻的标题和缩略图往往是必要的。
相关文章

原文

Apple FINALLY lets you turn on your Mac remotely, without having to press the power button. In the media, articles suggest it's a reaction to Mac mini power button complaints.

Turning on an M4 Mac mini remotely using Home Assistant on a Framework 12

While I agree the M4 mini's power button is in a really dumb spot, that's not why I care about this feature. The two bigger use cases for me have been a pain for years:

  • Remote Macs in a lab/CI environment, where I don't need them running 24x7, especially when someone accidentally shuts one down.
  • Macs mounted in road cases or portable racks. It'd be a godsend for them to turn on automatically as I set up for the event (e.g. at a concert or in live broadcast environments).

Macs gained 'Wake on LAN' support in Mac OS X 10.4, released in 2005. Here's the setting as it appears on my Power Macintosh G4 MDD:

Energy Saver options in Mac OS X 10.4 include WoL and Power on after power failure

This setting allows you to wake a Mac from sleep remotely, by sending it a magic packet. They also added 'reboot after power failure' in 10.4, which is great if you're okay hard-cutting power to your Mac so it'll boot when you turn power back on. That's fine for emergencies or when your UPS dies, but it's risky since it's not a safe shutdown scenario.

PCs had the ability to boot from power off (regardless of shutdown state) on most systems complying with Intel's ATX standard, since 1995.

Three decades later, with the release of macOS 26.5, Apple caught up: you can finally set your Mac to 'Always' boot whenever power is restored, regardless of how it was shut down.

I tested this feature on my M4 Mac mini, which is in the limited set of Macs supporting this feature:

  • Mac mini introduced in 2024 or later
  • Mac Studio introduced in 2025 or later
  • iMac introduced in 2024 or later

I made a short video going through everything in this post, if you'd like to watch:

Like blogs more than videos? Read on!

Remote Power Control

Zigbee smart outlets for power monitoring and control in server rack

Rather than rehash the details of how I use these Zigbee Smart Outlets to monitor and control power for most of my servers, I'll link you to the blog post: How I monitor and control all my powered devices (Zigbee + HA).

Configuring macOS to Always power on

To configure macOS to Always boot when power is applied (whether from an outage or a planned shutdown):

  1. Open System Settings, and go to 'Energy'
  2. Select "Always" for the 'Start up when power is connected' option
macOS Energy setting for Always starting when power is connected

I tested the feature by shutting down my Mac, plugging it into the smart outlet, and toggling power on the smart outlet. The M4 mini booted up within 2 seconds, though it didn't make the normal startup chime that happens when I cold boot with the power button.

Two Caveats

There are two things you should know if you operate your Mac remotely:

  1. If you're using FileVault (most people are), and want to log in remotely after the Mac boots, you will first need to log in via SSH and enter the password for an admin account. This will unlock the Mac, after which you can log in with a normal session (via SSH or Screen Sharing). This feature was added in macOS 26.0 and I covered it in this post: Remote login via SSH with FileVault
  2. If you use Screen Sharing to log into a remote Mac, and then you close the Screen Sharing session without logging out on a Mac with a display attached, the remote Mac will 'wake up' to a logged-in desktop, as if you were just using it. If you're in a shared office space or something, that could be quite a problem! I try to remember to log out before closing a Screen Sharing session.

And a Bug

In the course of making a video on this, I was testing a few different boot scenarios. Everything worked, except for one:

macOS Shut Down command in login window

If I booted up the Mac (either with the power button or by switching on the outlet), but did not log in, and chose the 'Shut Down' option in the login window to power off the Mac, it would not power back on when power was connected. I had to physically press the power button.

I tested this four times, and also tested logging in and shutting down normally, and in all cases this bug was confirmed.

I was going to file a bug in Apple's 'Radar' system, but I don't have an 'AppleConnect' account. So then I found macOS has a built in 'Feedback Assistant' app, so I used that instead. I created report FB23071345: Boot after power restore fails if Mac is shut down from login screen in case anyone at Apple is listening :)

Submitting my bug report to Apple Feedback

Conclusion

Special thanks to Redditor prodigalAvian, whose comment was the first place I found out about this feature. I've been using smart outlets to control power for my PCs for years—I'm glad I can finally do the same thing for Macs—at least the newer ones.

联系我们 contact @ memedata.com