如何关闭xwindow屏幕保护程序?

如何关闭xwindow屏幕保护程序?

我正在使用 xfce-desktop 环境。我想关闭屏幕保护程序。我尝试过的:

  1. xset s 0 0

  2. xset s off

sleep 1; xset s off
sleep 1; xset s noblank

命令xset q结果:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  no    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  catalogue:/etc/X11/fontpath.d,built-ins
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On

不工作。我的屏幕仍会转到睡眠模式。有人可以给我一些建议吗?提前致谢

答案1

xset -dpms应该这样做。

你看,它的待机、挂起、关机时间都设置为600秒10分钟。

我没有使用 xfce 的经验,但是链接xfce 禁用 dpms也应该有效。

相关内容