cxr*_*ers 6 xorg screensaver power-management display-manager xscreensaver
很长一段时间以来,我一直在努力防止我的屏幕每 20 分钟变黑一次。我知道有许多互锁的应用程序层可以做到这一点,实现这种行为一点也不简单。这是一个很好的背景阅读资源:
我不明白xset 控制的一些参数。一种是“expose”或“noexpose”设置。另一个是“周期”时间。
Screen Saver:
prefer blanking: no allow exposures: no
timeout: 0 cycle: 0
Run Code Online (Sandbox Code Playgroud)
您可以通过键入“xset s Expose”或“xset s noexpose”来更改“允许曝光”的值。独立地,您可以使用 'xset s 0 0' 控制 'timeout' 和 'cycle' 的值。但是,我无法在任何地方找到这些参数的作用的体面解释。如果你用谷歌搜索,你会发现很多人在修改这些参数以防止屏幕空白而不了解他们做什么。如果您阅读了“xset”联机帮助页,则会得到以下信息:
The 'expose' flag sets the preference to allow window
exposures (the server can freely discard window contents),
while 'noexpose' sets the preference to disable screen saver
unless the server can regenerate the screens without causing
exposure events.
Run Code Online (Sandbox Code Playgroud)
我无法理解这一点。哪个值更适合禁用消隐?
它接着说:
The length and period parameters for the
screen saver function determines how long the server must be
inactive for screen saving to activate, and the period to
change the background pattern to avoid burn in.
Run Code Online (Sandbox Code Playgroud)
我想通过“时段参数”它们是指“第二数值参数xset s N N,其被描述为cycle通过xset q”?这仅与 xscreensaver 的某种交替模式模式有关?同样,我主要想知道哪个值最适合禁用屏幕消隐。
好的,我相信公开的参数与屏幕保护程序后面是否显示窗口和内容有关(这与某些在屏幕上绘制的屏幕保护程序等有关)。所以简而言之,您的桌面是否暴露。这是一个有根据的猜测,我认为使用的术语很奇怪。
xset s N N当你引用它时,我是如何理解这一点的,其工作原理如下,
xset s 60 10
Run Code Online (Sandbox Code Playgroud)
将设置屏幕保护程序在活动 60 秒后启动,如变量 60 所示,10 将强制背景图像(如果您使用的是您的桌面xset s expose)每 10 次(分钟或秒)更改一次。这在手册中被称为 s [Length[Period]](不活动的长度和刷新之间的时间段)
其他一些有趣的命令是s blank / s noblank如果您希望屏幕变黑而不是屏幕保护程序,这些命令是负责的。
xset s blank
Run Code Online (Sandbox Code Playgroud)
预装要启用此功能或
xset s default
Run Code Online (Sandbox Code Playgroud)
设置出厂默认值
对你来说,如果你想要它尽可能地关闭,一次一个
sudo -i
xset default
xset s noexpose
xset s noblank
xset s off
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6775 次 |
| 最近记录: |