LinuxSir.cn,穿越时空的Linuxsir!

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

X window起不来了

[复制链接]
发表于 2006-5-17 14:29:03 | 显示全部楼层 |阅读模式
我的xwindow起不起来了.
系统报错:no screen found

查看日志系统这样写的:
图像显示:

Homenet login:root
password:
login[84]:root login on 'tty1'

-sh-3.00# startx
-sh:startx: command not found
-sh-3.00# cd /usr/X11R6/bin
-sh-3.00# ls -a
X                    luit                  x11perf                xkbcomp             xset   
XFree86          mkfontdir         xfs                       xlsfonts               xterm
fslsfonts           mkfontscale     xinit                     xrandr
-sh-3.00# . /XFree86
==出错==

Build Operating System:linux 2.4.20-3bigmem i686 [ELF]
Build Date :27 February 2003
Build Host :porky.devel.redhat.com

        Before report problems,check http://www.XFree86.Org/
        to make sure that you have the lastest version
Module Loader present
OS Kernel: Linux version 2.4.20-8(bhcompile @stripples.devel.redhat.com) (gcc version 3.2.2.20030222 (Red Hat Linux 3.2.2-5))#1 Thu  Mar 13 16:42:56 EST 2003
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/XFree86.0.log ",Time :Sun feb 24 20:48:06 2002
(==)Using config file :"/root/XF86Config "
(EE)No devices detected

Fatal server error:
no screens found

When reporting a problem related to a server crash ,please send the full server output ,not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.


-sh-3.00# vi /var/log/XFree86.0.log

XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0 -2)
Release Date :27 February 2003
X Protocol Version 11,Revision 0 , Release 6.6
Build Operating System:linux 2.4.20-3bigmem i686 [ELF]
Build Date :27 February 2003
Build Host :porky.devel.redhat.com

          Before report problems,check http://www.XFree86.Org/
          to make sure that you have the lastest version

Module Loader present
OS Kernel: Linux version 2.4.20-8(bhcompile @stripples.devel.redhat.com) (gcc version 3.2.2.20030222 (Red Hat Linux 3.2.2-5))#1 Thu  Mar 13 16:42:56 EST 2003
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/XFree86.0.log ",Time :Sun feb 24 20:48:06 2002
(==)Using config file :"/root/XF86Config "
(==)ServerLayout "Default Layout "
(**) | -->Screen "Screen0"(0)
(**) |     |-->Monitor "Monitor0"
(**) |     |-->Device "Videocard0"
(**) | -->Input Device "Mouse0"
(**) | -->Input Device "Keyboard0"
(**) | -->Input device "DevInputMice"
(**) FontPath set to "Unix/ :7100'
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==)   ModulesPath set to "/usr/X11R6/lib/modules"
( --)using VT number 4
(II)   Open APM successful
(II)   Modules ABI versions:
             XFree86 ANSI C Emulation :0.2
             XFree86 Video Driver :0.6
             XFree86 XInput driver :0.4
             XFree86 Server Extension:0.2
             XFree86 Font Renderer  :0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap:vendor=" The XFree86 Project "
             compiled for 4.3.0 ,module version =1.0.0
             Module class :XFree86 Font Renderer
             ABI class :XFree86 Font renderer,version 0.4
(II) Loading font bitmap
(II) LoadModule : " pcidata"
(II) Loading /usr/X1186/lib/modules/libpcidata.a
(II) Module pcidata : vendor ="The XFree86 Project"
           compiled for 4.3.0,module version =1.0.0
           ABI class:XFree86 Video Driver,version 0.6
(II) PCI robing config type using method 1
(II) PCI :Config type is 1
(II) PCI :stages = 0x03,oldVall = 0x80000060,mode1Res1 = 0x80000000
(II) PCI CI scan (all values are in hex)
(II) PCI :00:00:0: chip 1106 ,0601 card 0000,0000 rev 05 class 06,00,00 hdr 00
(II) PCI :00:01:0: chip 1106 ,8601 card 0000,0000 rev 00 class 06,04,00 hdr 01
(II) PCI :00:07:0: chip 1106 ,0686 card 1106,0000 rev 40 class 06,01,00 hdr 00
(II) PCI :00:07:1: chip 1106 ,0571 card 1106,0571 rev 06 class 01,01,8a hdr 00
(II) PCI :00:07:2: chip 1106 ,3038 card 0925,1234 rev 1a class 0c,03,00 hdr 00
(II) PCI :00:07:4: chip 1106 ,3057 card 1106,3057 rev 40 class 06,80,00 hdr 00
(II) PCI :00:07:5: chip 1106 ,3058 card 1458,a002 rev 50 class 04,01,00 hdr 00
(II) PCI :00:0a:0: chip 10ec ,8139 card 10ec,8139 rev 10 class 02,00,00 hdr 00
(II) PCI :01:00:0: chip 1023 ,8500 card 1458,4000 rev 6a class 03,00,00 hdr 00
(II) PCI :End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0),(0,0,1),BCTRL:0x0008 (VGA_EN is set)
(II) BUS 0 I/O range :
            [0] -1 0     0x00000000 - 0x0000ffff (0x10000) IX
