ubuntu 16.04 LTS 64bit-屏幕每15秒变黑一次


30

我完全茫然。在新安装的Ubuntu 16.04 LTS 64bit上,我的笔记本电脑屏幕每15秒开始变黑。如果我移动鼠标或单击,则显示返回(我不必登录)。由于这种情况每15秒钟发生一次,因此笔记本电脑实际上无法使用。看起来像是屏幕保护程序的行为,但可能是任何事情。

如果输入,sudo lshw -C video | grep product:我会得到-

product: Broadwell-U Integrated Graphics
product: GM108M [GeForce 940M]

如果输入,sudo lshw -C video我会得到-

  *-display
       description: VGA compatible controller
       product: Broadwell-U Integrated Graphics
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:44 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:4000(size=64)
  *-display UNCLAIMED
       description: 3D controller
       product: GM108M [GeForce 940M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:f1000000-f1ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128)

如果输入,xset s off这似乎没有效果。

如果输入,gnome screensaver我会得到-

** (gnome-screensaver:5014): WARNING **: screensaver already running in this session

如果输入,xscreensaver我会得到-

The program 'xscreensaver' is currently not installed. You can install it by typing: sudo apt install xscreensaver

如果输入,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:  500    repeat rate:  33
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  5/1    threshold:  5
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x22    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

如果我去设置>系统设置...并进行了更改Brightness and Lock,则无需停留,Power否则Screen Display对问题没有影响。我不知道该怎么办。任何帮助,将不胜感激。


我有完全相同的问题:升级到16.04后,屏幕在15秒后变黑。我有一台联想e520笔记本电脑。
guettli

Answers:


49

我已经解决了这个问题。我不知道为什么触发了问题。我不知道问题出在哪里。我不知道为什么或如何使用我的解决方案。

我猜测是由于显示电源管理信号或DPMS引起的。我猜想DPMS已由我安装的东西打开,并且它的默认设置为15秒。我猜想DPMS会在零活动15秒(默认值)后通过X服务器关闭显示器,以“管理电源”。我打开控制台并输入

xset -dpms

这将永久关闭DPMS,而不仅仅是关闭会话。问题很快就消失了。


3
对我来说xset -dpms,重新启动后会使用它的影响。如何使它永久化?
guettli

2
这个问题已经在Ubuntu 17.04(Gnome 3.24)中再次出现,但是可以解决。永久性解决方案,请参见以下答案: askubuntu.com/a/324286/115115
andy.holmes,

2
在这种情况下,关闭DPMS似乎是一个非常糟糕的解决方案,会导致笔记本电脑耗电量增加以及电池耗电更快?
jdpipe
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.