LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2009-6-30 21:42:10 | 显示全部楼层 |阅读模式
好不容易,系统装上了,现在装X。

参考:
http://www.gentoo.org/doc/zh_cn/xorg-config.xml
http://www.cosy.sbg.ac.at/~shuber/misc-t400.php

xorg.conf配置如下:

Section "Files"
        #RgbPath      "/usr/share/X11/rgb"
        #ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "GLcore"
        Load  "glx"
        Load  "dri"
        Load  "xtrap"
        Load  "record"
        Load  "extmod"
        Load  "freetype"
        Load  "type1"
        Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver       "kbd"
        Option      "XkbModel"   "pc105"
        Option      "XkbLayout"  "de"
        Option      "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
        Option      "Emulate3Buttons"
EndSection

Section "InputDevice"
        Identifier  "Touchpad"
        Driver    "synaptics"
        Option    "AlwaysCore"
        Option    "Device" "/dev/input/mouse1"
        Option    "rotocol" "auto-dev"
        Option    "SendCoreEvents"  "true"
        Option    "LeftEdge"    "1632"
        Option    "RightEdge"     "5312"
        Option    "TopEdge"     "1575"
        Option    "BottomEdge"    "4281"
        Option    "FingerLow"     "25"
        Option    "FingerHigh"    "30"
        Option    "MaxTapTime"    "180"
        Option    "MaxTapMove"    "220"
        Option    "VertScrollDelta"   "100"
        Option    "MinSpeed"    "0.06"
        Option    "MaxSpeed"    "0.12"
        Option    "AccelFactor"     "0.0010"
        Option    "VertEdgeScroll"  "on"
        Option    "HorizEdgeScroll"   "on"
        # Option HorizScrollDelta""0"                              
        Option    "SHMConfig"   "on"
EndSection

Section "InputDevice"
        Identifier  "Trackpoint"
        Driver      "mouse"
        Option "CorePointer"
        Option "Device" "/dev/input/mice"
        Option "rotocol" "Auto"
        Option "Emulate3Buttons"
        Option "Emulate3Timeout" "50"
        #When pressing mid trackpoint button and mouse goes up/down a wheel
        #scrolling is emulate. If this is enabled, and device=xxx/mice, then
        #scrolling in e.g. gimp by pressing mid btn and moving around is
        #not possible!
        Option "EmulateWheel" "off"
        Option "EmulateWheelTimeout" "200"
        Option "EmulateWheelButton" "2"
        Option "XAxisMapping" "6 7"
        Option "YAxisMapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                    # [<bool>]
        #Option     "SWcursor"                   # [<bool>]
        #Option     "ColorKey"                   # <i>
        #Option     "CacheLines"                 # <i>
        #Option     "Dac6Bit"                    # [<bool>]
        #Option     "DRI"                        # [<bool>]
        #Option     "NoDDC"                      # [<bool>]
        #Option     "ShowCache"                  # [<bool>]
        #Option     "XvMCSurfaces"               # <i>
        #Option     "ageFlip"                   # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Intel GMA X4500HD (IGP) max.384MB shared memory"
        BusID       "CI:0:2:0"

EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"

        DefaultDepth 16

        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                #DRI does not work above 2048x2048 for pre-965
                #intel cards. Size is determined by xorg when
                #X is launched such that monitor resolutions fit.
                #Virtual 2048 2048
        EndSubSection
EndSection

环境已经更新,然后敲startx,提示错误:
(EE) Failed to load module "freetype"(modele does not exist, 0)
...

Fatal server error:
no screens found
giving up.
xinit: No such file or directory(errno 2): unable to connect to X server
xinit: No such process(errno 3): Server error.


给点力量吧。gentoo太难装了
发表于 2009-6-30 21:57:45 | 显示全部楼层
装hal了吗,给xorg-server添加hal的IUSE,现在可以不要/etc/X11/xorg.conf了。
回复 支持 反对

使用道具 举报

发表于 2009-6-30 22:35:52 | 显示全部楼层
Post by coderoar;2002472
装hal了吗,给xorg-server添加hal的IUSE,现在可以不要/etc/X11/xorg.conf了。
这两天论坛上面见了好几回IUSE,改名字了么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 23:08:50 | 显示全部楼层
Post by coderoar;2002472
装hal了吗,给xorg-server添加hal的IUSE,现在可以不要/etc/X11/xorg.conf了。


hal如何装?如何给xorg-server添加hal的IUSE?

是不是要重新编译内核?还是在emerge的时候要加什么参数?

谢谢!
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:09:55 | 显示全部楼层
Post by jsun;2002488
这两天论坛上面见了好几回IUSE,改名字了么?

就是软件包特定的USE,ebuild里是这么写的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 23:13:13 | 显示全部楼层
Post by coderoar;2002497
就是软件包特定的USE,ebuild里是这么写的。


不好意思,还是没看明白,是在use中加什么?

英文的帮助看的稀里糊涂的
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:17:42 | 显示全部楼层
用 hal 最省事。
如果不的话,试试下面几个方法:

1, 去掉 Load "freetype" 试试看。不过估计解决不了问题。
2, 用 root 跑 startx 试试看。
3, 用 root 用户, 跑 Xorg -configure 生成个 conf 文件试试。如果OK,参考生成的 conf 文件去修改 /etc/X11/xorg.conf。
4, 都不行的话,贴个 /var/log/Xorg.log 来看看。
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:18:33 | 显示全部楼层
Post by forrestxz;2002496
hal如何装?如何给xorg-server添加hal的IUSE?

是不是要重新编译内核?还是在emerge的时候要加什么参数?

如果你没有装hal,添加USE后会自动安装,"hal"这个USE最好加入/etc/make.conf:加到"USE="那里。

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

弄好了,就把/etc/X11/xorg.conf移到别处,然后startx试试。
回复 支持 反对

使用道具 举报

发表于 2009-6-30 23:21:22 | 显示全部楼层
Fatal server error:
no screens found
giving up.
xinit: No such file or directory(errno 2): unable to connect to X server
xinit: No such process(errno 3): Server error.
看起来似乎你没有安装 xinit, hal不hal的随便你自己选择了。
emerge xinit 先
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 23:21:36 | 显示全部楼层
Post by performcanhe;2002502
用 hal 最省事。
如果不的话,试试下面几个方法:

1, 去掉 Load "freetype" 试试看。不过估计解决不了问题。
2, 用 root 跑 startx 试试看。
3, 用 root 用户, 跑 Xorg -configure 生成个 conf 文件试试。如果OK,参考生成的 conf 文件去修改 /etc/X11/xorg.conf。
4, 都不行的话,贴个 /var/log/Xorg.log 来看看。


谢谢指点!

这个我屏蔽过,不行,用root跑也不行。

我要装的机器还是行命令阶段,步知道如何贴。

我还是实验一下楼上的方法吧,谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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