Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Proprietary ATI drivers (8.24.8) with XOrg7 (7.0.0)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
batal
n00b
n00b


Joined: 01 Mar 2005
Posts: 5

PostPosted: Wed Apr 19, 2006 9:11 am    Post subject: [HOWTO] Proprietary ATI drivers (8.24.8) with XOrg7 (7.0.0) Reply with quote

This mini-howto is about getting the proprietary ATI drivers (verion 8.24.8) to work with Xorg7. I thought i it would be best, if i write down my experiences with this problem, since i was searching the forums for quiet a lot of time and haven't found anything to solve this. So please don't blame me for posting this, if there is actually already a solution on the boards.

First of all there is to say, that getting the drivers to work just seems to be a problem with a new X installation (not upgrades).

Changelog

04/20/2006 Improved the method of getting the files out of the installer, and added a minor fix to the code according to coffeejunk's post below. Thanks coffeejunk.

I. What we have

  • Fresh 2006.0 stage3 installation without X, KDE ...
  • Modular X
  • KDE 3.5.2
  • An ATI Radeon 9800 Pro
  • Kernel 2.6.15-gentoo-r5

This means my "base system" runs on x86, and XOrg and KDE on ~x86


II. Resources



III. The Problem

The installer of the driver didn't seem to like my XOrg installation.

Code:
clementine ~ # sh ati-driver-installer-8.24.8-x86.run
Creating directory fglrx-install
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.24.8....................................
==================================================
 ATI Technologies Linux Driver Installer/Packager
==================================================
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
Detected configuration:
Architecture: i686 (32-bit)
X Server: Xorg 7.0.0

Detected version of X does not have a matching 'x700' directory
You may override the detected version using the following syntax:
     X_VERSION=<xdir> ./ati-driver-installer-<ver>-<arch>.run [--install]

The following values may be used for <xdir>:
    x410        XFree86 4.1.x
    x420        XFree86 4.2.x
    x430        XFree86 4.3.x
    x680        X.Org 6.8.x
    x690        X.Org 6.9.x
Removing temporary directory: fglrx-install


Hmm!? According to the System Requirements listed in the release notes of the driver [1] XOrg 7 shouldn't cause any problems.
After reading that XOrg 6.9 is the same as XOrg 7 - just not modular, i thought it would be best trying to tell him we have got version 6.9 (If you just guessed, yes i am not so much into X and stuff :P)
Code:
clementine ~ # X_VERSION=x690 sh ati-driver-installer-8.24.8-x86.run

The installation went well, but it didn't work. A reboot later i found out, that Direct Rendering wasn't active...


IV. The Solution

Here is what you actually are looking for. I guess this would have been enough information for you on that problem, but i thought it would have not been enough to justify a howto :)
Long story short. The installer won't copy the necessary files to their right location, because of the differing version of XOrg (well thats my guess at this point). To fix this, we first have to extract the installers files.
Code:
clementine fglrx-install # sh ati-driver-installer-8.24.8-x86.run --extract fglrx-install
Its contents will look like this
Code:
clementine fglrx-install # ls
ATI_LICENSE.TXT          fglrx-uninstall.sh  pre_cp.sh
README.distro            install             pre_drv.sh
arch                     lokixml.sh          pre_km.sh
ati-installer.sh         map_xname.sh        preun_km.sh
ati-packager-helper.sh   packages            setup.data
ati-packager-wrapper.sh  post_drv.sh         verify_install.sh
check.sh                 post_km.sh          x410
common                   postun_cp.sh        x420
component_config.sh      postun_drv.sh       x430
copy_uninstall_files.sh  postun_km.sh        x680
create_log.sh            postun_rn.sh        x690


Code:
clementine fglrx-install # ls x690/usr/X11R6/lib/
modules
clementine fglrx-install #

This directory (modules) needs to be copied to /usr/lib/xorg/ and made executable
Code:
clementine fglrx-install # cp -r x690/usr/X11R6/lib/modules /usr/lib/xorg/
clementine fglrx-install # chmod +x /usr/lib/xorg/modules/drivers/fglrx_drv.so

