[HOWTO]: Make ATi 8.42.3 run AiGLX

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

[HOWTO]: Make ATi 8.42.3 run AiGLX

Postby Element » Tue Nov 06, 2007 17:21

Note: Italics that look like this mean that commands must be ran in a terminal and they must be root (#). Bold that looks like this means that commands must be ran in a terminal and you can be root (#) or a regular user ($).

I'm making this post to keep people from flooding our IRC room and our forums and complaining "Oh 8.42.3 broke my system. I can't use X. I'm stuck in a huge black and white terminal." Blah, blah, blah. I'm going to tell you now, that if you don't know how to use a terminal then don't even start to emerge and install these drivers because if you do break X, the only way to fix it without completely reinstalling (which I've seen people do before) is to backup and restore your xorg.conf in a terminal. So please, spare me the crap and read this entire post first, before you do anything.

First off there are only certain cards that will work with these drivers. Here is a list.
Code: Select all
    *  Mobility Radeon X1800
    * Mobility Radeon X1600
    * Mobility Radeon X1400
    * Mobility Radeon X1300
    * Mobility Radeon X1200
    * Mobility Radeon X1100
    * Mobility Radeon X800
    * Mobility Radeon X700
    * Mobility Radeon Xpress 1200 Series
    * Mobility Radeon X600
    * Mobility Radeon X300
    * Mobility Radeon X200
    * Mobility Radeon 9800
    * Mobility Radeon 9600
    * Mobility Radeon 9550
    * Mobility Radeon 9500
    * Mobility Radeon Xpress 1100 Series
    * Mobility Radeon Xpress 200 Series
    * Radeon HD 2900 Series
    * Radeon HD 2400 Series
    * Radeon HD 2600 Series
    * Radeon X1900 Series
    * Radeon X1800 Series
    * Radeon X1600 Series
    * Radeon X1300 Series
    * Radeon X850 Series
    * Radeon X800 Series
    * Radeon X700 Series
    * Radeon Xpress 1200 Series
    * Radeon Xpress 200 Series
    * Radeon X600 Series
    * Radeon X550/X300 Series
    * Radeon 9800 Series
    * Radeon 9700 Series
    * Radeon 9600 Series
    * Radeon 9550 Series
    * Radeon 9500 Series
    * Radeon Xpress 1100 Series


If you have one of those cards, then congrats, you meet the requirements. But I personally recommend a good mid-range processor, at least 1GB of RAM, and a lot of patience. Time to get started.

I had to upgrade my kernel. I'm not going to fully cover it here, but I do happen to have a link that you could use.http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Upgrade_kernel_using_genkernel. Just follow that and you should be golden.
Next make sure your xorg versions match up with the ones that I find that work by doing eix xorg the output should be something like this:
Code: Select all
 [U] x11-base/xorg-x11
     Available versions:  7.2 (~)7.3
     Installed versions:  7.2(02:39:00 PM 10/28/2007)
     Homepage:            http://xorg.freedesktop.org
     Description:         An X11 implementation maintained by the X.Org Foundation (meta package)

[U] x11-base/xorg-server
     Available versions:  (~)1.1.99.902[1] (~)1.1.99.902-r1[1] (~)1.1.99.903-r1[1] (~)1.1.99.903-r2[1] (~)1.2.0-r2[1] 1.2.0-r3 1.3.0.0 1.3.0.0-r1 (~)1.3.0.0-r1[1] (~)1.3.0.0-r2 (~)1.4-r2 (~)1.4-r2[1] (~)1.4-r3[1]
     Installed versions:  1.3.0.0-r2(02:38:09 PM 10/28/2007)
     Description:         X.Org X servers

Next were going to update our overlays and portage for good measure. emerge --sync && layman -S
Then block the newer xorg servers because if you don't then they will try to emerge and that is the last thing you want now: echo "=x11-base/xorg-server-1.4-r3" >> /etc/portage/package.mask && echo "=x11-base/xorg-server-1.4-r2" >> /etc/portage/package.mask
Next pretend to emerge the new ATi drivers: emerge --pretend --verbose ati-drivers. The output should return something like this:
Code: Select all
phoenix elementalnature # emerge --pretend --verbose ati-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] x11-drivers/ati-drivers-8.42.3-r10 [8.40.4-r11] USE="acpi distribution (-multilib)" 49,285 kB [1]eix xorg

Total: 1 package (1 upgrade), Size of downloads: 49,285 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/sabayon

This means that the only package that will emerge is the ati-drivers. There are no blockers, no useless/unneeded packages, nothing that could possibly go wrong right? Right. For now..
Ready to take the plunge? I hope so. Here we go: emerge -av ati-drivers
Time will go by, about an hour or so. After it is done you have to fix some libraries:
Code: Select all
rm -rf /usr/lib/libGL.* && ln -s /usr/lib/opengl/ati/lib/libGL.la /usr/lib/libGL.la && ln -s /usr/lib/opengl/ati/lib/libGL.so /usr/lib/libGL.so && ln -s /usr/lib/libGL.so /usr/lib/libGL.so.1 && ln -s /usr/lib/libGL.so /usr/lib/libGL.so.1.2

Okay. So far we've emerged the new drivers, fixed the libraries, upgraded a kernel, and in the process, hopefully kept broken our system. Now we have to start work on our Xorg.conf. First off, back it up. cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original. Should you ever need to restore your Xorg just reverse that to make it cp /etc/X11/xorg.conf.original /etc/X11/xorg.conf. Then we edit our xorg.conf: Depending on desktop manager: kwrite /etc/X11/xorg.conf or gedit /etc/X11/xorg.conf. Then just copy the xorg below this line to your xorg.conf. Yeah I know, this going to overwrite everything. We want it to.
Code: Select all
# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************
# **********************************************************************
# Server flags section.  This contains various server-wide Options.
# **********************************************************************
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# **********************************************************************
# Screen sections.
# **********************************************************************

Section "ServerLayout"
# The Identifier line must be present
       Identifier     "Main Layout"
   Screen      0  "aticonfig-Screen[0]" 0 0
   InputDevice    "Mouse1" "CorePointer"
   InputDevice    "Mouse2" "SendCoreEvents"
   InputDevice    "Synaptics1" "SendCoreEvents"
   InputDevice    "Keyboard1" "CoreKeyboard"
   Option "aiglx" "true"
EndSection

Section "Files"

    #FontPath   "/usr/share/fonts/local/"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/TTF/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/100dpi/"
   FontPath     "/usr/share/fonts/corefonts"
EndSection

Section "Module"
   Load  "dbe"
   Load  "i2c"
   Load  "glx"
   Load  "ddc"
   Load  "type1"
   Load  "freetype"
   Load  "extmod"
   Load  "synaptics"
   Load  "vbe"
   Load  "dri"
EndSection

Section "ServerFlags"
   Option       "AllowMouseOpenFail" "on"
        Option      "IgnoreABI"  "on"
EndSection

Section "InputDevice"

    #Option      "MaxSpeed"      "0.7"
    #Option      "MinSpeed"      "0.18"
    #Option      "AccelFactor"      "0.08"
    #Option      "TopEdge"      "120"
    #Option      "LeftEdge"      "120"
    #Option      "BottomEdge"      "830"
    #Option      "RightEdge"      "650"
    #Option      "FingerLow"      "25"
    #Option      "FingerHigh"      "30"
    # MacBook touchpad
    #Option      "MaxTapTime"      "180"
    #Option      "MaxTapMove"      "220"
    #Option      "MaxDoubleTapTime"   "180"
    #Option      "VertScrollDelta"   "20"
    #Option      "HorizScrollDelta"   "50"
    #Option      "TapButton2"      "3"
    #Option      "TapButton3"      "2"
    #Option      "VertTwoFingerScroll"   "1"
    # Do you keep moving the mouse while typing? Try this trick.
    #synclient TouchpadOff=1 disable your synaptics touchpad
    #synclient TouchpadOff=0 enable your synaptics touchpad
   Identifier  "Synaptics1"
   Driver      "synaptics"
   Option       "SendCoreEvents" "true"
   Option       "Device" "/dev/psaux"
   Option       "Protocol" "auto-dev"
   Option       "HorizScrollDelta" "0"
   Option       "SHMConfig" "on"
    # For ALPS/MacBook TouchPads
EndSection

Section "InputDevice"

    #Option   "XkbOptions"   "lv3:rwin_switch"
   Identifier  "Keyboard1"
   Driver      "kbd"
   Option       "AutoRepeat" "500 5"
   Option       "XkbModel" "pc105"
   Option       "XkbLayout" "us"
   Option       "XkbRules" "xorg"
    # Macintosh keyboard
EndSection

Section "InputDevice"

# Identifier and driver
   Identifier  "Mouse1"
   Driver      "mouse"
   Option       "Device" "/dev/psaux"
   Option       "Protocol" "ImPS/2"
   Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
   Identifier  "Mouse2"
   Driver      "mouse"
   Option       "Protocol" "ImPS/2"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5"
EndSection

Section "Monitor"

    #Option      "DPMS"
   Identifier   "Generic Monitor"
   HorizSync    28.0 - 80.0
   VertRefresh  43.0 - 60.0
EndSection

Section "Monitor"
   Identifier   "aticonfig-Monitor[0]"
   Option       "VendorName" "ATI Proprietary Driver"
   Option       "ModelName" "Generic Autodetecting Monitor"
   Option       "DPMS" "true"
EndSection

Section "Device"

    Option "XAANoOffscreenPixmaps" "true"
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
    Option "VideoOverlay" "on"
    Option "OpenGLOverlay" "off"
    Option "TexturedVideo" "on"
    Option "DRI"  "true"
    Option "UseFastTLS" "1"
   Identifier  "VESA"
   Driver      "radeon"
   #Option       "AccelMethod" "EXA"
    #Option "RenderAccel" "on"
EndSection

Section "Device"
   Identifier  "aticonfig-Device[0]"
   Driver      "fglrx"
EndSection

Section "Screen"

# The Identifier, Device and Monitor lines must be present
    Option "AddARGBGLXVisuals" "true"
# The favoured Depth and/or Bpp may be specified here
   Identifier "Screen 1"
   Device     "VESA"
   Monitor    "Generic Monitor"
   DefaultDepth     24
   SubSection "Display"

        #Modes      "1024x768" "800x600" "640x480"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"

        #Modes      "1024x768" "800x600" "640x480"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"

        #Modes      "1024x768" "800x600" "640x480"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "Screen"
   Identifier "aticonfig-Screen[0]"
   Device     "aticonfig-Device[0]"
   Monitor    "aticonfig-Monitor[0]"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection

Section "DRI"
   Mode         0666
EndSection

Then a few final steps: xgl-setup disable && aiglx-setup enable
There you go. You now have a working AiGLX ATi System. Hopefully. If you need help setting up a Compiz Fusion 3D Window Manager, then look to this great guide by wolfden: http://www.sabayonlinux.org/forum/viewtopic.php?f=53&t=9882
Resources:
http://forums.gentoo.org/viewtopic-t-604241-postdays-0-postorder-asc-highlight-ati-start-50.html
http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Get_ATI-Drivers_8.42.3_working_with_no_Corruption
http://wiki.sabayonlinux.org/index.php?title=AiGLX_on_the_New_ATI_Drivers
http://www.sabayonlinux.org/forum/viewtopic.php?f=53&t=9882
Image
On Sabayon @ Freenode: <ColdFlo> im not asking for support <ColdFlo> im asking for help
Element
Growing Hen
 
Posts: 144
Joined: Mon Dec 11, 2006 0:55
Location: 127.0.0.2

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Merlin7777 » Sat Dec 01, 2007 1:29

What about the new 7.11 drivers?
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Element » Sat Dec 01, 2007 1:57

I don't know about those mate. They're saying that their Catalyst drivers, which A: I have no clue as to what they are. But B: I suspect that they're the ATI Catalyst Control Center program that ATI uses to control their chips. They're kind of like the overclocking software that nVidia uses. But I don't know about Catalyst 7.11. Sorry.
Image
On Sabayon @ Freenode: <ColdFlo> im not asking for support <ColdFlo> im asking for help
Element
Growing Hen
 
Posts: 144
Joined: Mon Dec 11, 2006 0:55
Location: 127.0.0.2

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Fitzcarraldo » Sat Dec 01, 2007 3:15

Not just Catalyst Control Centre. They are the new ati-drivers-8.433 (also called 7.11 to tie up with Windows version, apparently) released 21 November.

http://ati.amd.com/support/drivers/linu ... adeon.html
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Merlin7777 » Mon Dec 03, 2007 8:56

Wait, which kernel did you upgrade to? .23?
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Fitzcarraldo » Thu Dec 20, 2007 21:46

Today I got the latest ATI driver (ati-drivers-8.433-r10) a.k.a. "ATI Catalyst 7.11 Proprietary Linux x86 Display Driver" working with kernel-genkernel-x86_64-2.6.22-sabayon. Have not tried it with the 2.6.23-sabayon-r1 kernel yet (for some reason I can only get a bog-standard X-Windows GUI if I build the 2.6.23-sabayon-r1 kernel). I have not noticed very much different between ati-drivers-8.433-r10 and ati-drivers-8.42.3-r10. The new driver still does not fix the problem of jittery videos under Compiz Fusion (the work-around is to switch temporarily to KWin or Metacity to watch videos).

viewtopic.php?f=54&t=11935#p68462

EDIT: Actually I have found a difference: After installing 8.433-r10 I did not need to edit the as-installed xorg.conf and can use the ATI Catalyst Control Center to change the screen resolution to 1440 x 900 for my external monitor. Finally: no more editing xorg.conf, no more keeping multiple versions of xorg.conf for different monitors. Just like Windows XP! Well, not quite: when I reboot I have to run Catalyst Control Center again to change the resolution again to 1440 x 900 for my external monitor. But that's no sweat. An hopefully this means that I will now be able to plug in a projector and use the Catalyst Control Center to change the resolution to 1024 x 768.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Fitzcarraldo » Thu Jan 10, 2008 18:46

Found another work-around for watching videos under AIGLX with the ATI driver, and this method is better as it does not involve temporarily switching from the Compiz Fusion window manager to either the KWin or Metacity window managers, so I can stay under Compiz Fusion and still have rock-steady video while rotating the CF cube.

Basically, I just use the Preferences/Settings menu in the media player (SMPlayer, MPlayer, VLC, KMPlayer or whatever) to select the X11 video output driver instead of the OpenGL video output driver. No more flickering videos in the player's window.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: HOWTO: Make ATi 8.42.3 run AiGLX

Postby Element » Fri Jan 11, 2008 21:01

Fitzcarraldo wrote:Found another work-around for watching videos under AIGLX with the ATI driver, and this method is better as it does not involve temporarily switching from the Compiz Fusion window manager to either the KWin or Metacity window managers, so I can stay under Compiz Fusion and still have rock-steady video while rotating the CF cube.

Basically, I just use the Preferences/Settings menu in the media player (SMPlayer, MPlayer, VLC, KMPlayer or whatever) to select the X11 video output driver instead of the OpenGL video output driver. No more flickering videos in the player's window.

Hey mate I appreciate that post. You solved my issue with VLC and flickering. You saved me a lot of trouble.
Image
On Sabayon @ Freenode: <ColdFlo> im not asking for support <ColdFlo> im asking for help
Element
Growing Hen
 
Posts: 144
Joined: Mon Dec 11, 2006 0:55
Location: 127.0.0.2

Re: [HOWTO]: Make ATi 8.42.3 run AiGLX

Postby om1d3 » Wed Jan 16, 2008 9:31

I've upgraded the compiz version accordingly to this.
Then I've updated ATi 8.42.3 from the default 8.40.4 just like it was explained in this topic.
After the restart I have two issues:
first when compiz is the window manager I don't have borders at all in any windows (witch is VERY frustrating) and there is no 3D effect at all. The compiz icon is loaded on the toolbar but no 3D cube. Isn't it turned on?
second I can't choose AIGLX in Acceleration Manager. There are only No acceleration and XGL.
I thought this was the whole idea: to have AIGLX (and borders).
Thanks for the tips anyway.
I like money, but I'm not crazy about them. Seems the feeling is mutual.
om1d3
Baby Hen
 
Posts: 13
Joined: Tue Jan 15, 2008 15:24
Location: Bucureşti, România

Re: [HOWTO]: Make ATi 8.42.3 run AiGLX

Postby Fitzcarraldo » Wed Jan 16, 2008 13:36

om1d3, I did not follow the procedure you referred to, neither did I follow the procedure given by Element in this thread. I followed the procedure given by wolfden in the following thread (even though I am not using SL Professional Edition):

viewtopic.php?f=60&t=11126&start=0#p64319

A few words of warning: I have found that I could install ati-drivers up to release 8.433-r10 and Compiz Fusion worked nicely under AIGLX (except for videos, but see the two work-arounds I mentioned in my earlier posts). But the ati-drivers from version 8.443 onwards leave me with no GUI and no text screens at all -- they completely kill all video -- and the only way I could get back to a working system was to use chroot and drop back down to the 8.433-r10 (or lower) driver. So, be very careful with the ATI drivers. For my laptop using Mobility Radeon X1600, the last working configuration I had was xorg-server-1.3.0.0-r1 with ati-drivers-8.433-r10. And note that none of the ATI drivers work with xorg-server 1.4 and onwards; you have to stick with xorg-server 1.3.

I have to say, at the moment I'm totally fed up with ATI, X.Org and Compiz Fusion. It's like trying to walk on eggs.


EDIT: My situation on 22 March 2008 is that I've now merged the latest driver, AMD Catalyst 8.03 (ati-drivers-x11-8.471.3-r10), and it works fine with xorg-x11-7.2 and xorg-server 1.3.0.0-r1 on my laptop with ATI Mobility Radeon X1600. AMD Catalyst 8.02 driver and onwards support xorg-x11-7.3 and xorg-server-1.4 (see viewtopic.php?f=53&t=12650), although I have not tried xorg-x11-7.3 and xorg-server-1.4 on my laptop yet.
Last edited by Fitzcarraldo on Sat Mar 22, 2008 4:33, edited 1 time in total.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest