LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Installing ATI linux drivers (https://www.linuxquestions.org/questions/linux-hardware-18/installing-ati-linux-drivers-417112/)

easuter 02-19-2006 06:29 AM

Installing ATI linux drivers
 
hi,

i have an ATI Radeon 9250, and i downloaded the new drivers to install on my linux system. i'm using vector linux 5.1 soho. anyway, after running the rpm package installer, iget a whole list of dependencies that the drivers need to install:

Code:

<home/easuter/MyDocs/Downloaded/fglrx_6_8_0-8.22.5-1.i386.rpm';echo RESULT=$?
error: Failed dependencies:
        /bin/sh is needed by fglrx_6_8_0-8.22.5-1
        ld-linux.so.2 is needed by fglrx_6_8_0-8.22.5-1
        libc.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libdl.so.2 is needed by fglrx_6_8_0-8.22.5-1
        libexpat.so.0 is needed by fglrx_6_8_0-8.22.5-1
        libfontconfig.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libfreetype.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libgcc_s.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libICE.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libm.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libpthread.so.0 is needed by fglrx_6_8_0-8.22.5-1
        libSM.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libstdc++.so.5 is needed by fglrx_6_8_0-8.22.5-1
        libX11.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libXcursor.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libXext.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libXft.so.2 is needed by fglrx_6_8_0-8.22.5-1
        libXinerama.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libXmu.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libXrandr.so.2 is needed by fglrx_6_8_0-8.22.5-1
        libXrender.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libXt.so.6 is needed by fglrx_6_8_0-8.22.5-1
        libXxf86vm.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libz.so.1 is needed by fglrx_6_8_0-8.22.5-1
        librt.so.1 is needed by fglrx_6_8_0-8.22.5-1
        libc.so.6(GLIBC_2.0) is needed by fglrx_6_8_0-8.22.5-1
        libc.so.6(GLIBC_2.1) is needed by fglrx_6_8_0-8.22.5-1
        libc.so.6(GLIBC_2.1.3) is needed by fglrx_6_8_0-8.22.5-1
        libc.so.6(GLIBC_2.2) is needed by fglrx_6_8_0-8.22.5-1
        libdl.so.2(GLIBC_2.0) is needed by fglrx_6_8_0-8.22.5-1
        libdl.so.2(GLIBC_2.1) is needed by fglrx_6_8_0-8.22.5-1
        libgcc_s.so.1(GCC_3.0) is needed by fglrx_6_8_0-8.22.5-1
        libgcc_s.so.1(GLIBC_2.0) is needed by fglrx_6_8_0-8.22.5-1
        libm.so.6(GLIBC_2.0) is needed by fglrx_6_8_0-8.22.5-1
        libm.so.6(GLIBC_2.1) is needed by fglrx_6_8_0-8.22.5-1
        libm.so.6(GLIBC_2.2) is needed by fglrx_6_8_0-8.22.5-1
        libpthread.so.0(GLIBC_2.0) is needed by fglrx_6_8_0-8.22.5-1
        libpthread.so.0(GLIBC_2.1) is needed by fglrx_6_8_0-8.22.5-1
        librt.so.1(GLIBC_2.2) is needed by fglrx_6_8_0-8.22.5-1
        libstdc++.so.5(GLIBCPP_3.2) is needed by fglrx_6_8_0-8.22.5-1
RESULT=1

i mean, i dont even know where to start!

any help is realy, realy appreciated

Vampirite 02-19-2006 07:36 AM

An option can be passed to rpm to prevent dependencies.

Something like:
rpm -i [packagename.rpm] --no-deps

I think.

Look at the rpm man page:
man rpm

--
Kourosh

GTrax 02-19-2006 07:41 AM

I have issues with ATI drivers, but not this one. It looks much as if all those library files are either Xfree86 or X.org related. Vector Linux is (damn fast!) small Slackware based, and uses Xfree86 3.3.5, and glibc 2.0.

It is entirely possible that ATI's driver, (which I consider to be Linux-hostile anyway" may expect later libraries. While I don't have enough info to risk being seriously disparaging (yet), my experience with NVIDIA driver and cards has been better, esp. regarding delivered video bandwidth.

GTrax 02-19-2006 07:49 AM

Let's update that...
Vector Linux 5.1-SOHO uses XFree86 4.5 and glibc 2.3.6
Sorry - It was a little fumble.

As it happens, I will be trying to rework a previous mangled Vector Linux,
and I have the (somewhat despised) Radion6200 card around. I will be trying it out, but I need a little handholding first.

easuter 02-19-2006 08:51 AM

well, i did the following:

converted the rpm package to a.tgz package and used the 'installpkg' comand to install it.

it seems to have installed, because no error ocurred when i ran the command.

now, when i open my xorg file, averything seems to be the same, even after the instalation! :confused:

please help me out here, i've been at this for days now lol

Vampirite 02-19-2006 09:26 AM

There is a configuration program, run:
aticonfig

If this doesn't work, try:
fglrxconfig

easuter 02-19-2006 11:03 AM

ok, great, i think its almost done, but.....when i inspected the xorg file, there are two entries refering to the graphics card, take a look:

Code:

Section "ServerLayout"
        Identifier    "Layout0"
        Screen      0  "aticonfig Screen 0" 0 0
        InputDevice    "Trust_Keyboard" "CoreKeyboard"
        InputDevice    "Trust_Mouse" "CorePointer"
EndSection

Section "Files"
EndSection

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

Section "InputDevice"
        Identifier  "Trust_Mouse"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/mouse"
        Option            "Buttons" "5"
        Option            "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
        Identifier  "Trust_Keyboard"
        Driver      "keyboard"
        Option            "XkbModel" "pc101"
        Option            "XkbLayout" "pt"
EndSection

Section "Monitor"
        Identifier  "Samtron_76E"
        HorizSync    31.5 - 79.0
        VertRefresh  40.0 - 150.0
EndSection

Section "Monitor"
        Identifier  "aticonfig Monitor 0"
EndSection

Section "Device"
        Identifier  "ATI_Radeon_9250"
        Driver      "ati"
EndSection

Section "Device"
        Identifier  "ATI Graphics Adapter 0"
        Driver      "fglrx"
        BusID      "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "ATI_Radeon_9250"
        Monitor    "Samtron_76E"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig Screen 0"
        Device    "ATI Graphics Adapter 0"
        Monitor    "aticonfig Monitor 0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection


am i supposed to delete one of them, so as to only have the entry that aticonfig created? and isnt the busid supposed to be PCI:1:0:1 instead?
thanx for your help so far, its been a realy great help :)

