Gutsy effort in new ATi driver

by cw Email

THIS POST IS NOW OUT OF DATE. PLEASE GO HERE FOR CURRENT DETAILS



ATI recently released their new driver for Linux, v 8.42.3. It took some work to get Gutsy running properly in Compiz, without XGL, only AIGLX. Here's how...

Follow steps here:

http://ubuntuforums.org/showthread.php?t=569654, at bottom of page, by Michael37, BUT IGNORE the installation of xserver-xgl.

My post to that forum here:

http://ubuntuforums.org/showthread.php?p=3675643#post3675643



Re: Gutsy, Xgl and ATI fglrx AND MESA

I too had this problem after applying the 8.42.3 ati driver in gutsy: Mesa took over the rendering. What it came down to, from looking at /var/log/Xorg.0.log, was that the fglrx module was not loading, even tho' it was quite happy installing itself from the binary, and from Envy (which uses the same binary). After googling a bit I did this to fix:

first of all Become su, and do the following preferably outside of an X session, and having no X-sessions running. This is after the driver is installed!!!

1.) lsmod (look for any thing that says ati if exists type rmmod ati)

2.) cd /lib/modules/fglrx/build_mod/

3.) sh make.sh

4.) (not necessary but good to do anyway just in case) modprobe agpgart

5.) cd /lib/modules/fglrx/

6.) sh make_install.sh (Ignore any warnings about kernel taint)

7.) modprobe fglrx && lsmod | grep fglrx

8.) reboot, so that X can restart with it's default modules loaded.

Now I get:

fglrxinfo -display :0

display: :0.0 screen: 0

OpenGL vendor string: ATI Technologies Inc.

OpenGL renderer string: ATI MOBILITY RADEON X600

OpenGL version string: 2.0.6958 Release







Steps: follow the instructions on first page.

But don't reinstal xserver-xgl

I needed to alter /usr/bin/compiz to whitelist the fglrx, and comment out the line blacklisting my graphics card (X600).

Then I make sure composite and AIGLX is enabled in the xorg.conf. My file:

==========

Section "ServerLayout"

# Uncomment if you have a wacom tablet

# InputDevice "stylus" "SendCoreEvents"

# InputDevice "cursor" "SendCoreEvents"

# InputDevice "eraser" "SendCoreEvents"

Identifier "Default Layout"

Screen 0 "aticonfig-Screen[0]" 0 0

InputDevice "Generic Keyboard"

InputDevice "Configured Mouse"

InputDevice "Synaptics Touchpad"

EndSection

Section "Files"

EndSection

Section "Module"

Load "glx"

EndSection

Section "ServerFlags"

Option "AIGLX" "on"

EndSection

Section "InputDevice"

Identifier "Generic Keyboard"

Driver "kbd"

Option "CoreKeyboard"

Option "XkbRules" "xorg"

Option "XkbModel" "pc105"

Option "XkbLayout" "us"

EndSection

Section "InputDevice"

Identifier "Configured Mouse"

Driver "mouse"

Option "CorePointer"

Option "Device" "/dev/input/mice"

Option "Protocol" "ImPS/2"

Option "ZAxisMapping" "4 5"

Option "Emulate3Buttons" "true"

EndSection

Section "InputDevice"

Identifier "Synaptics Touchpad"

Driver "synaptics"

Option "SendCoreEvents" "true"

Option "Device" "/dev/psaux"

Option "Protocol" "auto-dev"

Option "HorizEdgeScroll" "0"

EndSection

Section "InputDevice"

Identifier "stylus"

Driver "wacom"

Option "Device" "/dev/input/wacom"

Option "Type" "stylus"

Option "ForceDevice" "ISDV4" # Tablet PC ONLY

EndSection

Section "InputDevice"

Identifier "eraser"

Driver "wacom"

Option "Device" "/dev/input/wacom"

Option "Type" "eraser"

Option "ForceDevice" "ISDV4" # Tablet PC ONLY

