Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: ATI/AMD fglrx in Ubuntu Edgy, step by step.

  1. #1
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    ATI/AMD fglrx in Ubuntu Edgy, step by step.

    written by Vyacheslav Goltser

    This HOWTO is to get ATI's (now AMD's) fglrx module working under edgy. Reason for this HOWTO is that the wiki page has all the info thrown about and weird to follow. This HOWTO attempts to streamline the instruction already available on the wiki page.

    Step 0: Let's create a working environment so that we can clean up afterwords
    Code:
    cd ~/Desktop; mkdir atitemp; cd atitemp
    Step 1: Download the proper packages we will need.
    Code:
    sudo apt-get install fakeroot gcc-3.4 module-assistant build-essential debhelper
    Step 2: Download the latest driver from the ATI/AMD site, as of 11/23/2006, it is 8.31.5
    Code:
    wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.31.5-x86.x86_64.run
    Step 3: Make the driver executable
    Code:
    chmod +x ati-driver-installer-8.31.5-x86.x86_64.run
    Step 4: We need to generate the packages, but because the default shell is not bash (which we need) we need to make it default and then generate packages (this piece of code, also undoes it)
    Code:
    sudo mv /bin/sh /bin/sh.old
    sudo ln -s /bin/bash /bin/sh
    fakeroot sh ./ati-driver-installer-8.31.5-x86.x86_64.run --buildpkg Ubuntu/edgy
    sudo rm /bin/sh
    sudo mv /bin/sh.old /bin/sh
    Step 5: We need to install the generated packages and build the kernel module (this is the actual driver)
    Code:
    sudo dpkg -i *.deb
    sudo module-assistant prepare,update
    sudo module-assistant build,install fglrx-kernel
    sudo depmod
    Step 6: Package linux-restricted-modules has it's own fglrx module which we need to blacklist.
    Code:
    sudo gedit /etc/default/linux-restricted-modules-common
    put fglrx between the quotes, save and exist

    Step 7: Let's make sure that the driver is actually loadable. If you get an error here (output about it not being found) then read Troubleshooting Step 1.
    Code:
    sudo modprobe fglrx
    Step 8: Edit /etc/X11/xorg.conf to load fglrx instead of whatever is there.
    Code:
    sudo gedit /etc/X11/xorg.conf
    Scroll down to the Section "Device" that reffers to your video card and on the line that starts with Driver, change whatever is in quotes to fglrx (it is most likely that ati or radeon is there).

    Step 9: We need to restart X.
    Code:
    sudo /etc/init.d/gdm restart
    At this point you should have the drivers working confirm with the following code:
    Code:
    glxinfo | grep direct
    You should receive output that looks like this:
    Code:
    Direct Rendering: yes
    If you don't get that line, then try rebooting, if that doesn't help, come to the IRC channel #ubuntu on irc.freenode.net network.

    Troubleshooting step 1: modprobe can tell you that it can't find the module, if it is so, execute the followin g piece of code:
    Code:
    sudo cp /lib/modules/2.6.17-10-generic/misc/fglrx.ko /lib/modules/2.6.17-10-generic/volatile/fglrx.ko
    Last edited by slavik; November 24th, 2006 at 01:27 AM.

  2. #2
    Join Date
    Nov 2006
    Beans
    26
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    Well as smooth as that walk through went, it didn't seem to completely work. I sill cannot get "direct Rendering". Is there something I can do? I asked in irc but no one seemed to know/care.

    Thanks either way - graphics are working much better.
    Last edited by seijling; November 29th, 2006 at 10:18 AM.

  3. #3
    Join Date
    Jun 2005
    Beans
    13

    Unhappy Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    These instructions worked up to:

    sudo modprobe fglrx

    which returns:

    FATAL: Error running install command for fglrx

    It appears I have the right sources:

    root# apt-cache showpkg fglrx-kernel-source
    Package: fglrx-kernel-source
    Versions:
    8.31.5-1 (/var/lib/dpkg/status)

    root# apt-cache showpkg xorg-driver-fglrx-dev
    Package: xorg-driver-fglrx-dev
    Versions:
    8.31.5-1 (/var/lib/dpkg/status)

    Any suggestions on troubleshooting this problem?

    Thanks,

    Paul

  4. #4
    Join Date
    Jun 2005
    Beans
    13

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    Here's more info...


    paule@paule2:~$ sudo modprobe -vf fglrx
    install /sbin/lrm-video fglrx
    insmod /lib/modules/2.6.17-10-generic/misc/fglrx.ko
    FATAL: Error running install command for fglrx


    paule@paule2:~$ sudo install /sbin/lrm-video fglrx

    returns nothing and

    paule@paule2:~$ sudo insmod /lib/modules/2.6.17-10-generic/misc/fglrx.ko

    returns:
    insmod: error inserting '/lib/modules/2.6.17-10-generic/misc/fglrx.ko': -1 Invalid module format

    What does "Invalid module format" mean?

    Cheers,

    Paul

  5. #5

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    Try my script for ATI drivers it works for edgy

    fglrxinstaller

  6. #6
    Join Date
    Jun 2005
    Beans
    13

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    Thanks!

    FYI it doesn't work with the current version of the ATI driver (8.31.5-x86.x86_64) due to ATI's deviation from their previous naming convention.

    I should still be able to get it working though. Any idea which version of the driver will work with Edgy?

    Cheers,

    Paul

  7. #7
    Join Date
    Jun 2005
    Beans
    13

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    So I modified your script and it runs without errors, but still no direct rendering, still using Mesa driver!

    Code:
    version=8.31.5-x86.x86_64
    #wget http://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-$version.run
    sudo ln -sf bash /bin/sh
    sudo apt-get remove fglrx-kernel-2.6.17-10-generic
    bash ati-driver-installer-$version.run --buildpkg Ubuntu/edgy
    version=8.31.5
    sudo ln -sf dash /bin/sh
    sudo dpkg -i xorg-driver-fglrx_$version-1*.deb
    sudo dpkg -i fglrx-kernel-source_$version-1*.deb
    sudo dpkg -i fglrx-control_$version-1*.deb
    sudo rm /usr/src/fglrx-kernel*.deb
    sudo module-assistant prepare
    sudo module-assistant update
    sudo module-assistant build fglrx
    sudo module-assistant install fglrx
    sudo depmod -a
    sudo aticonfig --initial
    sudo aticonfig --overlay-type=Xv
    sudo cp libGL.so.1.2 /usr/lib/
    I commented out the wget since I already had the .run file. Been working on this on and off for days. Worst time I've ever had with a video driver.

  8. #8
    Join Date
    Jun 2005
    Beans
    13

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    More clues:

    dmesg says:

    [17179610.272000] fglrx: version magic '2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-3.4' should be '2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-4.1'
    It appears that:

    Code:
    apt-get install build-essential
    requires gcc-4.1:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    g++ g++-4.1 gcc gcc-4.1 libstdc++6-4.1-dev
    Suggested packages:
    gcc-4.1-doc lib64stdc++6 manpages-dev autoconf automake1.9 libtool flex
    bison gcc-doc gcc-4.1-locales libc6-dev-amd64 lib64gcc1 libstdc++6-4.1-doc

    One solution is to leave gcc-4.1 installed and compile a new kernel and all the kernel modules. But this seems like a lot of work just to get one driver working.

    Is gcc-4.1 required to compile the fglrx module?

    Was the Edgy distro was compiled with gcc-3.4?

    Opinions?

  9. #9
    Join Date
    Sep 2005
    Beans
    91

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    The closest that I can to actually working was I was able to boot, but as soon as GDM started, there were problems with the screen. From there, the system would eventually lock up.

    I am running under 2.6.19 and the card in question is a X200m. The battle continues!!!
    Last edited by kcallis; December 9th, 2006 at 01:49 AM. Reason: Spelling issues

  10. #10
    Join Date
    Sep 2005
    Beans
    91

    Re: ATI/AMD fglrx in Ubuntu Edgy, step by step.

    Quote Originally Posted by kcallis View Post
    The closest that I can to actually working was I was able to boot, but as soon as GDM started, there were problems with the screen. From there, the system would eventually lock up.

    I am running under 2.6.19 and the card in question is a X200m. The battle continues!!!
    Well, I am back to back screen of death, and I it would look like I am never going to get away with using fglrx as my driver... Nevertheless, I will keep battling, until I come up with some different!

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •