让您的 PC 在不活动时自动进入睡眠模式(sleep mode)很有用。它可以节省电力并减少系统压力。但是,如果您不喜欢此功能,则很容易禁用。
许多人觉得自动睡眠功能不受欢迎。无论您是同时运行多台计算机的高级用户,还是只是在使用 PC 时处理其他任务的人,您都需要一种方法来让您的计算机在不进行交互的情况下保持唤醒。
因此,这里有所有方法可以防止您的 PC 自动注销,而无需手动触摸鼠标或键盘。
修改 Windows 电源选项
禁用自动睡眠的最直接方法是更改 Windows 电源(Windows Power)设置。这种方法不需要任何额外的软件即可工作,对于那些希望避免安装任何东西的人来说,它是最佳选择。
但是请记住,如果您希望在各种电源模式之间来回切换并希望您的 PC 暂时保持清醒,那么更改电源选项可能会很麻烦。在这种情况下,使用第三方应用程序会更好,因为它为您提供了一个方便的切换来启用和禁用自动休眠。
- 首先,通过从“开始”菜单(Start Menu)中搜索来打开“编辑电源计划”(Edit Power Plan)。只需(Just)键入电源选项即可在(Power Options)Windows 10和Windows 11上找到相应的应用程序。您也可以前往“控制面板(Control Panel)” > “系统和安全(System And Security)”来查找“电源选项(Power Options)”,但搜索速度会更快。
- 您会看到两个选项:关闭显示器(Turn off the display)和让计算机进入睡眠状态(Put the computer to sleep)。对于笔记本电脑,这些选项进一步分为两类:电池(Battery )和插入(Plugged in)。您可以在下拉菜单中指定计算机休眠前的时间段;只需将该持续时间更改为从不(Never)以防止其自动关机。
使用第三方软件
Windows使用正在运行的进程的状态来确定系统何时处于空闲状态。如果前台没有正在运行的主动交互程序,Windows会假定您不在场并使计算机进入睡眠状态。
此处列出的大多数应用程序通过每隔几秒钟人工触发鼠标或键盘移动来工作。这与手动执行这些操作具有相同的效果,可防止 PC 进入待机模式。
顾名思义, Mouse Jiggler(Mouse Jiggler)只需摇动鼠标指针即可防止计算机进入睡眠状态。这具有防止屏幕保护程序接管显示的额外好处,这是应用程序的原始目的。
如果您正盯着屏幕看(例如,如果您正在阅读屏幕上的文档),您可能会发现随机的鼠标移动很烦人。为此,有一个Zen微动模式,它将指针推到背景中并且不会干扰您的观看体验。
该应用程序不需要安装,因此您可以将其保存在笔式驱动器上并随身携带。您只需提取下载的 zip 文件并运行它。请注意,该软件需要 .NET 才能工作,如果不存在,将安装它。
Caffeine是一个小应用程序,它采用不同的方法来保持系统清醒。它不使用可能会干扰您的工作的鼠标光标移动或与打字或其他事情发生冲突的按键,而是使用F15键。
选择F15键是为了尽量减少干扰典型使用的可能性——您可能甚至不知道如何按下它——同时也注册为有效输入。Caffeine也是一个非常精简的应用程序,最小化到任务栏中的系统托盘而不是整个窗口。
您可以双击或右键单击咖啡杯图标来切换应用程序。一个装满的咖啡杯意味着它被启用,而一个空壶意味着咖啡因(Caffeine)被禁用。还有一堆命令行开关可以自定义应用程序的行为,从模拟按键之间的持续时间到它激活的窗口。
到目前为止,我们已经看到了让您的 PC 保持清醒的第三方应用程序,但也有一个官方工具可以做同样的事情。Microsoft PowerToys为Windows高级用户提供了许多有价值的功能,这些功能通常需要不同的软件来实现。
您可以将窗口固定在顶部、重新映射键、调整图像大小,当然,无需用户交互即可让您的 PC 保持唤醒状态。我们感兴趣的功能被恰当地命名为PowerToys Awake ,并且默认与PowerToys安装捆绑在一起。
您可以通过Microsoft Store或Github 版本在(Github release)Windows 10和Windows 11上安装此实用程序集合。作为官方支持的Windows应用程序,它具有比我们上面看到的许多工具更好的用户界面。您只需要启用唤醒,(Enable Awake, )该工具将处理一切。
在没有交互(Interaction)的情况下保持计算机唤醒(Computer Awake)的最佳方法是什么?
对于大多数人来说,让您的 PC 在没有输入的情况下保持唤醒的最佳方法是修改省电设置。使用正确的选项,您可以将计算机配置为无限期保持清醒。
这种方法的唯一问题是您并不总是对正在使用的计算机拥有管理员权限。这使得无法更改办公室等 PC 上的电源(Power)和睡眠设置。(Sleep)
这就是第三方工具的用武之地。Mouse Jiggler(Mouse Jiggler)或Caffeine等应用程序(Apps)可以让您的 PC 保持清醒,而无需更改电源设置。他们通过模拟鼠标移动或按键来做到这一点,让操作系统认为你是活跃的。由于它们也更易于使用,即使您可以修改设置,您也可能更喜欢这条路线。
我们还提供有关Windows 何时不进入睡眠状态(Windows does not go to sleep when it should)以及如何防止鼠标或 USB 设备唤醒 Windows 的(how to prevent a mouse or USB device from waking Windows)故障排除指南。
How to Keep Your Windows PC Awake Without Touching the Mouse
Haνing your PC automatically enter sleep mode when inactive is useful. It conserves power and reduces system strain. If you don’t like this feature, though, it’s easy to disable.
Many people find the auto-sleep feature unwelcome. Whether you are a power user running multiple computers at once or just someone who juggles other tasks while using their PC, you need a way to keep your computer awake without interaction.
So here are all the ways you can prevent your PC from automatically logging off without having to touch the mouse or the keyboard manually.
Modify Windows Power Options
The most straightforward method for disabling auto-sleep is to change the Windows Power settings. This approach doesn’t require any additional software to work, making it the best option for those looking to avoid installing anything.
Keep in mind, though, that changing the power options can be a hassle if you are looking to flip back and forth between various power modes and want your PC to keep awake temporarily. Using a third-party application is better in such cases since it gives you a handy toggle to enable and disable automatic hibernation.
- First, open Edit Power Plan by searching for it from the Start Menu. Just type Power Options to find the respective app on Windows 10 and Windows 11. You can also head to the Control Panel > System And Security to find Power Options, though searching for it is faster.
- You’re presented with two options: Turn off the display and Put the computer to sleep. For laptops, these options are further divided into two categories: Battery and Plugged in. You can specify the period before the computer sleeps in the drop-down menu; just change that duration to Never to prevent it from automatically powering down.
Use Third-Party Software
Windows uses the state of running processes to determine when the system is idle. If there are no actively interacting programs running in the foreground, Windows assumes you are not present and puts the computer to sleep.
Most of the apps listed here work by artificially triggering mouse or keyboard movement every few seconds. This has the same effect as carrying out those actions manually, keeping the PC from going into standby mode.
Mouse Jiggler, as the name suggests, simply jiggles your mouse pointer to prevent the computer from going to sleep. This has the added benefit of preventing screensavers from taking over the display, which is the original purpose of the app.
You may find the random mouse movements irritating if you are actively staring at the screen (for example, if you are reading a document on-screen). For this, there is a Zen jiggle mode, which pushes the pointer into the background and does not interfere with your viewing experience.
The application does not require installation, so you can keep it on a pen drive and carry it with you. You just have to extract the downloaded zip file and run it. Do note that the software needs .NET to work, and will install it if not present.
Caffeine is a small app that takes a different approach to keep the system awake. Instead of using mouse cursor movements that may interfere with your work or keypresses that conflict with typing or other things, it uses the F15 key.
The F15 key is chosen to have minimal chance of interference with typical usage—you probably don’t even know how to press it—while also registering as valid input. Caffeine is also a pretty lean application, minimizing to the system tray in the taskbar instead of a whole window.
You can double-click or right-click on the coffee mug icon to toggle the app. A filled coffee mug means it is enabled, while an empty pot means Caffeine is disabled. There are also a bunch of command-line switches to customize the app’s behavior, from the duration between the simulated keypresses to which window it activates on.
So far, we have seen third-party apps for keeping your PC awake, but there is also an official tool that does the same thing. Microsoft PowerToys gives Windows power users many valuable features that usually require different software to implement.
You can pin a window to the top, remap keys, resize images, and of course, keep your PC awake without user interaction. The feature we are interested in is appropriately named PowerToys Awake and comes bundled with the PowerToys installation by default.
You can install this collection of utilities on both Windows 10 and Windows 11 through the Microsoft Store or the Github release. As an officially supported Windows app, it features a much better user interface than many of the tools we have seen above. You just need to Enable Awake, and the tool will take care of everything.
What Is the Best Way to Keep Your Computer Awake Without Interaction?
For most people, the best way to keep your PC awake without input is to modify the power-saving settings. With the right options, you can configure your computer to stay awake indefinitely.
The only problem with this approach is that you don’t always have admin privileges to the computer you are working on. This makes it impossible to change the Power & Sleep settings on the PCs of your office, etc.
That is where third-party tools come in. Apps like Mouse Jiggler or Caffeine can keep your PC awake without changing the power settings. They do this by simulating mouse movement or key presses, making the OS think you are active. As they are also much easier to use, you may prefer this route even when you can modify the settings.
We also have troubleshooting guides for when Windows does not go to sleep when it should and how to prevent a mouse or USB device from waking Windows.