错误:一段时间后无法打开显示:(null)

错误:一段时间后无法打开显示:(null)

每次经过一定时间后,任何运行图形程序的尝试都会导致错误“无法打开显示”。

例如:

[shhdup@localhost ~]$ LANG=C xterm 
No protocol specified
xterm: Xt error: Can't open display: :0

[shhdup@localhost ~]$ LANG=C xdotool getactivindiw
No protocol specified
Error: Can't open display: (null)
Segmentation fault (core dumped)

一些系统信息:

Linux localhost.localdomain 3.10.6-2-ARCH #1 SMP PREEMPT Tue Aug 13 09:47:01 CEST 2013 x86_64 GNU/Linux
i3 version 4.6 (2013-08-07, branch "tags/4.6") © 2009-2013 Michael 

Stapelberg and contributors
X.Org X Server 1.14.2
Release Date: 2013-06-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.9.7-1-ARCH x86_64 
Current Operating System: Linux localhost.localdomain 3.10.6-2-ARCH #1 SMP PREEMPT Tue Aug 13 09:47:01 CEST 2013 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=3bca1b94-7f18-4ec7-a589-e50f295db4fc rw quiet
Build Date: 01 July 2013  10:48:42AM

Current version of pixman: 0.30.2

相关内容