机器型号:戴尔380
系统:Linux操作系统
使用图形界面启动后,在开始菜单里-》关机,显示器、鼠标、键盘瞬间断电,但是主机保持原状,当ssh远程可以登录该主机,可以成功。
为了找到不能关机的原因:
第一步:ssh状态重新启动startx
[root@localhost ~]# startx
xauth: creating new authority file /root/.serverauth.3281
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
第二步:删除老的X0_lock文件
[root@localhost ~]# rm -rf /tmp/.X0-lock
第三步:重启startx
[root@localhost ~]# startx
xauth: creating new authority file /root/.serverauth.3336
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already run
ning
第四步:查看X的log记录
[root@localhost ~]# cat /var/log/Xorg.0.log
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
第五步:重新启动另外一个Xserver。参考http://www.x.org/wiki/FAQErrorMessages
[root@localhost ~]# startx -- :1
xauth: creating new authority file /root/.serverauth.3863
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-128.7AXS3 x86_64 Asianux
Current Operating System: Linux localhost.localdomain 2.6.18-128.7NFSxen #1 SMP Sun Dec 26 23:41:47 EST 2010 x86_64
Build Date: 26 August 2010
Build ID: xorg-x11-server 1.1.1-48.52.1NFS
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Thu Mar 31 17:14:22 2011
(==) Using config file: "/etc/X11/xorg.conf"
终端一直处于此状态,显示器没有启动成功。看来不是显示的问题,怀疑是电源驱动的问题。那就升级一下acpid包吧,先看下已安装的版本是acpid-1.0.4-7
待续...