mkdir -p /etc/portage echo "x11-drivers/ati-drivers ~x86" >> /etc/portage/package.keywordsYou should then be able to emerge all versions of the driver, unless they are hardmasked for some reason.
x11-drivers/ati-drivers ~x86 x11-drivers/ati-drivers-extra ~x86Question 1.6: Can I use the "radeon" driver or not?
emerge -C development-sources OR vanilla-sources OR mm-sources etc cp /usr/src/linux/.config ~/config (make a copy of your kernel config) rm -fr /usr/src/linux-x.y.z (where x.y.z is the kernel version you just unmerged) emerge development-sources OR vanilla-sources OR mm-sources etc cp ~/config /usr/src/linux/.config cd /usr/src/linux make oldconfigor by the following method:
cd /usr/src/linux cp .config ~/config (make a copy of your kernel config) make mrproper cp ~/config .config make oldconfigAfter you have done this, rebuild the kernel, then remerge the ati-drivers package and try again.
opengl-update xfree / opengl-update xorg-x11 emerge ati-drivers opengl-update ati
cd /usr/src/linux patch -p1 < /path/to/nvidia-agp.diffOnce the patch is applied, recompile your kernel as normal, copy the new bzImage to your boot partition, and reboot.
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
This text may already be in the file if you configured it with fglrxconfig, but the second line may be commented out, which enables DGA. To disable it, simply uncomment the second line. (II) fglrx(0): [drm] loaded kernel module for "fglrx" driver (II) fglrx(0): [drm] DRM interface version 1.0 (II) fglrx(0): [drm] drmSetBusid failed (4, PCI:1:0:0), Inappropriate ioctl for device (EE) fglrx(0): DRIScreenInit failed! (WW) fglrx(0): *********************************************** (WW) fglrx(0): * DRI initialization failed! * (WW) fglrx(0): * (maybe driver kernel module missing or bad) * (WW) fglrx(0): * 2D acceleraton available (MMIO) * (WW) fglrx(0): * no 3D acceleration available * (WW) fglrx(0): ********************************************* *Question 4.34: 3D applications fail to start and/or display lots of errors about "FGLTexMgr"
(II) fglrx(0): Composite extension enabled, disabling direct renderingTo get 3D acceleration back, simply comment or remove the line in your xorg.conf that loads the Composite extension.
Option "KernelModuleParm" "agplock=0"and then try Septor's fix posted here.
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
Option "MonitorLayout" "NONE, AUTO"
# === TV-out Management ===
Option "NoTV" "no"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
...
EndSection
Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768" "800x600"
ViewPort 0 0 # initial origin if mode is smaller than desktop
EndSubsection
EndSection
By setting 'MonitorLayout' to "NONE, AUTO", the LCD (which is primary) will be disabled, and the TV, which is secondary will be autodetected. Make sure you boot to a console when testing this.