EndSection

Section "InputDevice"

Identifier "cursor"

Driver "wacom"

Option "Device" "/dev/input/wacom"

Option "Type" "cursor"

Option "ForceDevice" "ISDV4" # Tablet PC ONLY

EndSection

Section "Monitor"

Identifier "Generic Monitor"

Option "DPMS"

EndSection

Section "Monitor"

Identifier "aticonfig-Monitor[0]"

Option "VendorName" "ATI Proprietary Driver"

Option "ModelName" "Generic Autodetecting Monitor"

Option "DPMS" "true"

EndSection

Section "Device"

Identifier "ATI Technologies Inc M24 1P [Radeon Mobility X600]"

Driver "fglrx"

Option "VideoOverlay" "on"

Option "OpenGLOverlay" "off"

Option "DRI" "true"

Option "ColorTiling" "on"

Option "EnablePageFlip" "true"

Option "AccelMethod" "EXA"

Option "XAANoOffscreenPixmaps"

Option "RenderAccel" "true"

Option "AGPMode" "4"

Option "AGPFastWrite" "on"

Option "KernelModuleParm" "agplock=0"

Option "UseInternalAGPGART" "no"

Option "EnablePrivateBackZ" "no"

Option "DisableGLXRootClipping" "true"

Option "AddARGBGLXVisuals" "true"

Option "AllowGLXWithComposite" "true"

Option "mtrr" "on"

BusID "PCI:1:0:0"

EndSection

Section "Device"

Identifier "aticonfig-Device[0]"

Driver "fglrx"

Option "VideoOverlay" "on"

Option "OpenGLOverlay" "off"

Option "DRI" "true"

Option "ColorTiling" "on"

Option "EnablePageFlip" "true"

Option "AccelMethod" "EXA"

Option "XAANoOffscreenPixmaps"

Option "RenderAccel" "true"

Option "AGPMode" "4"

Option "AGPFastWrite" "on"

Option "KernelModuleParm" "agplock=0"

Option "UseInternalAGPGART" "no"

Option "EnablePrivateBackZ" "no"

Option "DisableGLXRootClipping" "true"

Option "AddARGBGLXVisuals" "true"

Option "AllowGLXWithComposite" "true"

Option "mtrr" "on"

EndSection

Section "Screen"

Identifier "Default Screen"

Device "ATI Technologies Inc M24 1P [Radeon Mobility X600]"

Monitor "Generic Monitor"

DefaultDepth 24

SubSection "Display"

Modes "1440x900"

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 "DRI"

Mode 0666

EndSection

Section "Extensions"

Option "Composite" "Enable"

EndSection

----

EDIT

----

After a kernel upgrade you need to do this:

1.) sudo -i

2.) cd /lib/modules/fglrx/build_mod/

3.) sh make.sh

4.) (not necessary but good to do anyway just in case) modprobe agpgart

5.) cd /lib/modules/fglrx/

6.) sh make_install.sh (Ignore any warnings about kernel taint)

7.) modprobe fglrx && lsmod | grep fglrx

8.) reboot, so that X can restart with it's default modules loaded.

After a Compiz upgrade you need to edit the /usr/bin/compiz file to whitelist fglrx again.

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

10 comments

Comment from: Jonathan [Visitor] Email
You're missing a step (if I'm not mistaken), as this tutorial only shows how to get the 8.37 driver, not the 8.42.
01/11/07 @ 02:01
Comment from: cw [Member] Email
True, I should've mentioned to only use it as a rough guide. Download the ATI installer from here: http://ati.amd.com/support/drivers/linux/linux-radeon.html
then use the command line interface in the area where you installed it:
chmod a+x ati*
sudo ./ati*
It will run through the installer, accept the defaults.
01/11/07 @ 08:25
Comment from: Saku Vainikainen [Visitor] Email
Hello!

