macbook关闭镜像_如何在关闭时让MacBook保持清醒状态

macbook关闭镜像

macbook关闭镜像

macbook-closed

When you close the lid of your MacBook, it goes to sleep. There’s no system setting you can tweak, and no command you can run, to change this. But there is a major exception to this rule, and another third party program that gives you control.

当您合上MacBook的盖子时,它将进入睡眠状态。 没有可以调整的系统设置,也没有可以运行的命令来更改此设置。 但是此规则有一个主要例外,另一个第三方程序可让您控制。

We told you how to keep your Mac from falling asleep, but this is a little different. Say you want your MacBook running while its closed, so you can free up desk space or leave it as a server running for remote access. You have two options.

我们告诉您如何防止Mac入睡 ,但这有些不同。 假设您希望MacBook在关闭时运行,因此可以释放桌面空间或将其保留为运行服务器以进行远程访问。 您有两个选择。

没有第三方软件:插入外接显示器 (Without Third Party Software: Plug in an External Display)

By default, your MacBook will go to sleep the second you close the lid. But there is one exception, as Apple explains here. To summarize, your MacBook will stay awake while closed if:

默认情况下,关闭盖子后,MacBook会进入睡眠状态。 但是有一个例外, 正如苹果公司在这里解释的那样 。 总而言之,如果满足以下条件,则MacBook在关闭时将保持苏醒状态:

  • The power supply is connected, and

    电源已连接,并且
  • An external display is connected, and

    连接了外接显示器,并且
  • An external mouse and keyboard is connected. USB and Bluetooth both work.

    连接了外部鼠标和键盘。 USB和蓝牙都可以使用。

If you have all of that, you can close the laptop without it going to sleep, turning your laptop in an improvised desktop computer. If you’ve got a large display taking up your entire desk, this is probably the best way to use your MacBook.

如果拥有了所有这些功能,则可以关闭笔记本电脑而不使其进入睡眠状态,从而将笔记本电脑放入简易的台式计算机中。 如果您的大显示屏占据了整个办公桌,那么这可能是使用MacBook的最佳方法。

If your Mac is running macOS 10.7 (Lion) or later, you can simply open your MacBook to re-enable its display. If you’re using an earlier version of macOS, such as 10.6 (Snow Leopard) or earlier, this won’t work. Don’t panic: you just need to put your Mac to sleep, unplug the display, then close and open it.

如果您的Mac运行的是macOS 10.7(Lion)或更高版本,则只需打开MacBook即可重新启用其显示。 如果您使用的是macOS的早期版本,例如10.6(Snow Leopard)或更早的版本,则将无法使用。 不要惊慌:您只需要使Mac进入睡眠状态,拔下显示器的电源,然后关闭再打开即可。

没有外部显示器:使用InsomniaX (Without an External Display: Use InsomniaX)

What if you want to keep your MacBook running closed without connecting an external display and inputs? You’ll need some sort of third party program to do that. We recommend InsomniaX, a free program that runs from the menu bar. Download the application and you’ll have a .TGZ file.

如果您想在不连接外部显示器和输入的情况下使MacBook关闭运行,该怎么办? 您将需要某种第三方程序来执行此操作。 我们建议您使用InsomniaX ,它是一个从菜单栏运行的免费程序。 下载该应用程序,您将获得一个.TGZ文件。

tgz-file

You’ll need to install The Unarchiver to open this compressed file and reveal the app itself.

您需要安装The Unarchiver才能打开此压缩文件并显示应用程序本身。

insomnia-x-application

To install InsomniaX, drag the program to your Applications folder. Run the program and you’ll find it in the menu bar.

要安装InsomniaX,请将程序拖到“应用程序”文件夹中。 运行该程序,您将在菜单栏中找到它。

insomnia-menubar-options

When “Disable Lid Sleep” is checked, you can close your MacBook without it going to sleep. If all you want to do is close your MacBook and let it keep running, the easiest thing to do is to just check that option. “Disable Idle Sleep”, meanwhile, will prevent your Mac from going to sleep at all, the same way programs like Amphetamine or Caffeine do.

选中“禁用盖子睡眠”后,您可以关闭MacBook而不进入睡眠状态。 如果您要做的只是关闭MacBook并使其继续运行,那么最简单的方法就是检查该选项。 同时,“禁用空闲睡眠”将完全阻止Mac进入睡眠状态, 就像安非他明或咖啡因之类的程序一样

Below that you’ll find the option to disable lid or idle sleeping for a certain amount of time. Click these options and a window with a slider will open.

在此之下,您可以找到在一定时间内禁用盖子或闲置睡眠的选项。 单击这些选项,将打开一个带有滑块的窗口。

insomnia-x-slider

Pick how long you want your Mac to stay awake, and you’re good. If you just want your Mac to stay awake long enough to finish a download, or play a particular album, this might be a good option for you.

选择您希望Mac保持清醒状态多长时间,一切都会好起来。 如果您只想让Mac保持足够的唤醒状态以完成下载或播放特定专辑,那么这对您来说可能是个不错的选择。

You’ll find a few more options under “Preferences.”

您可以在“偏好设置”下找到更多选项。

insomnia-more-options

For example, you can specifically disable going to sleep when the lid is closed if the power supply is plugged in. The “CPU Safety” function will allow your Mac to go to sleep in the event of potential overheating. You can also set keyboard shortcuts for triggering both lid and idle sleeping.

例如,如果插入了电源,则可以具体地在关闭盖子的情况下禁用睡眠功能。“ CPU安全”功能将使Mac在潜在的过热情况下进入睡眠状态。 您还可以设置键盘快捷键,以同时触发盖子和空闲睡眠。

That’s about it! For the most part I recommend you simply open InsomniaX when you want your Mac to stay awake while closed, and don’t open it otherwise. The application is passive, meaning your settings will not be remembered when you restart your Mac and open InsomniaX again.

就是这样! 在大多数情况下,我建议您仅在希望Mac关闭时保持清醒状态时打开InsomniaX,否则不要打开它。 该应用程序是被动的,这意味着当您重新启动Mac并再次打开InsomniaX时不会记住您的设置。

翻译自: https://www.howtogeek.com/278943/how-to-keep-your-macbook-awake-while-closed/

macbook关闭镜像

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值