LinuxSir.cn,穿越时空的Linuxsir!

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

无法使用radeon驱动【已解决】

[复制链接]
发表于 2009-7-15 22:22:27 | 显示全部楼层 |阅读模式
我原先是安装了ATI的官方驱动。今天想试试开源的radeon驱动,但是怎么修改xorg.conf都无法完整进入X。

下面是fglrx版和我自己修改的radeon版xorg.conf的diff:

  1. $ diff -u xorg.conf xorgradeon.txt
  2. --- xorg.conf   2009-07-15 21:38:18.000000000 +0800
  3. +++ xorgradeon.txt      2009-07-15 21:25:59.000000000 +0800
  4. @@ -1,6 +1,6 @@
  5. Section "ServerLayout"
  6.         Identifier     "Simple Layout"
  7. -       Screen      0  "aticonfig-Screen[0]" 0 0
  8. +       Screen         0  "Radeon X1300 Screen" 0 0
  9.         InputDevice    "Mouse1" "CorePointer"
  10.         InputDevice    "Keyboard1" "CoreKeyboard"
  11. EndSection
  12. @@ -40,22 +40,21 @@
  13.         Option      "ZAxisMapping" "4 5"
  14. EndSection
  15. Section "Monitor"
  16. -       Identifier   "aticonfig-Monitor[0]"
  17. -       Option      "VendorName" "ATI Proprietary Driver"
  18. -       Option      "ModelName" "Generic Autodetecting Monitor"
  19. +       Identifier   "Radeon X1300 Monitor"
  20.         Option      "DPMS" "true"
  21. EndSection
  22. Section "Device"
  23. -       Identifier  "aticonfig-Device[0]"
  24. -       Driver      "fglrx"
  25. +       Identifier  "Radeon X1300 Device"
  26. +       Driver      "radeon"
  27. EndSection
  28. Section "Screen"
  29. -       Identifier "aticonfig-Screen[0]"
  30. -       Device     "aticonfig-Device[0]"
  31. -       Monitor    "aticonfig-Monitor[0]"
  32. +       Identifier "Radeon X1300 Screen"
  33. +       Device     "Radeon X1300 Device"
  34. +       Monitor    "Radeon X1300 Monitor"
  35.         DefaultDepth     24
  36.         SubSection "Display"
  37.                 Viewport   0 0
  38.                 Depth     24
  39. +               Modes     "1280x800"
  40.         EndSubSection
  41. EndSection
  42. vvoody@slackware:~
复制代码


这样修改了,然后startx无法进入X,出现如下错误:

  1. $ startx
  2. xauth:  creating new authority file /home/vvoody/.serverauth.4312
  3. X.Org X Server 1.4.2
  4. Release Date: 11 June 2008
  5. X Protocol Version 11, Revision 0
  6. Build Operating System: Slackware 12.1 Slackware Linux Project
  7. Current Operating System: Linux slackware 2.6.27.7-smp #1 SMP Thu Nov 20 22:18:02 CST 2008 i686
  8. Build Date: 30 June 2008  11:35:29PM
  9.         Before reporting problems, check http://wiki.x.org
  10.         to make sure that you have the latest version.
  11. Module Loader present
  12. Markers: (--) probed, (**) from config file, (==) default setting,
  13.         (++) from command line, (Markers: (--) probed, (**) from config file, (==) default setting,) notice, (II) informational,
  14.         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  15. (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 15 21:12:55 2009
  16. (==) Using config file: "/etc/X11/xorg.conf"
  17. Backtrace:
  18. 0: X(xf86SigHandler+0x7e) [0x80d8b5e]
  19. 1: [0xffffe400]
  20. 2: /usr/lib/xorg/modules/drivers//radeon_drv.so(RADEONDRIGetVersion+0x12b) [0xb7bb2d9b]
  21. 3: /usr/lib/xorg/modules/drivers//radeon_drv.so [0xb7b8283d]
  22. 4: /usr/lib/xorg/modules/drivers//radeon_drv.so(RADEONPreInit+0x9d5) [0xb7b84945]
  23. 5: X(InitOutput+0x9b7) [0x80a2317]
  24. 6: X(main+0x296) [0x806dbb6]
  25. 7: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7d8f390]
  26. 8: X(FontFileCompleteXLFD+0x20d) [0x806d121]
  27. Fatal server error:
  28. Caught signal 11.  Server aborting
  29. giving up.
  30. xinit:  Connection reset by peer (errno 104):  unable to connect to X server
  31. xinit:  No such process (errno 3):  Server error.
复制代码


之后我试过去掉 Load "glx"和增加Option "AccelMethod" "EXA"、Option "AccelDFS" "True",均出现上述错误。