Now let's have a look at whats we got
Code:
clementine fglrx-install # ls /usr/lib/xorg/modules/drivers/
ati_drv.so  atimisc_drv.so  fglrx_drv.so  r128_drv.so  radeon_drv.so  vesa_drv.so
clementine fglrx-install #

Now we have the right files placed in the right directory. Reboot your system and give it a try :)

This way it worked very well for me.

V. Additional Information

Code:

clementine batal # emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X aac acl alsa amarok apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 ccache cdr cdrom cli crypt css ctype cups curl dba dri dvd dvdr dvdread elibc_glibc encode esd ethereal exif expat fat fbsplash firefox flac foomaticdb force-cgi-redirect ftp gcj gd gdbm gif glut glx gpm gtk gtk2 gtkhtml hal hbci iconv icq idn imagemagick imlib innodb isdnlog java jpeg jpeg2k kde kernel_linux lame lcms libg++ libwww mad maildir memlimit mime mmx mono mozdevelop mp3 mpeg mysql mysqli ncurses nforce2 nls nptl nsplugin ntfs ogg opengl openssl oss pam pcre pdf pdflib perl png posix pppd python qemu-fast qt quicktime readline real reiserfs samba sblive screen sdl session sharedmem simplexml soap sockets socks5 speex spell spl sse ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev userland_GNU vorbis wifi win32codecs x86 xml xml2 xmlrpc xsl xv xvid zlib input_devices_keyboard input_devices_mouse linguas_de video_cards_fglrx video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS


Code:

clementine batal # cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "aticonfig Screen 0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
        Load  "glx"
        Load  "extmod"
        Load  "xtrap"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "explorerps/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"

        #DisplaySize      320   240     # mm
        Identifier   "aticonfig Monitor 0"
        VendorName   "IVM"
        ModelName    "HM703U"
        HorizSync    30.0 - 96.0
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "Dac8Bit"                   # [<bool>]
        #Option     "BusType"                   # [<str>]
        #Option     "CPPIOMode"                 # [<bool>]
        #Option     "CPusecTimeout"             # <i>
        #Option     "AGPMode"                   # <i>
        #Option     "AGPFastWrite"              # [<bool>]
        #Option     "AGPSize"                   # <i>
        #Option     "GARTSize"                  # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        #Option     "EnableDepthMoves"          # [<bool>]
        #Option     "EnablePageFlip"            # [<bool>]
        #Option     "NoBackBuffer"              # [<bool>]
        #Option     "DMAForXv"                  # [<bool>]
        #Option     "PanelOff"                  # [<bool>]
        #Option     "DDCMode"                   # [<bool>]
        #Option     "MonitorLayout"             # [<str>]
        #Option     "IgnoreEDID"                # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "MergedFB"                  # [<bool>]
        #Option     "CRT2HSync"                 # [<str>]
        #Option     "CRT2VRefresh"              # [<str>]
        #Option     "CRT2Position"              # [<str>]
        #Option     "MetaModes"                 # [<str>]
        #Option     "MergedDPI"                 # [<str>]
        #Option     "MergedXinerama"            # [<bool>]
        #Option     "MergedXineramaCRT2IsScreen0"       # [<bool>]
        #Option     "MergedNonRectangular"      # [<bool>]
        #Option     "MergedMouseRestriction"    # [<bool>]
        #Option     "DisplayPriority"           # [<str>]
        #Option     "PanelSize"                 # [<str>]
        #Option     "ForceMinDotClock"          # <freq>
        #Option     "ColorTiling"               # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "RageTheatreCrystal"        # <i>
        #Option     "RageTheatreTunerPort"      # <i>
        #Option     "RageTheatreCompositePort"  # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"                 # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "RenderAccel"               # [<bool>]
        #Option     "SubPixelOrder"             # [<str>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "DynamicClocks"             # [<bool>]
        #Option     "BIOSHotkeys"               # [<bool>]
        #Option     "VGAAccess"                 # [<bool>]
        #Option     "ReverseDDC"                # [<bool>]
        #Option     "LVDSProbePLL"              # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "UseInternalAGPGART" "yes"
        Identifier  "ATI Graphics Adapter 0"
        Driver      "fglrx"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon R350 [Radeon 9800 Pro]"
        BusID       "PCI:3:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig Screen 0"
        Device     "ATI Graphics Adapter 0"
        Monitor    "aticonfig Monitor 0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        "video"
        Mode         0660
