我首先看了Gentoo Linux ATi FAQ,其中说到[QUOTE]For a 2.6.x kernel the DRI modules can be built with the kernel or be provided by the x11-drm ebuild[/QUOTE]
然后我就真的上了这个当,就按照上个本本(用的是GeForce的显卡,2.4的内核),没在内核中使用DRI,当我试图安装x11-drm时,
[CODE]VIDEO_CARDS="radeon" emerge x11-drm[/CODE]
出了以下的错误信息:
!!! ERROR: x11-base/x11-drm-4.3.0-r7 failed.
!!! Function pkg_setup, Line 72, Exitcode 0
!!! Please link //usr/src/linux to 2.4 kernel sources. x11-drm does not yet work with 2.6kernels, use the DRM in the kernel.
!!! If you need support, post the topmost build error, NOT this status message.
这样看来只能用内核中支持DRM了。
同样上个本本用的是nvidia的Close Source驱动,用下来感觉很好,所以我就自然的用了ati的Close Source驱动,fglrxconfig后结果黑屏,连按Ctrl+Backspace或者Ctrl+Del都没有用,只有强行关电。

这样搞了几次xfs就报设备出错了,一修复修出一堆看不懂的文件,什么都用不了。幸好我用samba将安装将备份根分区的tar文件扔在了其它的NT机器上,用Knoppix光盘启动恢复回来就行了。
然后重新安装xorg,
[CODE]emerge xorg-x11[/CODE]
这也是个漫长的过程,虽然说两次安装xorg都是在我睡觉时编译的,但我不想再搞第三次了。再备份一下(其实samba我是在此之前就装过的了)。
[CODE]emerge samba
mount -t smbfs -o username=ary //192.168.1.200/Developers/ary /mnt/floppy/
cd /
tar -cjf /mnt/floppy/gentoo.tar.bz2 bin dev etc home lib opt root sbin sys usr var
[/CODE]
mnt,proc,tmp目录就没必要备份了,到时候现建就行了。
然后就是配置/etc/X11/xorg.conf了,下面就是我的配置文件的内容:
[CODE]Section "ServerLayout"
Identifier "X.org Configured"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/local/share/fonts"
FontPath "/usr/share/fonts"
FontPath "/usr/X11R6/lib/X11/fonts"
FontPath "/usr/local/share/fonts/TTF"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "

rotocol" "Auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "microsoftpro"
Option "XkbLayout" "dvorak,us"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 92.0
VertRefresh 40.0 - 150.0
EndSection
Section "Device"
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Unknown Board"
BusID "

CI:1:5:0"
Option "AGPMode" "4"
Option "AGPFastWrite" "True"
Option "EnableDepthMoves" "True"
Option "EnablePageFlip" "True"
Option "RenderAccel" "True"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
[/CODE]

其实需要注意的是显卡的驱动必须是“ati”,而不能是“radeon”