(II) BUS 0 non-prefetchable memory range :
            [0] -1 0     0x00000000 - 0xffffffff (0x0) MX
(II) BUS 0 prefetchable memory range :
            [0] -1 0     0x00000000 - 0xffffffff (0x0) MX
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:1:0),(0,1,1),BCTRL:0x000c (VGA_EN is set)
(II) BUS 1 non-prefetchable memory range :
            [0] -1 0     0x00000000 - 0xffffffff (0x0) MX
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:7:0),(0,-1,-1),BCTRL:0x0008 (VGA_EN is set)
(--) PCI : *(1:0:0) Trident Microsystems CyberBlade/i1 rev 106,Mem @ 0xe5800000/2
(II) Addressable bus resource ranges are
            [0] -1 0 0x00000000 - 0xffffffff (0x0) MX
            [0] -1 0 0x00000000 - 0x0000ffff (0x10000) IX
(II) OS-reported resource ranges:
            [0] -1 0 0xffe00000 - 0xffffffff (0x200000) MX(B)
            [1] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) IXE(B)
            [2] -1 0 0x00f00000 - 0x000fffff (0x10000) MX
            [3] -1 0 0x000c0000 - 0x000effff (0x30000) MX
            [4] -1 0 0x000c0000 - 0x0009ffff (0xa0000) MX
            [5] -1 0 0x0000ffff - 0x0000ffff (0x1) IX
            [6] -1 0 0x00000000 - 0x000000ff (0x100) IX
(II) PCI Memory resource overlap reduced 0x0000000 from 0xe3ffffff to 0xdffffff
(II) Active PCI resource ranges :
            [0] -1  0 0xe7000000 - 0xe70000ff (0x100) MX
            [1] -1  0 0xe0000000 - 0xdfffffff (0x0) MXO
            [2] -1  0 0xe5000000 - 0xe57fffff (0x800000) MX(B)            
            [3] -1  0 0xe6000000 - 0xe061ffff (0x20000) MX(B)
            [4] -1  0 0xe5800000 - 0xe5ffffff (0x800000) MX(B)
            [5] -1  0 0x0000e800 - 0x0000e8ff (0x100) IX
            [6] -1  0 0x0000e400 - 0x0000e403 (0x4) IX
            [7] -1  0 0x0000e000 - 0x0000e003 (0x4) IX
            [8] -1  0 0x0000dc00 - 0x0000dcff (0x100) IX
            [9] -1  0 0x0000d800 - 0x0000d81f (0x20) IX
            [10] -1 0 0x0000d400 - 0x0000d41f (0x20) IX
            [11] -1 0 0x0000d000 - 0x0000d00f (0x10) IX
(II) Active PCI resource ranges after removing overlaps:
            [0] -1  0 0xe7000000 - 0xe70000ff (0x100) MX
            [1] -1  0 0xe0000000 - 0xdfffffff (0x0) MXO
            [2] -1  0 0xe5000000 - 0xe57fffff (0x800000) MX(B)            
            [3] -1  0 0xe6000000 - 0xe061ffff (0x20000) MX(B)
            [4] -1  0 0xe5800000 - 0xe5ffffff (0x800000) MX(B)
            [5] -1  0 0x0000e800 - 0x0000e8ff (0x100) IX
            [6] -1  0 0x0000e400 - 0x0000e403 (0x4) IX
            [7] -1  0 0x0000e000 - 0x0000e003 (0x4) IX
            [8] -1  0 0x0000dc00 - 0x0000dcff (0x100) IX
            [9] -1  0 0x0000d800 - 0x0000d81f (0x20) IX
            [10] -1 0 0x0000d400 - 0x0000d41f (0x20) IX
            [11] -1 0 0x0000d000 - 0x0000d00f (0x10) IX
(II) OS-reported resource ranges after removing overlaps with PCI
            [0] -1 0 0xffe00000 - 0xffffffff (0x200000) MX(B)
            [1] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) IXE(B)
            [2] -1 0 0x00f00000 - 0x000fffff (0x10000) MX
            [3] -1 0 0x000c0000 - 0x000effff (0x30000) MX
            [4] -1 0 0x000c0000 - 0x0009ffff (0xa0000) MX
            [5] -1 0 0x0000ffff - 0x0000ffff (0x1) IX
            [6] -1 0 0x00000000 - 0x000000ff (0x100) IX