ps: oh yeah, aticonfig runs, but fglrxconfig doesnt. iget the unknown command when trying to run it

tony@tugela 02-19-2006 12:59 PM

Not 100% sure, but I think aticonfig is the replacement for fglrxconfig, so that's probably why you can't find it...
But you're doing better than me, the ati installer won't run - it can't find Xorg (slackware puts xorg in /usr/X11/bin ) Anyone got the driver installed in Slackware? Vampirite, which ati installer did you use, and could you post xorg.conf so I could copy settings?
Completely agree re Nvidia, wish I'd bought another nv instead of ati.

Vampirite 02-19-2006 01:04 PM

easuter:-
ATI website says aticonfig was in all the new packages, fglrxconfig wasn't included in new versions. I just posted it incase you had a different version.

Did aticonfig EDIT the xorg.conf or CREATE a new one?

If it created a new one, I would try and see if it works with no problem.

If it edited it, I do not know, I assume it should just work, try running X with startx, if it works, I think you should leave it, if it doesn't, post the error.

tony@tugela:-
My Graphics card was too old, unsupported by ATI. However, ATI says DRI provides drivers for mine.

I looked into it, and realised mostly everything was done for me, I just edited my xorg.conf to follow this: (only parts of it shown)

Code:

...
Section "Module"
  Load "dri"
  Load "glx"
  ...
EndSection
...
Section "Device"
  Driver "r128"
  ...
EndSection
...
Section "dri"
  Mode 0666
EndSection

And it worked.

If you post your Graphics Card, I might be able to help more, newer ones should use ATI's drivers, ones like mine should work like mine.

I completely agree, NVIDIA for my next computer.

easuter 02-19-2006 03:06 PM

i have a radeon 9250 256mb

baldwonder 02-19-2006 04:13 PM

I just wanted to post my experience since I just got the ATI drivers installed on my system running Vector Linux 5.1 Std. I have a Radeon 9600 256 MB card installed. Here is what I did:

Download ati-driver-installer-8.22.5-i386.run from ATI's website and run as root.
Code:

# ./ati-driver-installer-8.22.5-i386.run
chose automatic install.
then ran
#  /usr/X11R6/bin/aticonfig --initial

flgrx files were installed to /lib/modules/fglrx, so I did
Code:

# cd /lib/modules/fglrx/build_mod
# ./make.sh
# cd ..
# ./make_install.sh

I don't think the ./make.sh step is necessary, but I'm used to compiling the ATI driver so it is habit.

I had some problems getting the 3D acceleration to work so I recompiled the kernel to include agpgart as a module and not compile it into the kernel. I also included the nvidia-agp module since my motherboard uses an nForce2 chip. Here are the importtant options (borrowed from another ATI how-to):
Code:

- Processor type and features
  -[*] MTRR (Memory Type Range Register) support

- Loadable module support
  -[*] Enable loadable module support
  -[*] Kernel module loader support

- Character devices
  - <M> /dev/agpgart (AGP Support)
    -[*] NVIDIA chipset support
  - [ ] Direct Rendering Manager (XFree86 DRI support)

After recompiling, I re-compiled/re-intalled the fglrx drivers with the code above. After all of that, I added the following to my /etc/rc.d/rc.modules file:
Code:

/sbin/modprobe agpgart
/sbin/modprobe nvidia-agp
/sbin/modprobe fglrx

