LinuxSir.cn,穿越时空的Linuxsir!

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

在debian下安装ati显卡驱动教程

[复制链接]
发表于 2004-6-9 18:03:15 | 显示全部楼层 |阅读模式
http://xoomer.virgilio.it/flavio ... glrx-installer.html
参考这个页面这个
1,把下面两个联接加到你sources.list里面,运行apt-get update
deb http://www.stanchina.net/~flavio/debian/ ./
deb-src http://www.stanchina.net/~flavio/debian/ ./
2,安装下面两个包,安装好了会在你/usr/src/出现一个fglrx-4.3.0-3.9.0.tar.gz文件,解压后会生成一个modules目录.
apt-get install fglrx-4.3.0-driver
apt-get install fglrx-4.3.0-kernel-src
3,进入modules/fglrx-4.3.0-3.9.0目录,运行./make.sh,如果提示错误,输入下面命令行。make -C /usr/src/linux SUBDIRS=$(pwd) modules
成功后会提示你把fglrx.ko,拷贝到/lib/modules/2.6.5/misc下面,然后运行depmod -ae,这个时候你用modprobe -l 就可以看见fglrx.ko有这个模块,加载他就可以。
4,最后运行fglrxconfig,一路默认设置就可以,会生成新的XF86config-4文件。现在进入x就可以了。
下面是我成功的信息:
jason@nbfan:~$ glxgears
4188 frames in 5.0 seconds = 837.600 FPS
4342 frames in 5.0 seconds = 868.400 FPS
4342 frames in 5.0 seconds = 868.400 FPS
4346 frames in 5.0 seconds = 869.200 FPS
4178 frames in 5.0 seconds = 835.600 FPS
3571 frames in 5.0 seconds = 714.200 FPS
5136 frames in 5.0 seconds = 1027.200 FPS
4356 frames in 5.0 seconds = 871.200 FPS
4101 frames in 6.0 seconds = 683.500 FPS
4086 frames in 5.0 seconds = 817.200 FPS
4266 frames in 5.0 seconds = 853.200 FPS
4253 frames in 5.0 seconds = 850.600 FPS
4241 frames in 5.0 seconds = 848.200 FPS

glxinfo信息

jason@nbfan:~$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
    GLX_ATI_render_texture
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9200SE DDR Generic
OpenGL version string: 1.3 (X4.3.0-3.9.0)
OpenGL extensions:
    GL_ARB_multitexture, GL_EXT_texture_env_add, GL_EXT_compiled_vertex_array,
    GL_S3_s3tc, GL_ARB_occlusion_query, GL_ARB_point_parameters,
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_transpose_matrix, GL_ARB_vertex_blend, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_window_pos, GL_ATI_element_array,
    GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader, GL_ATI_map_object_buffer,
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
    GL_ATI_vertex_array_object, GL_ATI_vertex_attrib_array_object,
    GL_ATI_vertex_streams, GL_ATIX_texture_env_combine3,
    GL_ATIX_texture_env_route, GL_ATIX_vertex_shader_output_point_size,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
    GL_EXT_stencil_wrap, GL_EXT_texgen_reflection, GL_EXT_texture3D,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
    GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,
    GL_EXT_vertex_shader, GL_HP_occlusion_test, GL_NV_texgen_reflection,
    GL_NV_blend_square, GL_NV_occlusion_query, GL_SGI_color_matrix,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_lod, GL_SGIS_generate_mipmap, GL_SGIS_multitexture,
    GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x24 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x25 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x26 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x27 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x28 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x29 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x2a 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x2b 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x2c 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x2d 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x2e 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x2f 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x30 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x31 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x32 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None

fgl_glxgears贞数信息
jason@nbfan:~$ fgl_glxgears
724 frames in 5.0 seconds = 144.800 FPS
773 frames in 5.0 seconds = 154.600 FPS
648 frames in 5.0 seconds = 129.600 FPS
754 frames in 5.0 seconds = 150.800 FPS
786 frames in 5.0 seconds = 157.200 FPS
785 frames in 5.0 seconds = 157.000 FPS
jason@nbfan:~$

最后,fglrxinfo信息。
jason@nbfan:~$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9200SE DDR Generic
OpenGL version string: 1.3 (X4.3.0-3.9.0)
 楼主| 发表于 2004-6-9 18:13:06 | 显示全部楼层