Remember to say "apt-get autoremove restricted-manager", otherwise it will mount a tmpfs called voltile under the kerner modules directory. This "volatile" contains an older fglrx which will get loaded instead of the new ATI drivers.

Rgrds,
Saku.
03/11/07 @ 04:52
Comment from: cw [Member] Email
Thanks, Saku.

Because I wish to keep the Restricted Devices Manager for other devices, I have taken the tick out for the ATi Device, meaning it is disabled according to the Ubuntu official drivers, but enabled on another level.
05/11/07 @ 08:40
Comment from: Ari Särkkä [Visitor] Email
You wrote:

2.) cd /lib/modules/fglrx/build_mod/

Sorry, but I don't have such a folder.. I quess I'm missing some libraries, but I relly don't know what to do. Waiting for guidance.

Thanks - Ari
08/11/07 @ 04:58
Comment from: cw [Member] Email
Ari, it's difficult to help without detail.
The steps involved come from loading the ATi Binary driver, from ATi themselves. Have you done that? What distribution are you using?
08/11/07 @ 08:26
Comment from: Rohan [Visitor] Email
Argh!
I feel like I've tried everything.
Am dying to get AIGLX working and be rid of XGL, as XGL is currently incompatible with pressure sensitivity on Wacom tablets... anyway.

I'm a tad confused as to the order in which the above instructions should be carried out.

Do I carry out Michael 37's stuff THEN install 8.42 (with chmod A+x etc...)
THEN your make/lsmod stuff; and install compiz after fglrxinfo gives me an 8.42 instead of mesa?

I've tried a few combinations (partimage has maintained sanity when screwing things up royally!!! :)

My card is the x1950 Pro PCIE and is fine with 8.37/XGL, but will refuse to show up as anything but mesa no matter what i do when 8.42 is installed (regardless of having XGL)

As a final query where does Saku's (above) point fit in?

If my plight is hopeless then no worries!
Cheers anyway
-Rohan
12/11/07 @ 09:24
Comment from: cw [Member] Email
Hi Rohan,

sorry for the late reply, I've been sifting through a ton of spam on this blog, and missed your comment until now.
Do the Michael37 stuff, then add in 8.42, then the make/lsmod stuff (all actually from the ATi site), removing the ATi driver in the Restricted Drivers Manager, if it's there, because this is not ubuntu-official.

Although it has fixed the issue i had with window resizing, it has created a problem with video/opengl apps. Any video , eg Totem, Kino, appears as the occasional still, with a whole lot of black in between frames. OpenGL apps, eg BrutalChess, flicker like mad.

But those are things I can live with, the window resizing problem was causing me a lot of grief ( had to restart Compiz after every window drag-resize).

If only ATi could work with the community, instead of insisting upon keeping secrets in their driver. (yeah, i know, 3rd party ip and all that, but if we knew how to work it it could be rewritten, surely?)
13/11/07 @ 22:12
Comment from: Leed [Visitor] Email
Wow it all works lovely with a X1300 (in a dell vostro 200) but the video hardware overlay is a little choppy (its better in full screen, but has some diagonal shearing) is this normal?

Oh and the damn thing still doesn't hibernate :(

09/12/07 @ 06:30
Comment from: cw [Member] Email
Hi Leed,
video problems are normal. As are OpenGL problems. ATi/AMD need to fix their driver. Hibernate is no go for me either. But it doesn't work in Windows properly, so I never use it anyhow.
09/12/07 @ 10:54

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Details

CombatWombat Speaks is a personal blog about Computing, Faith, and Life.
It is deliberately anonymous, as it doesn't really matter who I am.
What matters is the quality of the information within, and how
relevant it is to you.

There is a heavy emphasis here on technical computing, especially Linux, Ubuntu, Mint, Microsoft, VirtualBox, Networking, and Usability.

Please drop a comment in if you would like to have more details, or wish to learn about something specifically.

Close Details
CombatWombat speaks
2 Corinthians 10:4