GUTSY ATi Efforts
As Gutsy's reign draws to a close, and the era of the Hardy Heron is nearly upon us, I thought it might me time to revisit the display driver issues of ATi. Following is the much easier situation we now have:
This recipe is for those who have a relatively recent ATi VGA card, and want to run the closed ATi drivers in their Ubuntu Gutsy/ Mint 4 system, with Compiz Fusion and AIGLX (pretty bling bling). As usual, should this recipe cause indigestion, pregnancy, or wombat dung in your computer, then please don't hesitate to sue me.
Preparation:
Cup of coffee, snack of choice.
Make sure that computer runs with card installed. You've got pictures on the screen? Great start.
Work:
Clear your Desktop of any DEB package files- in fact anything that shouldn't be there. Tidy is good.
Open Terminal. Leave Terminal Open.
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.preati
sudo apt-get update
sudo apt-get install build-essential fakeroot dh-make debhelper debconf libstdc++5 dkms
Open web browser (eg Firefox)
Go to get the latest ATi driver at time of writing: v 8-3 Save it to the Desktop.
Now open Synaptic. ( In System Administration ) - requires password
Use Search to find fglrx (Description or Name) mark each item for removal.
Apply.
Wait for it to finish processing.
Back to Terminal:cd ~/Desktop
sudo sh ati-driver-installer-8-3-x86.x86_64.run --buildpkg Ubuntu/gutsy
This takes a while to process, but completes it's task by adding some files to your Desktop. You may recognise these as DEB package files.
We will get back to these shortly.
Back in Terminal:sudo gedit /etc/default/linux-restricted-modules-common
What you need to do here is add the old ATi drivers to the list of stuff to ignore. So, change DISABLED_MODULES. If there is other stuff in there also, then leave it.DISABLED_MODULES="fglrx"
Save the file and close the Text Editor
Back in Terminal: This cleans out old packages.
sudo rm /usr/src/fglrx-kernel*.deb
Back in Terminal:
You should still be in the Desktop directory. If not, issue the command: cd ~/Desktopsudo dpkg -i *.deb
Installs all of the newly created DEBs for the ATi driver.
Right, finish the coffee and get another. You are half way. What you have accomplished so far is the installation of the ATi drivers. If you have had problems you can check here for clues.
REBOOT the PC
Now comes the part where you decide if you need to keep your old display settings. I recommend ditching them, as they may well cause more grief than they are worth. What I refer to is the /etc/X11/xorg.conf file which initializes the settings for display.
Open Terminal:sudo aticonfig --initial && sudo aticonfig --overlay-type=Xv
REBOOT the PC
Now the driver should be installed fully. Check the output of the following command:
Open Terminal:glxinfo | grep ATI
You should have something like this:
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon 9550 / X1050 Series
GL_ATI_draw_buffers, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader,
GL_ATI_meminfo, GL_ATI_separate_stencil, GL_ATI_texture_env_combine3,
GL_ATI_texture_float, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
If you have nothing like that, then do glxinfo | grep vendor. If that indicates MESA then you need to do some debugging Here.
Onto the pretty bling bling:
Back in Terminal:sudo gedit /usr/bin/compiz
Replace this block of code with the minor edits required:
COMPIZ_BIN_PATH="/usr/bin/" # For window decorators and compiz
PLUGIN_PATH="/usr/lib/compiz/"
GLXINFO="/usr/bin/glxinfo"
KWIN="/usr/bin/kwin"
METACITY="/usr/bin/metacity"
COMPIZ_NAME="compiz.real" # Final name for compiz (compiz.real)
# For Xgl LD_PRELOAD
LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"
# Minimum amount of memory (in kilo bytes) that nVidia cards need
# to be allowed to start
# Set to 262144 to require 256MB
NVIDIA_MEMORY="65536" # 64MB
NVIDIA_SETTINGS="nvidia-settings" # Assume it's in the path by default
# For detecting what driver is in use, the + is for one or more /'s
XORG_DRIVER_PATH="/usr/lib/xorg/modules/drivers/+"
FALLBACKWM="${METACITY}"
FALLBACKWM_OPTIONS="--replace $@"
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"
# blacklist based on the pci ids
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
#T=" 1002:5954 1002:5854 1002:5955" # ati rs480
#T="$T 1002:4153" # ATI Rv350
T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12" # intel 965
T="$T 8086:2972" # i965 (x3000)
#T="$T 1002:3152 1002:3150 1002:5462 1002:5653 " # ati X300 X600,X600 X700
BLACKLIST_PCIIDS="$T"
unset T
Save the file.
do CTRL ALT BACKSPACE to restart the video system (X). Then when you get back to your desktop, you should have Compiz running with wobbly windows, etc.
If not, open Terminal: compiz & You should see the screen decorations disappear, then return different. Windows now wobble when you drag them. Other wise the output in the terminal window may give a clue as to problems.sudo apt-get install emerald compiz-config-settings-manager compiz-plugins
Will install some of the helpers for bling bling.
Also goto gnome-look.org for more themes for Compiz, beryl (emerald window decorations), and other stuff.
I BROKE IT! Boohoo.
To reverse your hard work do this:sudo apt-get install --reinstall libgl1-mesa-glx
sudo mv /etc/X11/xorg.conf.preati /etc/X11/xorg.conf
And REBOOT.
NEW INFO thanks to Mackenzie Morgan:
If you're using ATI or Nvidia's binary drivers on a laptop, you've probably noticed that resuming from suspend & hibernate doesn't work so well. The fix is pretty simple, but definitely not intuitive.
1. Hit alt+f2 (or if you use KDE whatever their runbox thing is...or use a terminal)
2. Type in gksu gedit /etc/default/acpi-support (replace gksu gedit with kdesu kate if you use KDE)
3. Scroll to Line 17, which says MODULES="" and put fglrx (if you use ATI) or nvidia (if you use Nvidia) in the quotes
4. Save and exit
This will make the computer automatically unload your ATI or Nvidia drivers when you hibernate/suspend and reload them when you resume. If for some reason it still doesn't work perfectly (like the 3D is gone when you come back), try turning off Compiz before you suspend or hibernate. I've seen that mess with things too.
Also, from the Troubleshooting:
Catalyst 8.3 on 64-bit systems requires the --force-overwrite command in the above dpkg command:
sudo dpkg -i --force-overwrite xorg-driver-fglrx_8.471-0*.deb fglrx-kernel-source_8.471-0*.deb fglrx-amdcccle_8.471-0*.deb
Trackback address for this post
19 comments
sudo apt-get install compiz compiz-kde compizconfig-settings-manager compiz-core compiz-fusion-plugins-main compiz-plugins
To install the KDE compiz handling
My recommendation would be to add the line from the Troubleshooting page "Catalyst 8.3 on 64-bit systems requires the --force-overwrite command in the above dpkg command:" to your instructions as now 8.3 is going to be the primary driver installed. All the rest of my problems came from bad proof reading.
Thanks again.
Things went swimmingly until I typed in "glxinfo | grep ATI"
here's my output;
If one cannot enjoy reading a book over and over again, there is no use
in reading it at all.
-- Oscar Wilde
ichi@ichi-the-blind-swordsman:~$ glxinfo | grep ATI
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
and here's my xorg.conf file;(I am installing this on a dell D600 laptop with Radeon 9000 mobility GPU, 32 MB ram. Hopefully I'm not too much of a fool for attempting this)
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
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"
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 Radeon R250 [Mobility FireGL 9000]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1400x1050"
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
Thanks for any help you can send my way
Cheers,
D
These lines in your xorg.conf will be causing some grief. Comment them out and see how you get on. (To comment add # at the beginning of the line)
========
Section "Device"
Identifier "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection
=========
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1400x1050"
EndSubSection
EndSection
=========
You can type into the Terminal: sudo gedit /etc/X11/xorg.conf
to get at that file.
After the edit, use CTRL-ALT-BackSpace to restart the XServer.
Thanks for the help. unfortunately my output still reads like so;
ichi@ichi-the-blind-swordsman:~$ glxinfo | grep ATI
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
ichi@ichi-the-blind-swordsman:~$ glxinfo | grep vendor
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
ichi@ichi-the-blind-swordsman:~$
and here's my updated xorg.conf file;
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"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
# Section "Device"
# Identifier "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]"
# Driver "ati"
# BusID "PCI:1:0:0"
# EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection
# Section "Screen"
# Identifier "Default Screen"
# Device "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]"
# Monitor "Generic Monitor"
# DefaultDepth 24
# SubSection "Display"
# Modes "1400x1050"
# EndSubSection
# EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection
Thank you again for the great site and the help. I currently use OSX and linux for my everyday platforms, but after the fiasco that is Leopard I've been slowly moving towards using linux exclusively. I know that the learning curve can be a bit steep, but with sites like yours and an ever increasingly large linux community its getting easier to work solely with linux every day. Cheers again for the help!
D
glad you are persevering. I am not sure what is happening in your system, as it now has the real driver and screen sections removed, whilst the commented out ones are still there. By all accounts you shouldn't even be getting an Xserver.
Maybe an idea to start over from scratch at the command line, if you can.
CTRL-ALT-F2 to get to the command line
login
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.garbage
sudo apt-get install --reinstall libgl1-mesa-glx
sudo dpkg-reconfigure xserver-xorg -phigh
select ati if it asks
then check the generated file with
cat /etc/X11/xorg.conf
it should be back to the default ATI driver, not fglrx.
Then
sudo reboot
Once the Xserver comes back up start again from the top of the post.
More power to ya!
this idea is perfect, well almost perfect for me.
everything seams to go ok until i press ctrl + alt + backspace because the top of the windows are dissapearing and i cant drag them. i have ati radeon xpress 200m.
im not sure if in that script u alocate memory to the graphic card, but if u do maibe u can let 128 more srom the system ram, because the card has already 128 and i want to make it bigger
thanks
i found that the window top border disappearing was the cause of no 3d rendering!? and u can fix the borders by typing "metacity"
but the 3d rendering?????
I don't think you can allocate more memory for your graphics card.
You do need to check the glxinfo stuff. If fglrx driver is not loading then 3D is not happening.
that after installing the driver with no problems it didn't appear in restricted drivers what should I do???
Thanks in advance
If it does then well and good. If not then do:
sudo gedit /etc/X11/xorg.conf
and post the file contents here.
/var/log/Xorg.0.log and
glxinfo showed mismatch between driver and kernel module. I think the missing step is to recompile the kernel module from the fglrx-kernel-source package using module-assistant. Note this packages deb is produced on the desktop from the installer execution.
use
sudo m-a prepare
sudo m-a build,install fglrx-kernel
once everything matches version wise then my system came right again
When i installed hardy,i did a full update,installed fgxlr and compiz everything worked fine,and stayed fine for a week
then when i started ubuntu,i was able to login but then i get a blank screen,i tried booting from recovery mode and fixed xorg
thing worked but no visuals or driver,ive been trying allot of guides,all steps work till i enable the driver,tried the fgxlr and the ati driver
all result in the same problem,after entering user and password,i get a blank screen
in your guide it was the same,till the step (sudo aticonfig --initial && sudo aticonfig --overlay-type=Xv) after reboot i get the blank screen when entering ubuntu
im not sure whats going on with my ATI,all was working for a whole week
i'm using ATI mobility x600
thanks
It sounds like the compiz stuff is busted.
Have you tried going through the troubleshooting steps to remove the fglrx drivers, test, then reinstall? And reinstall compiz, ensuring that you do the whitelisting necessary for the X600.
Have you tried loading a livecd to see if that will work? I think ones like the new Sabayon 3.5 live DVD have the drivers already installed, you just choose them at boot.
Can you take a look at the log file to find the issue?
sudo cat /var/log/Xorg.0.log >> ~/xlog
then
cat ~/xlog
the new driver is 8.7
i tried trouble shoooting but no use,but to think about it,even when i installed the new ati driver,i didnt uninstall the compiz,i might try that
i didnt understand (whitelisting necessary for the X600)
Ubuntu live CD works fine,didnt try another,even fglxr driver with compiz worked fine for a week(still didnt figure how that can possibly happen)
use Syanptic. search for compiz
do complete removal on everything installed.
reboot
then use synaptic to install compiz again.
the do the following:
sudo gedit /usr/bin/compiz
Replace this top block of code with the following, paying special attention to the lines containing the word WHITELIST and X600:
COMPIZ_BIN_PATH="/usr/bin/" # For window decorators and compiz
PLUGIN_PATH="/usr/lib/compiz/"
GLXINFO="/usr/bin/glxinfo"
KWIN="/usr/bin/kwin"
METACITY="/usr/bin/metacity"
COMPIZ_NAME="compiz.real" # Final name for compiz (compiz.real)
# For Xgl LD_PRELOAD
LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"
# Minimum amount of memory (in kilo bytes) that nVidia cards need
# to be allowed to start
# Set to 262144 to require 256MB
NVIDIA_MEMORY="65536" # 64MB
NVIDIA_SETTINGS="nvidia-settings" # Assume it's in the path by default
# For detecting what driver is in use, the + is for one or more /'s
XORG_DRIVER_PATH="/usr/lib/xorg/modules/drivers/+"
FALLBACKWM="${METACITY}"
FALLBACKWM_OPTIONS="--replace $@"
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"
# blacklist based on the pci ids
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
#T=" 1002:5954 1002:5854 1002:5955" # ati rs480
#T="$T 1002:4153" # ATI Rv350
T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12" # intel 965
T="$T 8086:2972" # i965 (x3000)
#T="$T 1002:3152 1002:3150 1002:5462 1002:5653 " # ati X300 X600,X600 X700
BLACKLIST_PCIIDS="$T"
unset T
Save and restart X, then see if you can start the 3d Desktop Effects.
restarted and it still works,hope it doesnt get screwed again
THANKS for the wonderfull guide and for the extra help
10/03/08 11:51:54 pm, 11355 views,





