![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |||
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: Brisbane, Australia
Beans: 105
Ubuntu 6.10 Edgy
|
HOW TO: ATI Drivers v0.3 (IMPORTANT UPDATE!!!)
IMPORTANT UPDATE - PLEASE READ BEFORE YOU DO ANYTHING THIS GUIDE IS DEPRECIATED USE THIS THREAD!!!
This How To was originally written for versions 5.04 and 5.10 of Ubuntu. I do not know if it works for 6.06LTS. I am currently running Ubuntu 6.10 (Edgy Eft). If you are running Edgy I recommend following the instructions in THIS THREAD. I also recommend using the latest drivers from ATI/AMD. Personally, I find them easier to get working than the Ubuntu restricted drivers which did not work for me at all. The linked method has the advantage of easily generating and installing a .deb package which is a cinch to uninstall and update (you will need to reinstall the driver every time the kernel is updated). I recommend rebooting rather than trying to restart X when you do this. As usual, please read the whole of the first post in that thread BEFORE doing anything!!! Replace the filename at the end of the wget command with the latest driver package name to download the drivers. Alternatively, download the package via your web browser to the folder where you will be performing the installation - eg ~/Desktop/atitemp - and skip the wget command. At the time of this update (March 20, 2007) the latest driver package for Intel CPU's is: Code:
ati-driver-installer-8.34.8-x86.x86_64.run Do not use the xorg.conf file below to configure X. Follow the instructions in the linked thread. Trust me on this, I tried it and had to boot to the recovery console! If you are running an older ATI card which is unsupported by the newest ATI drivers you can download older drivers from the ATI/AMD website: START HERE. In this case, download the package via your web browser to the folder where you will be performing the installation - eg ~/Desktop/atitemp - and skip the wget command. I will leave the original HOW TO as is for those who are still running older versions of Ubuntu. =========================================== HOW TO: ATI Drivers v0.2 (Revised) For Ubuntu 5.04 and 5.10 I know, I know, flog the dead horse I would suggest that you first try and enable 3D acceleration with the method I have outlined. If it works, back up your xorg.conf and give fglrxconfig a go which has the advantage of including a routine to configure TV out. Please read the whole thing BEFORE you go and break your system NOTE 1: If you use defoma fonts and also use fglrxconfig to generate your xorg.conf file you will need to add the relevant lines from your backed up copy of xorg.conf (or my example below) to the "Files" section of the xorg.conf generated by fglrxconfig as the defoma font directories are ignored by fglrxconfig. NOTE 2: I know everyone wants the bleeding edge version of the drivers for their gfx card. However, unless you are using a custom kernel I highly recommend sticking with the official ubuntu driver packages. Why? These packages are designed to work perfectly with your ubuntu system. The rpm from ATI is not. Also, installing the non-ubuntu drivers will cause problems when/if xlibmesa-gl is upgraded. If you choose to ignore this advice, that's OK - you will learn more about how your system works. Maybe more than you wanted to know 1. Official Ubuntu Kernel: If you are using an official ubuntu kernel there is no need to dick around with the rpm file from the ATI website - it will just get unnecessarily messy - SO DON'T, OK? Make sure you have the Ubuntu Restricted repositories enabled (they should be by default) and install the drivers like this: Code:
$ sudo apt-get install linux-restricted-modules-<your-kernel-version> xorg-driver-fglrx Then edit your xorg.conf file - see 3 below. 2. Custom Kernel: If, and ONLY if, like me and many other Linux tweakheads who can't leave well enough alone, you are running a custom kernel which you have craftily configured and compiled yourself the official Ubuntu fglrx driver package will be useless to you. Follow the instructions here making the necessary kernel version adjustments. Also, make sure you have your kernel headers installed in addition to your (properly configured) kernel source. Since you've compiled your own kernel I assume (uh-oh) that you know what you're doing. Come back here and go to the next section. 2(a). ATI rpm on standard Ubuntu kernel If, contrary to my advice, you ARE going to install the ATI .rpm package on a standard Ubuntu kernel the instructions at the above link will work for you. But make sure to uninstall the restricted modules first. 3. Edit /etc/X11/xorg.conf This is the file which tells your xserver WTF is going on. Mess this up and it won't work. At worst the thing will freeze on boot - which ain't so bad if you're comfortable at a command prompt (and the longer you use linux the more comfortable you're likely to get with that Back up your xorg.conf, eg: Code:
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-old Go here and look at section 5. Configure X. Hell, read the whole page. Cut and paste the configuration there into the relevant sections of your xorg.conf file - AFTER BACKING IT UP!!!! N.B. The driver packages provided on that page do NOT work in ubuntu - I've tried. However, if someone with some knowledge could work out how to modify the source package scripts ... And before anyone points out that the linked page is for xfree86 drivers - trust me on this one: the config works for xorg as well. I used this config on debian with instant success and no problems and when I finally ignored fglrxconfig and used it in ubuntu the drivers worked -finally!!! You will also notice that on that site it is expressly stated: DO NOT USE fglrxconfig TO GENERATE YOUR xorg.conf FILE!!!!!!!!!!! - at least the first time. Once you've edited and saved xorg.conf restart your x server (<Ctrl>+<Alt>+<Backspace>), log in and try these commands: Code:
$fglrxinfo Code:
OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: RADEON 9600 Generic OpenGL version string: 1.3.4893 (X4.3.0-8.10.19) If it's working do Code:
$ glxgears Code:
$ fgl_glxgears Just get rid of everything under "Screen" -> "Modes" except the 24 bit depth section. Also make sure that "omit xfree86-dga" [fixed - thanks to gratefulfrog] is enabled in the modules section. You do not need to specify your preferred resolution first. After a reboot you should be able to choose resolutions on the fly as normal. I include my xorg.conf for your reading/copying/editing pleasure, with thanks to Flavio Stanchina for his fantastic work. If you use this file please make sure that you enter the paramaters for YOUR devices, eg, keyboard, mouse, etc, rather than mine Code:
# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 commands:
#
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
# sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
# sudo dpkg-reconfigure xserver-xorg
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "GLcore"
Load "glx"
Load "dri"
# Load "extmod" but omit DGA extension - this must be included as is if you want to change resolution on the fly
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "freetype"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "ATI Technologies, Inc. Radeon 9600 (R300 AP)"
Driver "fglrx"
# If X refuses to use the screen resolution you asked for,
# uncomment this; see "Bugs and Workarounds" for details.
#Option "NoDDC"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Use internal AGP GART support? ===
# If OpenGL acceleration doesn't work, try using "yes" here
# and disable the kernel agpgart driver.
Option "UseInternalAGPGART" "no"
# You don't actually need this next BusID bit - unless maybe you have dual monitors?
# I've removed it from mine (single monitor only) and all is well.
# I think it's a leftover from fxglrconfig - doh!
BusID "PCI:1:0:0"
EndSection
Section "Monitor"
Identifier "NEC E1100+"
Option "DPMS"
HorizSync 31-96
VertRefresh 55-160
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon 9600 (R300 AP)"
Monitor "NEC E1100+"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
If you hit serious problems and end up having to log in at a terminal because your xserver freezes all you need to do to reverse things is login with your username and password and: Code:
$ sudo cp /path/to/xorg.conf-old /etc/X11/xorg.conf $ sudo reboot If you've installed the Control Panel and are wondering how to start it: Quote:
1. CHECK FOR ERROR MESSAGES: To look for error messages check the following files in a text editor: Code:
$ gedit /var/log/Xorg.0.log $ gedit /var/log/dmesg (I have an unconfirmed suspicion that if you run a -k7 kernel you may have to do it this way from the beginning - will try and find out. Don't be shy about doing it this way from the start if you feel comfortable at the command line - you must know how to use a console text editor, eg, vi, vim, nano, etc. Although you could edit your xorg.conf before stopping the xserver - the new file won't be used until you restart the xserver. By this stage you should have the fglrx driver installed anyway.) If you've done the above and restarted your xserver, checked that xorg.conf is correct and it's still not working give this a go: Quote:
If it's not working and you're receiving LVDS related errors (see 1 above) the following might help: Quote:
maqi DISCLAIMER: I take no responsibility in the extremely unlikely event that you irreparably break your system. I definitely am not an expert, so you are on your own. The settings in the provided xorg.conf file are not in any way guaranteed to work on your specific system - but give them a go anyway RESOURCES: Falvio Stanchina's ATI Linux Drivers for Debian site. This is also linked to in section 3 above. Even though his packages will not work with Ubuntu, please do have a look. He includes useful links & troubleshooting tips. Gentoo ATI Radeon FAQ (a good source of troubleshooting hints) - thanks again to Flavio Stanchina. ATI Linux FAQ at the ATI website. And if all else fails try the ATI channel at irc.freenode.org #ati (If anyone is aware of resources which could/should be added to this list - and I'm sure there are plenty - please post them or PM me.)
__________________
A Gentleman is one who can play the bagpipes, yet chooses not to. Last edited by John.Michael.Kane; May 28th, 2007 at 11:13 AM.. Reason: Update |
|||
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2005
Beans: 17
|
Re: HOW TO: ATI Divers v0.2
Very Very Nice, I'm now on my macmini so I don't have possibility to do so. My question is I have two laptops with the Radeon Mobility does these drivers work with that?... thnx
|
|
|
|
|
#3 | |
|
Quad Shot of Ubuntu
![]() Join Date: Nov 2004
Beans: 489
|
Re: HOW TO: ATI Divers v0.2
Quote:
|
|
|
|
|
|
#4 | ||
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: Brisbane, Australia
Beans: 105
Ubuntu 6.10 Edgy
|
Re: HOW TO: ATI Divers v0.2
From the included documentation:
Quote:
Quote:
__________________
A Gentleman is one who can play the bagpipes, yet chooses not to. |
||
|
|
|
|
#5 | |
|
First Cup of Ubuntu
![]() Join Date: Feb 2005
Beans: 9
|
Re: HOW TO: ATI Divers v0.2
Quote:
Nice howto btw. |
|
|
|
|
|
#6 | |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: Brisbane, Australia
Beans: 105
Ubuntu 6.10 Edgy
|
Re: HOW TO: ATI Divers v0.2
Quote:
I used the second method above because I'm running a custom kernel. But if you're running an official kernel you really don't need the potential headaches with xlib-mesa upgrades. Much easier to stick with the offical driver IMHO. Of course, that won't stop a lot of ppl maqi
__________________
A Gentleman is one who can play the bagpipes, yet chooses not to. |
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Feb 2005
Location: Heverlee, Belgium
Beans: 167
Ubuntu 6.06
|
Re: HOW TO: ATI Divers v0.2
Nice guide, I just got it working.
Extremely happy now. Last edited by A-star; April 8th, 2005 at 03:16 AM.. Reason: Deleting wrong quote |
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() |
Just Curious, does this driver suport the ATI All-in-Wonder 128 Pro? I'm afraid that I may need to upgrade my vieo card.
|
|
|
|
|
#9 | |
|
Ubuntu Espresso Roast
![]() |
Re: HOW TO: ATI Drivers v0.2
Quote:
Just a note to say that I think that your advice, whilst well intentioned and well written, is a little hysterical and misleading. I have had issues getting dma working on my dvd burner, but it wouldn`t inspire me to write a crazy rant about the evil that is 'hdparm'. I think your howto is fine - but your how-not-to comments regarding fglrxconfig are ill-informed at best, and probably scaremongering for all the linux newcomers. Last edited by bobmitch; April 8th, 2005 at 05:37 AM.. |
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Beans: 6
|
Re: HOW TO: ATI Divers v0.2
First thanks for your guide!
It's well written but I had already installed the new drivers before! But I have 2 problems with my radeon MOBILITY 9600 : First I have a custom kernel with framebuffer activated with vesafb! my grub line : kernel /boot/vmlinuz-2.6.10 root=/dev/hda1 ro video=vasafb:ywrap,mtrr,1200x800 quiet splash If I boot with this configuration, each time I switch un a console (CTRL+ALT+F1,....), when I come back to X 6my screen is corrupted and I have to kill gdm and restart it! If I disable framebuffer, it's ok, but for me, framebuffer is indispensable! So if there's no fix I think I'll coma back with radeon driver! So my question : Is somebody have the same problem as me with an other card or is it only with this card! If somebody has a solution , it would be nice that he posts it. (I've already search the web a whole day but found nothing : it seems to be a known bug but a few people is talking about it) My second problem is that I tries to install with a 2.6.11 kernel but the modules didn't compile, I had to patch it with official patch. Then it compiled but X was freezing. So does somebody has success installing this drivers with 2.6.11 kernel and which patch did they apply? Thanks a lot guys! Ciao Noel |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|