LinuxSir.cn,穿越时空的Linuxsir!

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

为什么我的XF86Config-4文件中的monitor的depth色深只能设为8?

[复制链接]
发表于 2003-11-30 20:52:59 | 显示全部楼层 |阅读模式
为什么我的XF86Config-4文件中的monitor的depth色深只能设为8?
如果把depth为8的项删掉,xserver无法启动,但是在rh9.0中用的是16啊.
哪儿的问题?是不是和显卡的驱动有关,高手指点.
发表于 2003-11-30 21:09:09 | 显示全部楼层
自己加一个或改为24不就行了,另外加一行DefaultDepth 24
发表于 2003-11-30 21:13:21 | 显示全部楼层
什么显示卡,驱动安装了没有?
 楼主| 发表于 2003-11-30 21:41:28 | 显示全部楼层

cat /proc/pci:

VGA compatible controller:nVidia Corparation NV11[GeForce2 MX/MX 400](rev161).
发表于 2003-11-30 21:49:42 | 显示全部楼层
应该没问题吧,我的GF3都很正常呀,你的内核编译有选上NV显卡的支持吧?
 楼主| 发表于 2003-11-30 22:01:04 | 显示全部楼层

内核编译时选了,nvdia的驱动没装.但是rh9.0在没装驱动的时候也是用的16啊。

XF86config-4文件如下:
Section "ServerLayout"
        Identifier     "XFree86 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/Speedo/"
        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/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
EndSection

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
        Option            "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
        Option            "XkbRules" "xfree86"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "S/2"
        Option            "Device" "/dev/mouse"
EndSection

Section "Monitor"
        # mm
        Identifier   "Monitor0"
        VendorName   "API"
        ModelName    "Acer 55V"
        DisplaySize  270        200
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 120.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     "SWcursor"                   # [<bool>]
        #Option     "HWcursor"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        #Option     "ShowCache"                  # [<bool>]
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "UseFBDev"                   # [<bool>]
        #Option     "Rotate"                     # [<str>]
        #Option     "VideoKey"                   # <i>
        #Option     "FlatPanel"                  # [<bool>]
        #Option     "FPDither"                   # [<bool>]
        #Option     "CrtcNumber"                 # <i>
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "Videocar vendor"
        BoardName   "NVIDIA GeForce 2 MX (generic)"
        ChipSet     "GeForce2 MX/MX 400"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Depth     8
                Modes    "800x600"
        EndSubSection
        SubSection "Display"
                Depth     16
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes    "800x600"
        EndSubSection
EndSection
发表于 2003-12-1 13:12:03 | 显示全部楼层
没有安装nvidia驱动吧
发表于 2003-12-1 14:08:20 | 显示全部楼层
我也贴,希望能对你有点帮助
Section "Monitor"
        #DisplaySize          300   230        # mm
        Identifier   "Monitor0"
        VendorName   "LG"
        ModelName         "L1510S"
        HorizSync         31-61
        VertRefresh        50-75
#       1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
          Modeline "1024x768_75.00"  81.80  1024 1080 1192 1360  768 769 772 802  -HSync +Vsync
#        ModeLine "800x600"      49.50    800  836  916 1056    600  601  604  625 +hsync +vsync
#        ModeLine "640x480"      25.20    640  688  784  824    480  482  484  525 -hsync -vsync
        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     "SWcursor"                   # [<bool>]
        #Option     "HWcursor"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        #Option     "ShowCache"                  # [<bool>]
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "UseFBDev"                   # [<bool>]
        #Option     "Rotate"                     # [<str>]
        #Option     "VideoKey"                   # <i>
        #Option     "FlatPanel"                  # [<bool>]
        #Option     "FPDither"                   # [<bool>]
        #Option     "CrtcNumber"                 # <i>
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV17 [GeForce4 MX 440]"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth        24
        SubSection "Display"
                Depth     16
                Modes        "800x600" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes        "640x480" "800x600" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes        "1024x768"
        EndSubSection
EndSection
 楼主| 发表于 2003-12-1 14:33:22 | 显示全部楼层

我用RH9.0的时候驱动用项是nv,可以显示16色啊,

现在也是用的nv啊,
Identifier "Card0"
Driver "nv"
我还没有装nvidia的驱动,nv应该是内核编译时的驱动吧?
发表于 2003-12-1 14:55:09 | 显示全部楼层
先把nvidia的驱动装上吧
分辨率什么的也要调整
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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