LinuxSir.cn,穿越时空的Linuxsir!

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

我的显卡ATI radeon 7000打开3D后就不能进X-Windows

[复制链接]
发表于 2003-7-24 13:50:35 | 显示全部楼层 |阅读模式
我的显卡是ATI radeon 7000
用的系统是RH9
只要我一从  系统设置----->显示----->高级------>启用硬件 3D 加速(E)后,重新启动进入X-Windows的时候就会黑屏。如果我要启用 3D 加速需要怎么办,要怎么设置。

我的XF86Config文件如下:


# 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     "/home/fonts"
        FontPath     "unix/:7100"
EndSection

Section "Module"

#        Load  "type1"
        Load  "xtt"
#        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
#        Load  "freetype"
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      "keyboard"
        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" "yes"
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    "hilips 105M"
        DisplaySize  280        210
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 120.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
        VendorName  "Videocard vendor"
        BoardName   "ATI Radeon 7000"
EndSection

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

Section "DRI"
        Group        0
        Mode         0666
EndSection
 楼主| 发表于 2003-7-24 13:56:03 | 显示全部楼层
我的XF86Config文件如下:



  1. # XFree86 4 configuration created by redhat-config-xfree86

  2. Section "ServerLayout"
  3.         Identifier     "Default Layout"
  4.         Screen      0  "Screen0" 0 0
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7.         InputDevice    "DevInputMice" "AlwaysCore"
  8. EndSection

  9. Section "Files"

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

  20. Section "Module"

  21. #        Load  "type1"
  22.         Load  "xtt"
  23. #        Load  "dbe"
  24.         Load  "extmod"
  25.         Load  "fbdevhw"
  26.         Load  "glx"
  27.         Load  "record"
  28. #        Load  "freetype"
  29. EndSection

  30. Section "InputDevice"

  31. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  32. #        Option        "Xleds"                "1 2 3"
  33. # To disable the XKEYBOARD extension, uncomment XkbDisable.
  34. #        Option        "XkbDisable"
  35. # To customise the XKB settings to suit your keyboard, modify the
  36. # lines below (which are the defaults).  For example, for a non-U.S.
  37. # keyboard, you will probably want to use:
  38. #        Option        "XkbModel"        "pc102"
  39. # If you have a US Microsoft Natural keyboard, you can use:
  40. #        Option        "XkbModel"        "microsoft"
  41. #
  42. # Then to change the language, change the Layout setting.
  43. # For example, a german layout can be obtained with:
  44. #        Option        "XkbLayout"        "de"
  45. # or:
  46. #        Option        "XkbLayout"        "de"
  47. #        Option        "XkbVariant"        "nodeadkeys"
  48. #
  49. # If you'd like to switch the positions of your capslock and
  50. # control keys, use:
  51. #        Option        "XkbOptions"        "ctrl:swapcaps"
  52. # Or if you just want both to be control, use:
  53. #        Option        "XkbOptions"        "ctrl:nocaps"
  54. #
  55.         Identifier  "Keyboard0"
  56.         Driver      "keyboard"
  57.         Option            "XkbRules" "xfree86"
  58.         Option            "XkbModel" "pc105"
  59.         Option            "XkbLayout" "us"
  60. EndSection

  61. Section "InputDevice"
  62.         Identifier  "Mouse0"
  63.         Driver      "mouse"
  64.         Option            "Protocol" "IMPS/2"
  65.         Option            "Device" "/dev/psaux"
  66.         Option            "ZAxisMapping" "4 5"
  67.         Option            "Emulate3Buttons" "yes"
  68. EndSection

  69. Section "InputDevice"

  70. # If the normal CorePointer mouse is not a USB mouse then
  71. # this input device can be used in AlwaysCore mode to let you
  72. # also use USB mice at the same time.
  73.         Identifier  "DevInputMice"
  74.         Driver      "mouse"
  75.         Option            "Protocol" "IMPS/2"
  76.         Option            "Device" "/dev/input/mice"
  77.         Option            "ZAxisMapping" "4 5"
  78.         Option            "Emulate3Buttons" "no"
  79. EndSection

  80. Section "Monitor"
  81.         Identifier   "Monitor0"
  82.         VendorName   "Monitor Vendor"
  83.         ModelName    "Philips 105M"
  84.         DisplaySize  280        210
  85.         HorizSync    30.0 - 70.0
  86.         VertRefresh  50.0 - 120.0
  87.         Option            "dpms"
  88. EndSection

  89. Section "Device"
  90.         Identifier  "Videocard0"
  91.         Driver      "radeon"
  92.         VendorName  "Videocard vendor"
  93.         BoardName   "ATI Radeon 7000"
  94. EndSection

  95. Section "Screen"
  96.         Identifier "Screen0"
  97.         Device     "Videocard0"
  98.         Monitor    "Monitor0"
  99.         DefaultDepth     16
  100.         SubSection "Display"
  101.                 Depth     16
  102.                 Modes    "800x600" "640x480"
  103.         EndSubSection
  104. EndSection

  105. Section "DRI"
  106.         Group        0
  107.         Mode         0666
  108. EndSection

复制代码
 楼主| 发表于 2003-7-24 17:50:02 | 显示全部楼层
没高手来说一说吗?
 楼主| 发表于 2003-7-27 00:05:37 | 显示全部楼层
顶一下
发表于 2003-10-6 16:45:50 | 显示全部楼层
发表于 2003-10-6 23:38:47 | 显示全部楼层
检查 /var/log/XFree86.log 里面的错误信息。
 楼主| 发表于 2003-10-7 23:47:00 | 显示全部楼层
具体是哪个驱动(支持RH9的)
发表于 2003-10-8 12:02:49 | 显示全部楼层
http://www.xfree86.org/~alanh/
在这里找,根据你的XFree86的版本下载,解压然后执行
#make -f Makefile.linux

把编译好后的radeon_drv.o复制到 /lib/modules/内核版本/kernel/drivers/video/目录,然后改/etc/X11/XF86config文件,把显示卡的这段中的radeon改为radeon_drv
Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
        VendorName  "Videocard vendor"
        BoardName   "ATI Radeon 7000"
EndSection
在下面的一段中加入Load "dri",也就是

Section "Module"
         Load "dri"
#        Load  "type1"
        Load  "xtt"
#        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
#        Load  "freetype"
EndSection
 楼主| 发表于 2003-10-9 12:04:33 | 显示全部楼层
XFree86 指的是不是内核,如果不是内核如何查看XFree86 的版本。
我现在用的是RH9的默认内核(4.2.20-8)。

4.2.20-8 是不是用 4.2.0这个版本。
 楼主| 发表于 2003-10-9 12:32:18 | 显示全部楼层
呵呵,写错了内核了,XFree86好像和内核不同的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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