又,我将radeon驱动换成radeonhd,结果KDE3的启动画面出来了,但是到Load Desktop时,还没见到桌面就退回控制台了,除了上面的错误,又出现如下错误:

  1. Fatal server error:
  2. Caught signal 11.  Server aborting
  3. kdeinit: Fatal IO error: client killed
  4. kdeinit: sending SIGHUP to children.
  5. kdeinit: sending SIGTERM to children.
  6. kdeinit: Exit.
  7. klauncher: Exiting on signal 1
  8. startkde: Shutting down...
  9. Warning: connect() failed: : No such file or directory
  10. Error: Can't contact kdeinit!
  11. startkde: Running shutdown scripts...
  12. xprop:  unable to open display ':0'
  13. usage:  xprop [-options ...] [[format [dformat]] atom] ...
复制代码


硬件信息在我签名档。为啥我用不了radeon驱动呢?
发表于 2009-7-15 23:06:49 | 显示全部楼层
我的:

  1. Section "Device"
  2. # Custom Options
  3.     # Insert Clocks lines here if appropriate
  4.         Identifier  "VESA Framebuffer"
  5.         Driver      "radeon"

  6.         Option     "AccelMethod" "EXA"
  7.         #Option      "AccelMethod" "XAA"
  8.         # EXA is faster, XAA is stabler .....
  9.         Option            "RenderAccel" "on"
  10.         Option      "DRI" "on"

  11.         Option "AccelDFS"    "1"
  12.         # On for PCIE,  off for AGP
  13.         # Manpage: Use  or  don't  use accelerated EXA DownloadFromScreen hook
  14.         # when possible.
  15.         Option "GARTSize" "64"
  16.         # 0-64 Megabytes of gart (system) memory used.
  17.         # Wrongly defaults to 8MB sometimes,  see your logfile.
  18.         # Bigger seems better.
  19. #        Option "EnablePageFlip" "1"
  20.         # 1/0 Increases 3D performance substantially
  21.         # seemingly in XAA mode only
  22.         Option "ColorTiling" "1"
  23.         # 1/0 Increases 3D performance substantially
  24.         # I have to enable this for xv working.

  25.         # Solve Video flicker
  26.         # http://ubuntuforums.org/showthread.php?t=754712
  27.         Option             "VideoOverlay"               "on"
  28. # === OpenGL Overlay ===
  29. # Note: When OpenGL Overlay is enabled, Video Overlay
  30. #       will be disabled automatically
  31.         Option            "OpenGLOverlay"              "off"
  32.         Option      "TexturedVideo" "off"

  33.         #Option      "XAANoOffscreenPixmaps"
  34. #        Option            "UseFastTLS" "2"
  35. #        VideoRam    4096
  36. EndSection
复制代码


显卡是 1150 的~ 可用,特效都可以开~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-15 23:22:45 | 显示全部楼层
多谢gr,不过还是不行,和最开始的错误一样。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-15 23:23:37 | 显示全部楼层
@grissiom
你之前装过ATI的官方驱动吗?后来我试试了用 Driver "ati" 也不行。
回复 支持 反对

使用道具 举报

发表于 2009-7-15 23:25:16 | 显示全部楼层
Post by vvoody;2006559
@grissiom
你之前装过ATI的官方驱动吗?后来我试试了用 Driver "ati" 也不行。


很早很早以前用过,现在没用了……

是不是 KDE 里开什么特效让 X 给崩了?…… 试试别的 DE?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-15 23:27:04 | 显示全部楼层
Post by grissiom;2006560
很早很早以前用过,现在没用了……

是不是 KDE 里开什么特效让 X 给崩了?…… 试试别的 DE?


没装特效。好的,我再试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-15 23:36:13 | 显示全部楼层
我现在在wmaker下用fx上,radeonhd。
但是其他比如fluxbox, blackbox, xfce 能进桌面,但是开个fx就崩溃,退到控制台。
回复 支持 反对

使用道具 举报

发表于 2009-7-15 23:38:53 | 显示全部楼层
忽然记起来了…… 傻瓜蛋了我……

安装过 fglrx 之后再用 radeon 是要重新装一遍 radeon 驱动(可能 xserver 也要重装……)的,因为 fglrx 会覆盖掉原来 X 的什么 lib ……  参考: http://slackbuilds.org/repository/12.2/system/nvidia-driver/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 00:36:15 | 显示全部楼层
Post by grissiom;2006565
忽然记起来了…… 傻瓜蛋了我……

安装过 fglrx 之后再用 radeon 是要重新装一遍 radeon 驱动(可能 xserver 也要重装……)的,因为 fglrx 会覆盖掉原来 X 的什么 lib ……  参考: http://slackbuilds.org/repository/12.2/system/nvidia-driver/


我先用fglrx-uninstall.sh把fglrx卸了,然后再重装X。
BTW,我不太清楚x/里具体哪些包需要重装?
回复 支持 反对

使用道具 举报

发表于 2009-7-16 01:20:24 | 显示全部楼层
Post by vvoody;2006573
我先用fglrx-uninstall.sh把fglrx卸了,然后再重装X。
BTW,我不太清楚x/里具体哪些包需要重装?


狠下心,全重安得了^
回复 支持 反对

使用道具 举报

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

本版积分规则

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