EndSection



I will gladly accept any suggestions or corrections...


-batal


Last edited by batal on Thu Apr 20, 2006 6:49 am; edited 1 time in total
Back to top
View user's profile Send private message
coffeejunk
n00b
n00b


Joined: 21 Aug 2005
Posts: 1
Location: ask me plz

PostPosted: Wed Apr 19, 2006 9:12 pm    Post subject: Reply with quote

what i had to do was:

»unmerge the old ati-driver
Code:
emerge -aC ati-driver


»now it’s on to get the new one :)
if you like, look up ati’s homepage… clickme

Code:
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.24.8-x86.run


»next step is that you have to extract all the files ati-file contains, because ati says they won’t support xorg7

Code:
sh ati-driver-installer-8.24.8-x86.run --extract ati-driver


»by there you’ve got a directory called ati-driver.. it should contain a directory called x690. this stands for Xorg 6.9 this is just the same as Xorg 7.0 but not modular. this shouldn’t disturb the driver ;)
now we need to copy the driver-files to the xorg-directory, and make ‘em executable.

Code:
cp -r ati-driver/x690/usr/X11R6/lib/modules/ /usr/lib/xorg/
chmod +x /usr/lib/xorg/modules/drivers/fglrx_drv.so


»start x.org and enjoy the "power" of your ati-card

[edit]
my last emerge --sync told me that the driver now is in portage.. *thumbs up* so you might only need to emerge ati-driver
[/edit]

_________________
Samsung X20 1700 «» gentoo «» myblog «» olo
Back to top
View user's profile Send private message
kovvu
n00b
n00b


Joined: 16 Mar 2006
Posts: 17

PostPosted: Thu Apr 20, 2006 1:30 pm    Post subject: Reply with quote

Thanks coffeejunk. I was able to install and get it working in X. Despite X being able to load the driver, I am still experiencing serious kernel panics on logout and on log in, I am unable to load the desktop (gets as far as loading the gnome-panel then hangs). I hope these issues are resolved in a subsequent driver release. For now I have the driver loaded and X started but only because I disabled DRI in xorg.conf, unfortunately, that means I have no direct rendering and no XGL :( [insert obligatory ATI rant here]
Back to top
View user's profile Send private message
IdefiX666
n00b
n00b


Joined: 13 Apr 2006
Posts: 60

PostPosted: Fri Apr 21, 2006 1:33 pm    Post subject: Reply with quote

I have problem starting x...

Code:
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
Back to top
View user's profile Send private message
Serph
n00b
n00b


Joined: 04 Aug 2005
Posts: 24

PostPosted: Fri Apr 21, 2006 11:52 pm    Post subject: Reply with quote

I can't get dri to work

glxinfo |grep direct

direct rendering: No

less /var/log/Xorg.0.log |grep DRI

(II) fglrx(0): DRI Initialization Successfull!
(II) fglrx(0): [DRI] installation complete

I had DRI working on Xorg 6.8 so nothing has changed.

Basically Xorg log says DRI is setup however glxinfo says otherwise.

Am I missing something?
Back to top
View user's profile Send private message
IdefiX666
n00b
n00b


Joined: 13 Apr 2006
Posts: 60

PostPosted: Tue Apr 25, 2006 4:59 pm    Post subject: Reply with quote

Code:
(II) Loading font Type1
(II) LoadModule: "fglrx"
(II) Loading /usr/lib/xorg/modules/drivers/fglrx_drv.so
(II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
   compiled for 6.8.99.8, module version = 8.24.8
   Module class: X.Org Video Driver
   ABI class: X.Org Video Driver, version 0.7
(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: "fglrx"
(II) Unloading /usr/lib/xorg/modules/drivers/fglrx_drv.so
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
   compiled for 7.0.0, module version = 1.1.0
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 0.6
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
   compiled for 7.0.0, module version = 1.0.1
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 0.6
(EE) No drivers available.

Fatal server error:
no screens found



anybody can help?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum