LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1028|回复: 11

不能启动X环境

[复制链接]
发表于 2009-9-6 15:41:10 | 显示全部楼层 |阅读模式
xauth: creating new authority file /root/.serverauth.27741
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.29 i686
Current Operating System: Linux localhost 2.6.29 #1 SMP Fri Sep 4 21:29:23 CST 2009 i686
Build Date: 06 September 2009 08:20:27AM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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.0.log", Time: Sun Sep 6 15:29:20 2009
(EE) Unable to locate/open config file
New driver is "nv"
(==) Using default built-in configuration (30 lines)
Fatal server error:
Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.


怎么回事。

X -configure
也不行了

帮忙看看
发表于 2009-9-6 16:03:00 | 显示全部楼层
什么显卡。。
lspci

emerge --info

贴出来
回复 支持 反对

使用道具 举报

发表于 2009-9-6 16:06:21 | 显示全部楼层
你用的是nvidia私有驱动还是开源驱动啊。如果用的是nvidia驱动的话,可能内核设置有点问题吧。你是不是两种驱动一起装了啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-6 18:19:59 | 显示全部楼层
Post by zzwzzw;2024486
你用的是nvidia私有驱动还是开源驱动啊。如果用的是nvidia驱动的话,可能内核设置有点问题吧。你是不是两种驱动一起装了啊。


好不容易搞起了X环境

我是用xorgconfig配置的X 环境

用GDM 进去。。
没有任何反应。

在googel.com上
找到
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection

Section "ServerFlags"
        Option  "AllowEmptyInput"       "false"
EndSection

写入 /etc/x11/xorg.conf
里面还是鼠标,键盘,不能用

实在没招了,还请帮助。。
回复 支持 反对

使用道具 举报

发表于 2009-9-6 18:23:11 | 显示全部楼层
我的配置你可以参考下

  1. //etc/X11/xorg.conf
  2. ------------------------------------------------------------------------------------
  3. Section "ServerLayout"
  4.     Identifier     "X.org Configured"
  5.     Screen      0  "Screen0" 0 0
  6. EndSection

  7. Section "Files"
  8.     ModulePath   "/usr/lib/xorg/modules"
  9.     FontPath     "/usr/share/fonts/misc/"
  10.     FontPath     "/usr/share/fonts/TTF/"
  11.     FontPath     "/usr/share/fonts/OTF"
  12.     FontPath     "/usr/share/fonts/Type1/"
  13.     FontPath     "/usr/share/fonts/100dpi/"
  14.     FontPath     "/usr/share/fonts/75dpi/"
  15. EndSection

  16. Section "Module"
  17.     Load  "glx"
  18.     Load  "extmod"
  19.     Load  "xtrap"
  20.     Load  "record"
  21.     Load  "GLcore"
  22.     Load  "dbe"
  23.     Load  "dri"
  24. EndSection

  25. Section "Monitor"
  26.     Identifier   "Monitor0"
  27.     VendorName   "LCD"
  28.     ModelName    "58eb"
  29.     Option         "DPMS"
  30.     HorizSync     49.68-83.46
  31.     VertRefresh   60.0-60.0
  32.     Modeline     "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  33. EndSection

  34. Section "Device"
  35.     Identifier  "Card0"
  36.     Driver      "intel"
  37.     VendorName  "Intel Corporation"
  38.     BoardName   "Mobile Integrated Graphics Controller"
  39.     BusID       "PCI:0:2:0"
  40.     Option        "XAANoOffscreenPixmaps" "true"
  41.     Option        "DRI" "true"
  42. EndSection

  43. Section "Screen"
  44.     Identifier "Screen0"
  45.     Device     "Card0"
  46.     Monitor    "Monitor0"
  47.     DefaultDepth 24
  48.     Option       "AddARGBGLXVisuals" "true"
  49.     SubSection "Display"
  50.         Viewport   0 0
  51.         Depth     24
  52.         Modes "1280x800"
  53.     EndSubSection
  54. EndSection

  55. Section "DRI"
  56.     Mode 0666
  57. EndSection

  58. section "Extensions"
  59.     Option "Composite" "Enable"
  60. Endsection
  61. ------------------------------------------------------------------------------------
  62. /etc/make.conf
  63. ------------------------------------------------------------------------------------
  64. CHOST="i686-pc-linux-gnu"
  65. CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
  66. CXXFLAGS="${CFLAGS}"

  67. FEATURES="parallel-fetch userfetch distoc"
  68. MAKEOPTS="-j3"
  69. LOFLAGS="-Wl,-O1"

  70. CCACHE_SIZE="2G"

  71. ACCEPT_KEYWORDS="x86"

  72. USE="-kde -qt3 -qt4 -ipv6 -doc xcb cli cgi real  apache2 php python q nptl nptlonly gnome xulrunner gtk cjk nls X dbus  hal gd gif rar jpg jpeg startup-notification aac ac3 alsa ffmpeg flac mad modplug musepack timidity vorbis wavpack wma win32codecs"

  73. LINGUAS="zh_CN"

  74. APACHE2_MODULES="dir mime authz_host rewrite log_config mime_magic vhost_alias"

  75. AUTOCLEAN="yes"
  76. CLEAN_DELAY=3
  77. EMERGE_WARNING_DELAY=5

  78. VIDEO_CARDS="i810 intel"
  79. ALSA_CARDS="hda-intel"
  80. SYNC="rsync://61.135.158.199/gentoo-portage"
  81. GENTOO_MIRRORS="http://61.135.158.199/ http://gentoo.gg3.net/  http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://gentoo.anheng.com.cn/gentoo/"
  82. source /usr/portage/local/layman/make.conf