After rebooting, everything seemed to work just fine. Here is my xorg.conf just for reference:
Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "aticonfig Screen 0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbLayout" "us"
        Option            "XkbModel" "pc101"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/mouse"
        Option            "ZAxisMapping" "4 5"
EndSection

Section "Monitor"

#DisplaySize          360  270        # mm
        Identifier  "Monitor0"
        VendorName  "DEL"
        ModelName    "DELL M990"
        HorizSync    30.0 - 96.0
        VertRefresh  50.0 - 160.0
        Option            "DPMS"
EndSection

Section "Monitor"
        Identifier  "aticonfig Monitor 0"
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"  "no"                  # [<bool>]
#Option    "SWcursor"                  # [<bool>]
#Option    "Dac6Bit"                    # [<bool>]
#Option    "Dac8Bit"                    # [<bool>]
#Option    "BusType"                    # [<str>]
#Option    "CPPIOMode"                  # [<bool>]
#Option    "CPusecTimeout"              # <i>
Option    "AGPMode"  "8"                  # <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    "PanelOff"                  # [<bool>]
#Option    "DDCMode"                    # [<bool>]
#Option    "MonitorLayout"              # [<str>]
#Option    "IgnoreEDID"                # [<bool>]
#Option    "UseFBDev"                  # [<bool>]
#Option    "VideoKey"                  # <i>
#Option    "MergedFB"                  # [<bool>]
#Option    "CRT2HSync"                  # [<str>]
#Option    "CRT2VRefresh"              # [<str>]
#Option    "CRT2Position"              # [<str>]
#Option    "MetaModes"                  # [<str>]
#Option    "MergedDPI"                  # [<str>]
#Option    "NoMergedXinerama"          # [<bool>]
#Option    "MergedXineramaCRT2IsScreen0"        # [<bool>]
#Option    "DisplayPriority"            # [<str>]
#Option    "PanelSize"                  # [<str>]
#Option    "ForceMinDotClock"          # <freq>
#Option    "RenderAccel"                # [<bool>]
#Option    "SubPixelOrder"              # [<str>]
#Option    "ShowCache"                  # [<bool>]
#Option    "DynamicClocks"              # [<bool>]
Option    "no_dri"  "no"
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName  "RV350 AQ [Radeon 9600]"
        BusID      "PCI:2:0:0"
EndSection

Section "Device"
        Identifier  "ATI Graphics Adapter 0"
        Driver      "fglrx"
        Option            "(null)"
        Option            "UseInternalAGPGART" "off"
        BusID      "PCI:2:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    1
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig Screen 0"
        Device    "ATI Graphics Adapter 0"
        Monitor    "aticonfig Monitor 0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes        "1600x1200" "1280x1024" "1024x768" "800x600"
        EndSubSection
EndSection

Section "dri"
        Mode        0666
EndSection

Hope this helps.

easuter 02-19-2006 04:40 PM

well, i ran the installer and everything seemed to be ok, but right at the end, it said that there had been errors during the instalation (how surprising...) and that they were saved in a a log file in the fglrx folder.

so here is whats in the log:

Code:

[Warning] Driver : can't switch OpenGL library support to XFree86 4.x.x DRI method
[Warning]        : because package xf86_glx-4.*.i386.rpm is not installed.
[Warning]        : please install and run switch2xf86_glx afterwards.
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.13/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.13'

  WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
          is missing; modules will have no dependencies and modversions.

  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/agp3.o
In file included from include/asm/fixmap.h:27,
                from include/asm/pgtable.h:17,
                from include/linux/mm.h:36,
                from include/asm/pci.h:7,
                from include/linux/pci.h:919,
                from /lib/modules/fglrx/build_mod/2.6.x/agp3.c:66:
include/asm/acpi.h:31:28: acpi/pdc_intel.h: No such file or directory
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agp3.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.

now what?:confused:

all i know is that i'm never getting an ati card ever again...anyway, while this one is working i guess i have to try to get it up and running.

thanx for being pacient with me, realy apreciate it.

ps: if you need to look at my xorg filejust ask

easuter 02-20-2006 02:46 AM

anyone?? :(

UnTamed 02-20-2006 10:07 AM

Well, failed dependencies is usually a good indication that your system is missing something. ;)

I don't know Vector and haven't used Slack in ages but it seems to me you are missing,
the kernel sources or at least the kernel headers [...or both],
some -devel pkges like X11-devel or something similar and others possibly.

Install the most obvious and see if/what error remains.

HTH

Vampirite 02-20-2006 11:57 AM

Well, obviously the Kernel Module isn't compiling, you will need things like UnTamed said above.

Slackware Kernel Headers don't work good on my system, well I couldn't compile the vmmon module for VMWare using them, so I assume they are not too good, plus the Slackware FTP says they are not good.

However you are using Vector Linux, so it should be different...I assume.

Just so you know, to test my system to see if it had worked, I used kinfocenter -> OpenGL.


All times are GMT -5. The time now is 02:18 PM.