您可能已经注意到,一旦您停止与 Mac 进行积极交互,您的Mac就会很快进入睡眠状态。即使您不是打算在计算机上完成工作,如果Mac检测到您没有使用它,它也会在您身上睡着。当您仅使用电池供电时,情况会变得更糟。
发生这种情况是因为您的Mac正在利用它所拥有的一切机会来节省能源和延长电池寿命(save battery life)。虽然这听起来像是一件好事,但它可能会很烦人,例如当您的Mac决定在您下载某些内容时进入睡眠模式并且您必须重新开始时。
幸运的是,有几种方法可以阻止计算机上的睡眠模式并防止Mac进入睡眠状态。
为什么要在 Mac 上阻止睡眠模式(Why Block Sleep Mode on Your Mac)
您可能想要阻止 Mac 的省电模式的一个明显原因是它是否开始中断活动任务。例如,您开始下载并进入睡眠状态,期望醒来完成下载。相反,您的 Mac 会与您同时进入 睡眠状态,并且下载会被取消。
另一种情况可能是当您离开计算机几分钟,期望马上回来继续工作。相反,您在睡眠模式下回到您的Mac,并且必须中断您的日程安排以使其恢复活力。
无论您的原因是什么,了解一些阻止计算机休眠的技巧总是很有用的。
如何防止你的 Mac 进入睡眠状态(How to Prevent Your Mac From Sleeping)
您可以使用几种不同的方法来暂时停止Mac进入睡眠状态。如果您正在寻找更多功能,请下载一个实用程序或第三方应用程序,以便您更好地控制Mac的睡眠模式。如果您不想费心安装新软件,请尝试以下内置方法之一。
使用 Mac 的节能器(Use Mac’s Energy Saver)
Energy Saver是(Energy Saver)Mac上的内置工具,可用于自定义电脑的睡眠模式。
使用Energy Saver,您可以设置计算机在停止使用后进入睡眠的确切时间,无论是使用电池还是使用电源适配器。您可以将时间设置为1 分钟(1min)、3 小时(3hrs)、从不(Never)。后者意味着完全禁用计算机的自动睡眠模式。
Energy Saver最好的部分是一个名为Power Nap的功能。启用Power Nap后,您的Mac可以使用(Mac)Time Machine自动备份,并在睡眠时检查新电子邮件和日历提醒。如果您连接到电源适配器,您的Mac也可以在不激活睡眠模式的情况下关闭屏幕。
要访问节能器,请转到您的系统偏好设置(System Preferences)>节能器(Energy Saver)。
您还可以在屏幕右上角 电池图标(battery icon)下的下拉菜单中找到它。
如果您只想将Mac设置为在特定时间睡眠和唤醒,请选择“节能器(Energy Saver)”窗口 底部的“计划”并设置时间。(Schedule)
使用终端命令(Use the Terminal Command)
如果您觉得 Mac 的节能器(Energy Saver)效率不高,您可以将终端用作计算机的闹钟(use Terminal as an alarm clock)来解决睡眠模式问题。
要打开终端,请转到Applications > Utilities文件夹。或者,使用键盘快捷键(use the keyboard shortcut) Cmd (Command) + Space并在Spotlight中搜索Terminal。
打开终端(Terminal)窗口后,在其中输入caffeinate并按Enter。只要您打开该终端(Terminal)窗口,这将使您的Mac保持清醒。(Mac)您可以最小化或隐藏它,这不会影响Mac的阻塞睡眠模式。
要重新打开睡眠模式,请退出(Quit) 终端(Terminal)或使用键盘快捷键Ctrl + C终止命令。
如果您希望更好地控制Mac的睡眠模式,请尝试使用名为Amphetamine的(Amphetamine)Mac应用程序。您可以从App Store免费下载。然后它将在屏幕右上角显示为一个小药丸图标。
您可以稍后自定义图标,使其看起来像一只猫头鹰、任何与咖啡相关的东西、太阳和月亮、表情符号,甚至是您自己的自定义图像。
该应用程序的菜单非常简单且易于浏览。除了标准的保持唤醒功能之外,安非他明(Amphetamine)还允许您使用各种触发器来控制 Mac 的睡眠模式。
例如,当应用程序正在运行或文件正在下载时,您的计算机不会进入睡眠状态。您可以设置整个自定义触发器(Triggers)面板,以完全控制 Mac 的睡眠模式。
Caffeine应用程序是真正的“老而金”。这是一款免费、简单的防睡眠应用程序,已经存在多年。
要在您的Mac上激活Caffeine ,请下载它并将其移动到您的应用程序(Applications)中。
接下来,该应用程序将要求您授予控制计算机的权限。
完成此操作后,您只需按下将出现在屏幕顶部 Mac 功能区菜单中的咖啡杯图标。(coffee cup icon)再次按杯子图标将其禁用。(cup icon)这个应用程序的美妙之处在于它的简单性。
此外,您可以将咖啡因(Caffeine)设置为在午餐或登录时自动激活。持续时间也从低至5 分钟(5min)到无限期(Indefinitely)不等。
学习控制 Mac 的睡眠模式(Learn to Control Your Mac’s Sleep Mode)
在尝试 Mac 的睡眠模式时,请务必注意您正在更改哪些设置以及您正在使用哪些实用程序。否则,您可能会发现自己正在寻找一种让 Mac下次 进入睡眠状态的方法。(put your Mac to sleep)
您是否曾经不得不阻止您的Mac进入睡眠状态?您使用了哪种(Which)方法?在下面的评论中与我们 分享(Share)您的Mac生活窍门。(Mac)
How to Prevent Your Mac From Sleeping
You might have noticеd that your Mac falls asleep quіte fast as soon you stop actively interacting with it. Even if you didn’t mean to finish working on your compυtеr, yоur Mac can fall asleep on you if it detects that you’re not using it. It getѕ even worsе when you’re running it on battery power only.
That happens because your Mac is using every chance it has to preserve energy and save battery life. While that sounds like a good thing, it can be rather annoying, like when your Mac decides to go into sleep mode while you’re downloading something and you have to start all over again.
Luckily, there are a couple of ways to block the sleep mode on your computer and prevent your Mac from sleeping.
Why Block Sleep Mode on Your Mac
One obvious reason why you might want to block your Mac’s power-saving mode is if it starts interrupting active tasks. For example, you start a download and go to sleep expecting to wake up to a finished download. Instead, your Mac falls asleep at the same time as you do and the download’s canceled.
Another occasion could be when you leave your computer for just a few minutes, expecting to come back and continue working straight away. Instead, you come back to your Mac in sleep mode and have to interrupt your schedule to bring it back to life.
Whatever your reason may be, it’s always useful to know a few tricks to stop your computer from sleeping.
How to Prevent Your Mac From Sleeping
There are a few different methods you can use to temporarily stop your Mac from sleeping. If you’re looking for more functionality, download a utility or a third-party app that will allow you to control your Mac’s sleep mode better. If you don’t want to bother installing new software, try one of the following built-in methods.
Use Mac’s Energy Saver
Energy Saver is a built-in tool on your Mac that you can use to customize your computer’s sleep mode.
Using Energy Saver, you can set the exact time when your computer goes to sleep after you stop using it, both on battery and when using a power adapter. You can set the time for as soon as 1min, to 3hrs, to Never. The latter means disabling your computer’s automatic sleep mode completely.
The best part of Energy Saver is a function called Power Nap. When Power Nap is enabled, your Mac can automatically backup using Time Machine, as well as check for new email and calendar alerts while sleeping. If you’re connected to a power adapter, your Mac can also turn off the screen without activating sleep mode.
To access Energy Saver, go to your System Preferences > Energy Saver.
You’ll also find it in the drop-down menu under the battery icon in the upper-right corner of your screen.
If you just want to set your Mac to sleep and wake up at a certain hour, select Schedule at the bottom of the Energy Saver window and set the times.
Use the Terminal Command
If you don’t find Mac’s Energy Saver efficient, you can use Terminal as an alarm clock for your computer to solve the sleep mode problem.
To open Terminal, go to Applications > Utilities folder. Alternatively, use the keyboard shortcut Cmd (Command) + Space and search for Terminal in Spotlight.
Once you open the Terminal window, type caffeinate into it and press Enter. This will keep your Mac awake as long as you have that Terminal window open. You can minimize or hide it, and that won’t affect your Mac’s blocked sleep mode.
To turn sleep mode back on, either Quit Terminal or use the keyboard shortcut Ctrl + C to terminate the command.
If you’re looking for more control over your Mac’s sleep mode, try a Mac app called Amphetamine. You can download it for free from the App Store. It will then appear as a little pill icon in the upper-right corner of your screen.
You can later customize the icon to look like an owl, anything coffee-related, sun and moon, emoji, and even your own custom image.
The app’s menu is pretty straightforward and easy to navigate. On top of the standard keep-awake functionality, Amphetamine offers you to control your Mac’s sleep mode using various triggers.
For example, your computer won’t go to sleep while an app is running or a file is downloading. You can set up a whole panel of custom Triggers to take full control over your Mac’s sleep mode.
The Caffeine app is truly “old but gold”. It’s a free, simple anti-sleep app that’s been around for years.
To activate Caffeine on your Mac, download it and move it to your Applications.
Next, the app will ask you to give permission to control your computer.
After you do that, all you need is to press the coffee cup icon that will appear in your Mac’s ribbon menu on top of the screen. Press the cup icon again to disable it. The beauty of this app is its simplicity.
Additionally, you can set Caffeine to automatically activate at lunch or at login. The duration also varies from as little as 5min to Indefinitely.
Learn to Control Your Mac’s Sleep Mode
When experimenting with your Mac’s sleep mode, make sure to pay attention to which settings you’re changing and which utilities you’re using. Otherwise, you might find yourself searching for a way to put your Mac to sleep the next time.
Have you ever had to prevent your Mac from sleeping? Which method did you use? Share your Mac lifehacks with us in the comments below.