|
楼主 |
发表于 2006-5-17 09:52:41
|
显示全部楼层
已经解决了。分享一下。
xorg的i810驱动是支持945G/GMA950的.
实际上,i810驱动支持所有这些intel chipset:
i810, i810-DC100, i810e, i815, 830M, 845G, 852GM, 855GM, 865G, 915G, 915GM, 945G, 945GM
虽然man page里只提到915G和915GM为止。
可以man i810
关键就是打开DRI. 我参照了以下文章。
http://dri.freedesktop.org/wiki/DriTroubleshooting
这篇文章确实很有帮助,告诉你如何一步一步确定DRI的问题的原因。建议有需要的看一看。
1. 我确定了我的内核有Intel i810及以后芯片组的AGPGART和DRM的支持。(我的内核是自己编译的。Slackware带的标准内核应该已经有支持这些。)
2. 我发现要在X里打开DRI.
编辑 xorg.conf
...
Section "Module"
...
# This loads the DRI module 载入DRI模块
Load "dri"
# This loads the GLX module 载入GLX模块
Load "glx"
...
EndSection
...
# 建一个用i810驱动的设备
Section "Device"
Identifier "i810"
Driver "i810"
# Alternative to Load "dri" 这个Option与Load "dri"等效
# Option "DRI" "true"
EndSection
...
# 使用i810设备
Section "Screen"
Identifier "Screen 1"
Device "i810"
Monitor "Samsung 710N"
...
# 让普通用户也可以使用DRI. 如果没有这个,只有root可以用。
Section "DRI"
Mode 0666
EndSection
之前:
x@slackx:~$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
x@slackx:~$ glxgears
4246 frames in 5.1 seconds = 840.647 FPS
4200 frames in 5.0 seconds = 835.972 FPS
4605 frames in 5.1 seconds = 901.136 FPS
4920 frames in 5.1 seconds = 961.904 FPS
5160 frames in 5.0 seconds = 1027.514 FPS
5160 frames in 5.0 seconds = 1027.391 FPS
5160 frames in 5.0 seconds = 1028.289 FPS
5160 frames in 5.0 seconds = 1028.484 FPS
5160 frames in 5.0 seconds = 1027.678 FPS
5173 frames in 5.0 seconds = 1027.146 FPS
...
重起X之后:
x@slackx:~$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
x@slackx:~$ glxgears
6128 frames in 5.0 seconds = 1225.418 FPS
10277 frames in 5.0 seconds = 2055.316 FPS
25799 frames in 5.0 seconds = 5159.779 FPS
29263 frames in 5.0 seconds = 5852.472 FPS
29005 frames in 5.0 seconds = 5800.984 FPS
29025 frames in 5.0 seconds = 5804.835 FPS
29432 frames in 5.0 seconds = 5886.293 FPS
28826 frames in 5.0 seconds = 5765.187 FPS
29754 frames in 5.0 seconds = 5950.637 FPS
29917 frames in 5.0 seconds = 5983.400 FPS
是原来的5,6倍! |
|