对了,我的fgl_glxgearx,和glxgears分数怎么这么低 ?我的显卡是ati 9200se 64M 的。
发表于 2004-6-9 23:40:30 | 显示全部楼层
for bu for ati rage 128 32M ya?
发表于 2004-6-9 23:48:09 | 显示全部楼层
OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 1x x86/MMX/3DNow!/SSE NO-TCL
ft,我的镭卡在nforce2的主板上无法工作在AGP4x模式下,glxgear结果只有400FPS.
 楼主| 发表于 2004-6-10 13:39:33 | 显示全部楼层
jason@nbfan:~$ dmesg |grep agp
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA KT400/KT400A/KT600 chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 128M @ 0xd0000000
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected a Via Apollo KT400 chipset in AGP v2 compat mode at 0000:00:00.0
agpgart: Detected Via Apollo KT400 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
agpgart: Found an AGP 3.5 compliant device.
jason@nbfan:~$

这个dmesg也没显示是agp几速,
发表于 2004-6-10 15:12:37 | 显示全部楼层
楼主, apt 命令里1少了个 r, 2少了个 c
发表于 2004-6-10 15:14:02 | 显示全部楼层
我的是Radeon 9000
Celeron Tualatin 1.0G, 256M sdram, intel 815ept
没有安装firegl驱动,而是使用drm(内核自带的)
默认大小的情况glxgears一般在1500ftps以上,
QuakeIII在窗口模式90ftp左右

今天回去后装个fgl驱动试试看
 楼主| 发表于 2004-6-10 15:15:55 | 显示全部楼层
最初由 walte 发表
楼主, apt 命令里1少了个 r, 2少了个 c

不要意思,粘贴的。
 楼主| 发表于 2004-6-10 15:19:34 | 显示全部楼层
最初由 jimmyfoster 发表
我的是Radeon 9000
Celeron Tualatin 1.0G, 256M sdram, intel 815ept
没有安装firegl驱动,而是使用drm(内核自带的)
默认大小的情况glxgears一般在1500ftps以上,
QuakeIII在窗口模式90ftp左右

今天回去后装个fgl驱动试试看


不会把?你的分数这么高?怎么我才800多分?
不过我是
Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24
    #Option "backingstore"

    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
#        Virtual     1280 1024
    EndSubsection

你的是不是16位色深?
发表于 2004-6-10 16:49:24 | 显示全部楼层
感谢楼主, 我也装好了.
在些我请几个我遇到的问题及相应的处理.

我自己编译内核的, 原来把 drm 编译到内核中了, 结果 flgrx 模块无法装入, 然后我重新编译了内核把 drm 去掉了, 一切ok.

注意: 内核里的 agpgart 一定要选.

我的新内核的输出:

$> dmesg | grep agp
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 855PM Chipset.
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 128M @ 0xe0000000
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode


配置也如楼主所说比较简单地就完成了, 不过有些地方还是要选择一下, 如果分辨率不对, 自己到 /etc/X11/XFree86-4 中调整. 鼠标也要设置正确, 然后就可以享受了.

以前玩 supertux, CPU 占用 50%, 如果打开 OpenGL cpu 占用 100%, 因为此时没有正确的驱动, opengl 由 软件完成.

现在驱动装上了, 不开 opengl, cpu 任占 50%, 打开 opengl 后, cpu 占用几乎看不见(gnome-panel 的系统监视器上),

$> glxgears
4401 frames in 5.0 seconds = 880.200 FPS
4713 frames in 5.0 seconds = 942.600 FPS
4709 frames in 5.0 seconds = 941.800 FPS
4706 frames in 5.0 seconds = 941.200 FPS
4692 frames in 5.0 seconds = 938.400 FPS
4647 frames in 5.0 seconds = 929.400 FPS
4691 frames in 5.0 seconds = 938.200 FPS
4700 frames in 5.0 seconds = 940.000 FPS
4700 frames in 5.0 seconds = 940.000 FPS

我想现在要玩3d游戏也没问题了.

我的电脑:
Dell Latitude D600,
Intel(R) Pentium(R) M processor 1400MHz
ATI Technologies Inc Radeon R250 Lf [Radeon Mobility 9000 M9] (rev 01)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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