(II) All system resource ranges:
            [0] -1  0 0xffe00000 - 0xffffffff (0x200000) MX(B)
            [1] -1  0 0x00100000 - 0x3fffffff (0x3ff00000) IXE(B)
            [2] -1  0 0x00f00000 - 0x000fffff (0x10000) MX
            [3] -1  0 0x000c0000 - 0x000effff (0x30000) MX
            [4] -1  0 0x000c0000 - 0x0009ffff (0xa0000) MX
            [5] -1  0 0xe7000000 - 0xe70000ff (0x100) MX
            [6] -1  0 0xe0000000 - 0xdfffffff (0x0) MX O
            [7] -1  0 0xe5000000 - 0xe57fffff (0x800000) MX (B)
            [8] -1  0 0xe6000000 - 0xe601ffff (0x20000) MX (B)
            [9] -1  0 0xe5800000 - 0xe5ffffff (0x800000) MX (B)
            [10] -1 0 0x0000ffff - 0x0000ffff (0x1) IX
            [11] -1 0 0x00000000 - 0x000000ff (0x100) IX
            [12] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX
            [13] -1 0 0x0000e400 - 0x0000e403 (0x4) IX  
            [14] -1 0 0x0000e000 - 0x0000e003 (0x4) IX
            [15] -1 0 0x0000dc00 - 0x0000dcff (0x100) IX
            [16] -1 0 0x0000d800 - 0x0000d81f (0x20) IX
            [17] -1 0 0x0000d400 - 0x0000d41f (0x20) IX
            [18] -1 0 0x0000d000 - 0x0000d00f (0x10) IX
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            Module class :XFree86 Server Extension
            ABI class :XFree86 Server Extension,version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule : "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            Module class :XFree86 Server Extension
            ABI class :XFree86 Server Extension,version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =2.0.2
            Module class :XFree86 Font Renderer
            ABI class :XFree86 Font Renderer,version 0.4
(II) Loading font FreeType
(II) LoadModule : "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1 :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.2
            Module class :XFree86 Font Renderer
            ABI class :XFree86 Font Renderer,version 0.4
(II) Loading font Type1
(II) Loading font T CID
(II) LoadModule : "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            ABI class :XFree86 Font Renderer,version 0.2
(II) Loading sub module "drm"
(II) LoadModule : "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            ABI class :XFree86 Server Extension,version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "via"
(II) Loading /usr/X11R6/lib/modules/drivers/via_drv.o
(II) Module via :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =4.1.54
            Module class :XFree86 Video Driver
            ABI class :XFree86 Video Driver,version 0.6
(II) LoadModule : "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            Module class :XFree86 XInput Driver
            ABI class :XFree86 XInput Driver,version 0.4
(II) LoadModule : "kbd"
(II) Loading /usr/X11R6/lib/modules/input/mouse_kdbdrv.o
II) Module kdb :vendor="The XFree86 Project"
            compiled for 4.3.0 ,module version =1.0.0
            Module class :XFree86 XInput Driver
            ABI class :XFree86 XInput Driver,version 0.4
(II) via :driver for VIA chipsets:CLE266,KM400,K8M800,PM800
(II) primary Device is : PCI 01:00:0
(EE) No devices detected

Fatal server error:
no screens found

when reporting a problem related to a server crash ,please send
the full server output ,not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.



我的配置文件是这样的.请高手过来看 一下
:


# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "DevInputMice" "AlwaysCore"
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      "XkbRules" "xfree86"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/psaux"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Unknown"
        DisplaySize  330        250
        HorizSync    31.5 - 35.1
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "via"
        VendorName  "Videocard vendor"
        BoardName   "VESA driver (generic)"
        VideoRam 32768
EndSection

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

Section "DRI"
        Group        0
        Mode         0666
EndSection


顺便说一句:我用的是很老的机子.和256m硬盘..
请帮帮忙看看..
这些代码我写的累死了..
发表于 2006-5-17 14:37:40 | 显示全部楼层
既然是那么老的机器了,为什么安装linux还要安装xwindow呢?搞不懂啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-17 14:44:04 | 显示全部楼层
就是用老机子编内核啊,还有服务什么的.图形界面也要进的..
不过还是没有解决问题啊.我能说的都说了.请高手帮帮忙..我换过显示器,可是没什么用..
回复 支持 反对

使用道具 举报

发表于 2006-5-17 15:55:52 | 显示全部楼层
怀疑是显卡不能上800x600.
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection

里面Modes 改成640x480试试?
回复 支持 反对

使用道具 举报

发表于 2006-5-17 17:22:24 | 显示全部楼层
去安装一个带x的cdlinux.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-17 19:23:18 | 显示全部楼层
已经解决了.我郁闷了三天终于搞定,那个config也快让我背住了.

先将解决方式告诉大家,避免和我一样的重蹈覆辙..
也在嵌入式这里少走些弯路.

Section "Device"
Identifier "Videocard0"
Driver "via"    //将这里的via 换成vest
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
VideoRam 32768
EndSection

还有大家说的分辨率问题,不是主要问题.我已经试过了.
图形化还是会出来的.不过就是变形而已.

任重道远..我还需要学会更多的东西..
以后,还要大家帮助啊..
回复 支持 反对

使用道具 举报

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

本版积分规则

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