- 论坛徽章:
- 0
|
1. 从 ATi 的网站上下载 Linux 下的驱动, 一般是那个 .run 文件. 不算太大, 30多M.
2. 运行 sh ati-driver-installer-8.22.5-i386.run --buildpkg Debian/sid 来生成Debian Sid 的 deb 包( 生成其它软件包可以通过 sh ati-driver-installer-8.22.5-i386.run --get-supported 获得帮助).
这时会在您的主目录下生成5个deb包
fglrx-control-qt3_8.22.5-1_i386.deb
fglrx-driver_8.22.5-1_i386.deb
fglrx-kernel-src_8.22.5-1_i386.deb
fglrx-driver-dev_8.22.5-1_i386.deb
fglrx-sources_8.22.5-1_i386.deb
3. 安装内核头文件, 比如我的是 linux-headers-2.6.15-1-686.
4. dpkg -i fglrx-kernel-src_8.22.5-1_i386.deb
5. cd /usr/src/
tar jxvf fglrx.tar.bz2
cd modules/fglrx/
export KSRC=/usr/src/linux-headers-2.6.15-1-686
export KVERS=2.6.15-1-686
./debian/rules binary_modules
6. dpkg -i ~/fglrx-driver_8.22.5-1_i386.deb
7. dpkg -i /usr/src/fglrx-kernel-2.6.15-1-686_8.22.5-1_i386.deb
8. 用 modconf 将 kernel/drivers/char/drm 里的已加载的模块移除,否则 fglrx 不能加载( 如果不能移除,那么先退到控制台,终止X的相关进程 )
9. depmod -ae
10. modprobe fglrx
11. 编辑 /etc/X11/xorg.conf , 修改下面的内容
Section "Module"
...
# These modules are required for 3D acceleration
Load "GLcore"
Load "glx"
Load "dri"
...
# Load "extmod" but omit DGA extension
SubSection "extmod"
Option "omit xorg-dga"
EndSubSection
...
EndSection
Section "Device"
Identifier "ATI"
Driver "fglrx"
Option "AGPMode" "4"
Option "backingstore" "true"
# If X refuses to use the screen resolution you asked for,
# uncomment this; see "Bugs and Workarounds" for details.
#Option "NoDDC"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Use internal AGP GART support? ===
# If OpenGL acceleration doesn't work, try using "yes" here
# and disable the kernel agpgart driver.
Option "UseInternalAGPGART" "yes"
EndSection
Section "Screen"
Identifier "your screen"
Device "ATI"
Monitor "your monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" # this is only an example,
# use your preferred resolution here
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13534/showart_80066.html |
|