复制代码
回复 支持 反对

使用道具 举报

发表于 2009-9-6 18:38:26 | 显示全部楼层
Post by l_s;2024523
好不容易搞起了X环境

我是用xorgconfig配置的X 环境

用GDM 进去。。
没有任何反应。

在googel.com上
找到
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection

Section "ServerFlags"
        Option  "AllowEmptyInput"       "false"
EndSection

写入 /etc/x11/xorg.conf
里面还是鼠标,键盘,不能用

实在没招了,还请帮助。。


这个问题我最拿手,来个彻底解决。先在make.conf 设置这个INPUT_DEVICES="evdev"然后在USE=“”加入hal。再把xorg.conf里面有关keyboard和mouse的字段全都删除或注释掉。
重新编译xorg-server.
接着你就rc-update add hald default。启动下应该可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-6 19:19:31 | 显示全部楼层
Post by zzwzzw;2024530
这个问题我最拿手,来个彻底解决。先在make.conf 设置这个INPUT_DEVICES="evdev"然后在USE=“”加入hal。再把xorg.conf里面有关keyboard和mouse的字段全都删除或注释掉。
重新编译xorg-server.
接着你就rc-update add hald default。启动下应该可以了。


谢谢大家的回复。

可是还是有点不明白。我原来装的gnome 就没有出现这个问题。
这回我把USE=“加了好多的变量。”
原来装USE=“这个是空的”

是不是因为只要给USE的话。就必须加载一些重要变量。不设USE则按eselect profile 来决定默认吗。
这是个人猜想。不果不是,请予纠正。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-6 23:41:17 | 显示全部楼层
Post by zzwzzw;2024530
这个问题我最拿手,来个彻底解决。先在make.conf 设置这个INPUT_DEVICES="evdev"然后在USE=“”加入hal。再把xorg.conf里面有关keyboard和mouse的字段全都删除或注释掉。
重新编译xorg-server.
接着你就rc-update add hald default。启动下应该可以了。


按照兄弟这个试了,还是不行的,没有任何反应。
回复 支持 反对

使用道具 举报

发表于 2009-9-7 10:15:45 | 显示全部楼层
应该行的,我就是这样弄的,这个可是标准做法啊。
哦,为了了xf86-input-evdev支持hal
可能还需要编译一遍吧。xf86-input-evdev有这个USE的。
你hal启动了吗?
还有就是你内核里选了
Device Drivers ------>
Input device support  --->
     <M>   Event interface
这个没有。这个必需的,我是编成模块的。
哦,不好意思还忘了一点,要加入plugdev组。gpasswd -a yourname plugdev。最后,xorg.conf里面有关InputDevice都可以去掉的。如果还不行,那就再加一句
Section "ServerLayout"
Option         "AllowEmptyInput" "off"
EndSection

这样还死活不行的话我也没辄了,实在不行你就重新把make.conf里面的INPUT_DEVICES=""弄成原来的样子后再编译试试吧。
回复 支持 反对

使用道具 举报

发表于 2009-9-7 10:51:20 | 显示全部楼层
滑鼠和鍵盤沒有反應的問題請務必看置頂的FAQ裏面有完整過程。rc-update add hald default是十分必要的。
  關於USE的問題,請看Gentoo安裝手冊第3章的信息。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表