LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: datou1301

做blfs-20050305时配置Xorg-6.8.1出错,请指导。

[复制链接]
发表于 2005-3-9 20:14:24 | 显示全部楼层
把你主系统的xorg.conf cp 到lfs /etc/X11下 然后startx试试。

把这个xorg.conf.new的内容贴上来看看。

root@localhost:~# X -config ~/xorg.conf.new
这是在什么环境下执行的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 20:43:43 | 显示全部楼层
在主系统的/ro ot 目录下找不到xorg.conf文件
我的/etc/sysconfig/mouse文件,在lfs系统中鼠标能活动.
# Begin /etc/sysconfig/mouse

MDEVICE="/dev/input/mice"
PROTOCOL="imps2"
GPMOPTS=""

# End /etc/sysconfig/mouse

xorg.conf.new文件
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
      Identifier "Mouse0"
      Driver "mouse"
      Option "rotocol" "imps2"
      Option "Device" "/dev/input/mice" -->/dev/psaux
EndSection

Section "Monitor"
        #DisplaySize          320   240        # mm
        Identifier   "Monitor0"
        VendorName   "TW"
        ModelName    "309"
### Uncomment if you don't want to default to DDC:
#        HorizSync    30.0 - 70.0
#        VertRefresh  50.0 - 150.0
        Option            "DPMS"
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      "i810"
        VendorName  "Intel Corp."
        BoardName   "82845G/GL [Brookdale-G] Chipset Integrated Graphics Device"
        BusID       "CI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

root@localhost:~# X -config ~/xorg.conf.new

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.6.9-5.EL i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date: 09 March 2005
        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.0.log", Time: Wed Mar  9 20:35:32 2005
(++) Using config file: "/root/xorg.conf.new"
Parse error on line 39 of section InputDevice in file /root/xorg.conf.new
        " -ev/input/mice" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

root@localhost:~#

我的确很菜,辛苦大哥你了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 20:52:42 | 显示全部楼层
主系统的xorg.conf文件
# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
# Or if you just want both to be control, use:
#        Option        "XkbOptions"        "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "TW0309"
        DisplaySize  320        240
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 150.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel 845"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection
回复 支持 反对

使用道具 举报

发表于 2005-3-9 21:07:19 | 显示全部楼层
哦,不好意思,我没说明白。

Option "Device" "/dev/input/mice" -->/dev/psaux
应该是
Option "Device" "/dev/psaux"

/dev/psaux就是你的鼠标设备。  

执行 X -config ~/xorg.conf.new
不要在chroot环境下执行,在真实的lfs环境下。

你可以把你主系统的/etc/X11/xorg.conf复制到/mnt/lfs/etc/X11下
做为lfs系统的配置文件。
然后startx看看能不能启动X。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 21:23:15 | 显示全部楼层
cp 主系统的xorg.conf到/etc/X11下也不能startx。
明天再做吧,虽然没成功我也学到了不少东西,真的好谢你。
回复 支持 反对

使用道具 举报

发表于 2005-3-10 14:50:06 | 显示全部楼层
当执行这个命令
root@localhost:~# X -config ~/xorg.conf.new
时出现超频保护提示,不能进入X!复制主系统的xorg.conf也是出现这种情况!
回复 支持 反对

使用道具 举报

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

本版积分规则

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