对于计算机用户来说,将显示器设置为在一段时间不活动后关闭通常是一种很好的做法。这很好,有几个原因。路过您计算机的人(例如在工作中)无法立即看到您屏幕上的内容。此外,关闭的监视器或显示器没有运行,从而为您节省电费。
当然,有时您肯定不想关闭显示器。在线(Online)视频并不总是注册为“活动”,因此即使您可能正在愉快地观看最新的 YouTube 作品或玩网络浏览器游戏,您也可能会发现您的显示器在不合时宜的时刻变暗了。
在上一篇文章中,我们讨论了一个名为Caffeine(Caffeine)的便捷实用程序,它可以在满足某些条件时让您的计算机保持清醒。这是一种类似手术刀的方法。在本文中,我们将使用一些不那么精致的东西。在这里,我们将向您展示如何配置电源和屏幕保护程序设置,以便您的显示器现在只在您关闭系统时变暗或关闭。
第一步是打开控制面板。在Ubuntu中,您可以通过访问系统菜单下的系统设置(System Settings)选项来执行此操作。
您现在应该看到一组相当标准的控制面板选项。
我们将使用名为Brightness and Lock的控制面板,您会(很可能)在第一行找到它。
您现在应该看到类似这样的内容。
我们要设置两个设置,以确保我们的系统在一段时间不活动后不会关闭显示器,并且屏幕不会变暗以节省电量。首先,取消勾选(First)Dim screen to save power选项旁边的复选框,如下图所示。
接下来,将“不活动时关闭屏幕”(Turn screen off when inactive for:)选项更改为“从不”(Never)。
配置这两个设置后,一切都应该正常工作,但您可能会发现并非一切都像看起来那样。在Ubuntu 12.04中,这可能是由于屏幕保护程序造成的。什么屏保?尽管有各种外观,但它就在那里,尽管不再有屏幕保护(Screensaver)程序控制面板。相反,会出现一个空白屏幕(这与您的显示器关闭不同)。要配置它,我们需要首先安装XScreensaver包。为此,请在终端窗口中键入sudo apt-get install xscreensaver 。
现在打开XScreensaver控制面板。它不会出现在System Settings中,但是如果您在(System Settings)Unity Dash中键入“screensaver” ,您会看到它。
第一次执行此操作时,您可能会收到一个警告窗口,通知您屏幕保护程序守护程序已在运行。
继续并单击以关闭Gnome-Screensaver守护程序(这实际上只是屏幕变暗功能)。现在打开XScreensaver守护程序。
您现在应该看到主要的 XScreensaver 控件。
现在(终于!),继续更改模式:(Mode:)设置为 <禁用屏幕保护程序(在下拉菜单中找到)。
现在继续并关闭 XScreensaver 控件。你现在应该完成了。屏幕不应关闭或变暗(因为我们在亮度(Brightness)和锁定(Lock)控制面板中进行了更改),并且由于用新安装和配置的 XScreensaver 替换了Gnome-Screensaver,这也应该得到照顾。
Configure Ubuntu to Not Dim or Turn Off An Inactive Display
It’s typicallу good рractice for computer users to have their displaуs set to turn оff after a certain period of inactivity. It’ѕ good for a couple reasons. People passing by your computer (at work, for instance), can’t immediately see what’s on your ѕcreen. Also, a monitоr or display that’s turned off isn’t running, thereby saving you money on уoυr eleсtric bill.
Of course, there are certainly times you don’t want your display turning off. Online videos don’t always register as “activity” so even though you might be happily watching the latest YouTube opus, or playing a web browser game, you might find your display dimming at an inopportune moment.
In a previous article, we discussed a handy utility called Caffeine that keeps your computer awake if certain conditions are met. That’s a scalpel-like approach. In this article, we’ll use something a bit less refined. Here we’ll show you how to configure your power and screensaver settings so that your monitor should now only dim or turn off when you shut down your system.
The first step is to open up the control panel. In Ubuntu you can do this by accessing the System Settings option under the System menu.
You should now see a fairly standard set of control panel options.
We’ll be using the control panel called Brightness and Lock, which you’ll find (more than likely) in the top row.
You should now see something like this.
There are two settings we want to set, to ensure that our system doesn’t turn off the display after a period of inactivity, and that the screen isn’t dimmed to save power. First, untick the checkbox beside the Dim screen to save power option, as shown below.
Next, change the Turn screen off when inactive for: option to Never.
Once those two settings are configured, everything should work correctly, but you may find that not all is as it seems. In Ubuntu 12.04, this could be due to the screensaver. What screensaver? Despite all appearances, it is there, although there’s no longer a Screensaver control panel. Instead, a blank screen appears (this is different than your display turning off). To configure this, we’ll need to first install the XScreensaver package. To do this, type sudo apt-get install xscreensaver into a Terminal window.
Now open the XScreensaver control panel. It doesn’t show up in the System Settings, but if you type “screensaver” in the Unity Dash, you’ll see it.
The first time you do this, you may find that you receive a warning window, informing you that a screensaver daemon is already running.
Go ahead and click to turn off the Gnome-Screensaver daemon (which is really only the screen dimming feature). Now turn on the XScreensaver daemon.
You should now see the main XScreensaver controls.
Now (finally!), go ahead and change the Mode: setting to <disable screensaver (found in the drop-down menu).
Now go ahead and close the XScreensaver controls. You should now be done. The screen should not turn off or dim (because of the changes we made in the Brightness and Lock control panel), and thanks to replacing the Gnome-Screensaver with the newly-installed and configured XScreensaver, that should be taken care of as well.