LinuxSir.cn,穿越时空的Linuxsir!

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

Ubuntu能用开源驱动开3D,Debian下死活起不来

[复制链接]
发表于 2009-8-6 07:56:01 | 显示全部楼层 |阅读模式
ATI Radeon Xpress 200M显卡。
Ubuntu9.04默认状态下能够启动3D效果,应该是使用的开源驱动吧?
在Debian Lenny下,就是开不了。
看了下ubuntu的xorg.conf,太简单了,copy到debian下也不能用。

附上xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "SynapticsTouchpad" "SendcoreEvents"
EndSection

Section "Files"
        RgbPath      "/etc/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
EndSection

Section "Module"
        Load  "dri"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "extmod"
        Load  "dbe"
        Load  "GLcore"
        Load  "synaptics"
EndSection

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

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
        Identifier  "SynapticsTouchpad"
        Driver      "synaptics"
        Option      "AlwaysCore"        "true"  # send events to CorePointer
        Option      "VertEdgeScroll"    "true"  # enable vertical scroll zone
        Option      "HorizEdgeScroll"   "true"  # enable horizontal scroll zone
EndSection


Section "Monitor"
        #DisplaySize          300   190        # mm
        Identifier   "Monitor0"
        VendorName   "CMO"
        ModelName    "1409"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "RC410 [Radeon Xpress 200M]"
        BusID       "CI:1:5:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "dri"
        Mode 0666
EndSection
发表于 2009-8-6 11:20:19 | 显示全部楼层
我的也是 ATI的顯卡,用的是debian自帶的驅動,可以運行compiz了,不過自從那東西能運行後就再也沒用過,感覺還是占資源,沒事時炫炫還行,工作時開著它有點過。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-6 17:34:24 | 显示全部楼层
我很想知道为什么Debian下行不通,而在Ubuntu下却正常!
回复 支持 反对

使用道具 举报

发表于 2009-8-6 20:02:43 | 显示全部楼层
老兄,你的显卡和我的一样的,我也有和你同样的问题,在ubuntu下可以直接开3D桌面,但debian下也是一样的不行,你搞定了告知一声呀!

xj1962615@163.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-7 21:34:52 | 显示全部楼层
终于搞定了。
原来运行
dmesg | grep drm
的结果是空。估计是内核原因,于是就重新编译内核,把内核中显卡型号编译进内核,而不是模块。新内核下运行
dmesg | grep drm
后,结果显示
[    2.377354] [drm] Initialized drm 1.1.0 20060810
[    2.377930] [drm] Initialized radeon 1.29.0 20080528 on minor 0
^_^
高兴之下运行
glxinfo  
,结果
direct rendering: No
,使用
LIBGL_DEBUG=verbose
,没有发现任何错误。也不知道是什么原因,网上接着google,发现Xorg.0.log有用,于是查看Xorg.0.log文件,发现
Direct rendering disabled
,可能是xorg.conf的问题,接着检查xorg.conf,发现
Option "Dri"
选项没有设置,于是设置
Option "Dri"   true
。重启X,运行
glxinfo
direct rendering: Yes
出来了。
回复 支持 反对

使用道具 举报

发表于 2009-8-8 11:16:16 | 显示全部楼层
Post by oydl82;2013475
我很想知道为什么Debian下行不通,而在Ubuntu下却正常!

软件的版本不一样啊!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-8 17:20:48 | 显示全部楼层
Post by wkt;2014056
软件的版本不一样啊!

一语惊醒梦中人。
本来硬件加速上来了,可是一开compiz就重启X。折腾了一个晚上,就是没有找到解决办法,刚刚看到老兄的这句,马上换sid的源,把radeon驱动升级了。搞定!
借用范伟的一句话,谢谢噢!。
回复 支持 反对

使用道具 举报

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

本版积分规则

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