Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5772238
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: LINUX

2006-09-11 19:43:42

一 下载编译必需的软件包
1 下载必需的编译工具
# apt-get install build-essential
2 下载内核头文件
# apt-get install linux-headers-$(uname -r)
3 下载fglrx驱动和内核模块源文件
# apt-get install fglrx-driver fglrx-kernel-src
二 编译内核模块
1 解压fglrx内核模块源文件
# cd /usr/src
# tar xvf fglrx*
2 编译内核模块
# cd modules/fglrx/
# ./make.sh
3 安装内核模块
# mkdir /lib/modules/$(uname -r)/misc
# cp fglrx.ko /lib/modules/$(uname -r)/misc/
# depmod -ae
三 配置显卡
# aticonfig --initial
# aticonfig --ovt=Xv
驱动选择fglrx,别的默认
四 查看驱动是否正常加载
1 Ctrl+Alt+Backspace重启X,登录
2 查看$ fglrxinfo输出,是否含有“ATI Technologies Inc.”有即3D加速已打开。

这个是我的配置文件,在ubuntu/dapper debian/sid里面都能用的。

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Files"

    # path to defoma fonts
    FontPath     "/usr/share/X11/fonts/misc"
    FontPath     "/usr/share/X11/fonts/cyrillic"
    FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath     "/usr/share/X11/fonts/Type1"
    FontPath     "/usr/share/X11/fonts/100dpi"
    FontPath     "/usr/share/X11/fonts/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load  "bitmap"
    Load  "ddc"
    Load  "dri"
    Load  "extmod"
    Load  "freetype"
    Load  "glx"
    Load  "int10"
    Load  "type1"
    Load  "vbe"
EndSection

Section "InputDevice"
    Identifier  "Generic Keyboard"
    Driver      "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc104"
    Option        "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier  "Configured Mouse"
    Driver      "mouse"
    Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "true"
EndSection

Section "Monitor"
    Identifier   "E71f-2"
    HorizSync    30.0 - 71.0
    VertRefresh  50.0 - 160.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier  "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
    Driver      "fglrx"
    Option        "UseFBDev" "true"
    Option        "VideoOverlay" "on"
    Option        "OpenGLOverlay" "off"
    BusID       "PCI:5:0:0"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device     "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
    Monitor    "E71f-2"
    DefaultDepth     24
    SubSection "Display"
        Depth     1
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     4
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     8
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     15
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     16
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     24
        Modes    "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection


阅读(1910) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~