LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: forrestxz

[给点力量吧]现在是X界面装不上呀

[复制链接]
 楼主| 发表于 2009-6-30 23:24:15 | 显示全部楼层
Post by coderoar;2002503
如果你没有装hal,添加USE后会自动安装,"hal"这个USE最好加入/etc/make.conf:加到"USE="那里。

如果你使用开源驱动(比如使用Intel的驱动),就要在内核里编译相关的DRM模块,如果是闭源的话,好像就不用了。

弄好了,就把/etc/X11/xorg.conf移到别处,然后startx试试。


好,谢谢指点!

use中加一个的标志的话

这样的话,是否要重新emerge下x11?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 23:26:47 | 显示全部楼层
Post by Blahster;2002504
看起来似乎你没有安装 xinit, hal不hal的随便你自己选择了。
emerge xinit 先



谢谢!

我好像是没有安装xinit,
不好意思,从手册上:
http://www.gentoo.org/doc/zh_cn/xorg-config.xml
没有提及要装xinit呀:(

实验室要关门了,只能明天试了
:(
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:31:08 | 显示全部楼层
Post by Blahster;2002504
看起来似乎你没有安装 xinit, hal不hal的随便你自己选择了。
emerge xinit 先
  1. ~ # equery depends xinit
  2. * Searching for xinit ...
  3. x11-base/xorg-server-1.6.1.901-r4 (>=x11-apps/xinit-1.0.8-r3)
复制代码

xorg-server依赖xinit,显然不应该是没安装。
Post by forrestxz;2002507

use中加一个的标志的话

这样的话,是否要重新emerge下x11?

应该"emerge -aDNqv world"--因为那个是全局的,可以让所有程序支持hal。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 23:33:01 | 显示全部楼层
Post by coderoar;2002511
  1. ~ # equery depends xinit
  2. * Searching for xinit ...
  3. x11-base/xorg-server-1.6.1.901-r4 (>=x11-apps/xinit-1.0.8-r3)
复制代码


xorg-server依赖xinit,显然不应该是没安装。


哈哈,又是一个陷阱。

那么装KDE,gnome也必须先安装xinit?
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:37:01 | 显示全部楼层
Post by forrestxz;2002512
哈哈,又是一个陷阱。

那么装KDE,gnome也必须先安装xinit?

安装xorg-server之前会自动安装xinit。而KDE、GNOME是依赖xorg-server的,所以之前必定安装了xinit。
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:47:25 | 显示全部楼层
那两行报错是 xinit 输出的吧,应该已经装了xinit

另外,如果编译时候没有加hal和dbus也是可以启动X的。
不知道楼主编译内核有没有编译DRM呢,如果使用开源驱动是需要在内核里面编译DRM的。

楼主还是先看下 log 吧,不要瞎弄,编译太费时间了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-1 10:13:21 | 显示全部楼层
Post by hpo3;2002517
那两行报错是 xinit 输出的吧,应该已经装了xinit

另外,如果编译时候没有加hal和dbus也是可以启动X的。
不知道楼主编译内核有没有编译DRM呢,如果使用开源驱动是需要在内核里面编译DRM的。

楼主还是先看下 log 吧,不要瞎弄,编译太费时间了


谢谢帮助,log贴不上来,郁闷
回复 支持 反对

使用道具 举报

发表于 2009-7-1 14:31:37 | 显示全部楼层
前面问到 IUSE,解释一下。

USE是你在/etc/make.conf中设置的叫USE。这个变量最终的值受/etc/make.conf和/etc/make.profile/make.defaults综合影响。

IUSE是在ebuild申明哪些USE标志对这个程序有效的。简单的说,你在USE中加入了"bluetooth"了,但是OpenOffice没有蓝牙支持,所以无论你设置不设置bluetooth对OpenOffice没有影响的。
回复 支持 反对

使用道具 举报

发表于 2009-7-1 20:58:23 | 显示全部楼层

我的xorg.conf文件

前面看到你的机器是T400。跟我的机器一样。

给你参考下我的xorg.conf



  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection

  7. Section "Monitor"
  8.         Identifier   "Monitor0"
  9.         VendorName   "Monitor Vendor"
  10.         ModelName    "Monitor Model"
  11. EndSection

  12. Section "Device"
  13.         Identifier  "Card0"
  14.         Driver      "radeon"
  15.         Option      "DRI"                   "on"
  16. EndSection

  17. Section "Screen"
  18.         Identifier "Screen0"
  19.         Device     "Card0"
  20.         Monitor    "Monitor0"
  21.         SubSection "Display"
  22.                 Viewport   0 0
  23.                 Depth     24
  24.                 Modes   "1440x900"
  25.         EndSubSection
  26. EndSection

  27. Section "InputDevice"
  28.         Identifier  "Keyboard0"
  29.         Driver      "kbd"
  30. EndSection

  31. Section "InputDevice"
  32.         Identifier  "Mouse0"
  33.         Driver      "mouse"
  34.         Option      "Protocol" "auto"
  35.         Option      "Device" "/dev/input/mice"
  36.         Option      "ZAxisMapping" "4 5 6 7"
  37. EndSection

  38. Section "ServerFlags"
  39.         Option "AllowEmptyInput" "false"
  40. EndSection

  41. Section "DRI"
  42.     Mode 0666
  43. EndSection

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-1 21:05:22 | 显示全部楼层
谢谢!

我估计问题不是出在xorg.conf上。
因为,我又重新安装了系统:(,并且在make.conf中加上了hal关键字。

还是类似的问题,错误提示:
unable to locate/open config file
new driver is "intel"
...
(EE)No drivers available.

Fatal server error:
no screens found
xinit: server error.


我估计问题出在,我的内核中没有加载显卡驱动,不知道这判断是否正确。
回复 支持 反对

使用道具 举报

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

本版积分规则

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