锁定屏幕时,我的显示器/屏幕会立即关闭。
我不希望这种情况立即发生,更像是在 30 分钟左右之后发生。那可能吗?
我想从终端将“不活动 x 分钟时关闭屏幕”设置(在亮度设置中)设置为“从不”,但我找不到正确的命令。
这将在可执行文件中用于更改 Ubuntu 实时安装的一些设置。
编辑:
由于更多涉及的原因,我想更改这个独立于屏幕保护程序设置的特定设置(我认为)。
很长一段时间以来,我一直在努力防止我的屏幕每 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 …Run Code Online (Sandbox Code Playgroud) xorg screensaver power-management display-manager xscreensaver
我想阻止监视器在 ubuntu 16.04 中进入睡眠状态。我在 Ubutnu 14.04 中使用 /etc/X11/xorg.conf 文件,其中写有以下几行。
Section "ServerFlags"
Option "BlankTime" "60"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Run Code Online (Sandbox Code Playgroud)
它在 Ubuntu 14.04 中运行良好,但在 Ubuntu 16.04 中不起作用。
在研究期间,我发现 xorg.conf 在 Ubuntu 16.04 中被删除。我想在 Ubuntu 16.04 中做同样的事情。如果有人对此有任何想法,请告诉我。
谢谢。