You are not logged in.

#176 2005-07-04 18:36:26

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

Mee too, i'm gonna ask him later.. wink

Ah, i've updated the wiki page, let me know if it's comprensible and, as usual, feel free to change anything as u need.


http://wiki2.archlinux.org/index.php/At … rnel%202.6

grtz

Offline

#177 2005-07-05 04:18:32

mmgm
Member
From: Israel
Registered: 2005-05-26
Posts: 52
Website

Re: ati radeon driver install

Just thought it may be woth mentioning that it seems to work without disabling locked user pages, at least on my box.

[omri@Dean ~]$ cat /etc/X11/xorg.conf | grep KernelModuleParm                  
[omri@Dean ~]$ glxinfo | grep direct
direct rendering: Yes

Offline

#178 2005-07-05 15:23:09

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

Write it at the end of the howto on the wiki page mate smile

Offline

#179 2005-07-06 16:18:21

skeeter
Member
From: Morristown TN
Registered: 2003-02-01
Posts: 77

Re: ati radeon driver install

Thanks for the update Qwerty and DibbletheWrecker.  I'll try them out and post back my outcome later tonite.  Have to work now. lol


Skeeter

Rule #1:  There are NO RULES!

Offline

#180 2005-07-07 14:48:49

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: ati radeon driver install

Just to say that i have tried both packages and it works without any problems.  big_smile


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#181 2005-07-09 12:17:47

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

I saw Ati-Drivers made it to Community.

Ok lets all vote for the kernel package too.


Powered by Arch Linux

Offline

#182 2005-07-10 11:29:41

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

[root@myhost giorgos]# pacman -Sy ati-drivers
:: Synchronizing package databases...
:: current is up to date
:: extra is up to date
:: community is up to date

Targets: ati-drivers-8.14.13-3

Total Package Size:   8.1 MB

Proceed with upgrade? [Y/n] y

checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  ati-drivers: /usr/X11R6/lib/libGL.so.1.2: exists in filesystem


errors occurred, no packages were upgraded.

I have installed before kernel2612-cko2-swsusp2 2.6.12-2

What is wrong?


Powered by Arch Linux

Offline

#183 2005-07-10 14:29:11

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: ati radeon driver install

When you reinstalled xorg, it added the file /usr/X11R6/lib/libGL.so.1.2 which the ATI drivers want to overwrite.  From my experience, this is fine, and you can use pacman -Sf ati-drivers to force the overwrite.

Offline

#184 2005-07-10 15:50:40

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

My xorg version is 11R6.8.2-2

[root@myhost giorgos]# pacman -Sf ati-drivers

Targets: ati-drivers-8.14.13-3

Total Package Size:   8.1 MB

Proceed with upgrade? [Y/n] y

checking package integrity... done.
loading package data... done.
installing ati-drivers... done.
PLEASE NOTE:
ATI drivers do not function with the stock Arch Linux kernel.
To function the drivers require agp support build as a module.
for more information please see
  http://wiki2.archlinux.org/index.php/Ati Radeon & Kernel 2.6
--------------------------------------------------------------
You can use the tool 'fglrxconfig' to generate an xorg.conf file.
Remember to add fglrx to the MODULES list in /etc/rc.conf.
[root@myhost giorgos]# modprobe fglrx
FATAL: Module fglrx not found.

:?:


Powered by Arch Linux

Offline

#185 2005-07-10 16:13:45

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: ati radeon driver install

If you're currently booted into kernel2612-cko2-swsusp2 then type

depmod

then try modprobing it again.

You still may have permissions problems on the folders that ati-drivers installed to though.  After you do this, please re-run the command

ls -lad `pacman -Ql ati-drivers` 2>/dev/null

and post it here.

Offline

#186 2005-07-10 16:26:41

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

Could you please tell me how to solve the permission problems and I will install again the ati-drivers and post the results you ask me for?


Powered by Arch Linux

Offline

#187 2005-07-10 16:58:25

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

I've mailed dibble to make him know about the permission problem after installing the ati-drivers package (he has changed a few things in the PKGBUILD, now it's more elegant but it's needed to fix something)... anyway, the easyest way to do it is to run a:

chmod -R a+rx /usr/X11R6/*

Because all the files from the new ati drivers package are now in /usr/X11R6/[bin, include, lib]... it's better to have everything in the same place and now it's not needed to add anything to /etc/profile.d.... anyway there is also another problem i've noticed. When you try to load kernel module, also if u have kernel2612-cko2-swsusp2 if it's a different build from the one used to make ati drivers you'll have an error instead of having fglrx module loaded... so, waiting for the kernel2612-cko2-swsusp2 package being avaliable for downlod from the community repository i think it's better to download the PKGBUILD and the other file from the CVS and build ati drivers on your machine (you just need to run makepkg smile)

c ya

Offline

#188 2005-07-10 17:16:51

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: ati radeon driver install

On my system, I also had to do:

chmod a+rw /usr /usr/include/ /usr/include/GL/ /usr/share/ /usr/share/applnk/ /usr/share/gnome/ /usr/share/gnome/apps/ /usr/share/icons/

because the permissions there had been messed up as well

-=edit=- Here's the full list of folders that get borked by ati-drivers:

chmod a+rw /usr/ /usr/X11R6/ /usr/X11R6/bin/ /usr/X11R6/include/ /usr/X11R6/include/X11/ /usr/X11R6/include/X11/extensions/ /usr/X11R6/lib/ /usr/X11R6/lib/modules/ /usr/X11R6/lib/modules/dri/ /usr/X11R6/lib/modules/drivers/ /usr/X11R6/lib/modules/linux/ /usr/include/ /usr/include/GL/ /usr/share/ /usr/share/applnk/ /usr/share/gnome/ /usr/share/gnome/apps/ /usr/share/icons/

Offline

#189 2005-07-10 17:27:38

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

I will wait until both packages work without the problems posted ...
No 3d acceleration till then... sad


Powered by Arch Linux

Offline

#190 2005-07-10 18:26:41

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

Ok, untill everything will be fixed you may use this other PKGBUILD instead of the dibble's one...
I've just tried it on my pc and everything is working fine.
(as always, if you are not using dibble's kernel you have to change the _kernel variable)


pkgname=ati-drivers
pkgver=8.14.13
pkgrel=4
pkgdesc="ATI precompiled drivers for r350, r300, r250 and r200 chipsets.  Built for the kernel2612-cko2-swsusp2 pkg in [community]"
url="http://www.ati.com"
license=""
depends=('xorg>=6.8.0')
makedepends=('rpmunpack' 'cpio')
conflicts=('ati-drivers-module')
install=ati-drivers.install
source=(http://www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm 
        http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6-agpgart.patch 
        http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-inter_module_get.patch 
        http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-new-agpgart.patch 
        http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-x86-64.patch)
md5sums=('5187698cee2edf3dee89bc3eee5729c1' '9fd0520f6b25f672f9c1410c013415d5'
         '5b86791c3dad330791b7615ea205fe3e' '275238baa6d2db2b96bc8b98275a7928'
         '3211f58d9d30355207ff2fe49c1dc945')

_kernel=2.6.12-cko2-swsusp2

build() {
    cd $startdir/src
    rpmunpack < $startdir/src/fglrx_6_8_0-$pkgver-1.i386.rpm | gzip -d | cpio -idmuv
    rm -rf $startdir/src/usr/X11R6/bin/*.bz2
    cd $startdir/src/lib/modules/fglrx/build_mod

    # Patching the drivers to make em works with kernel 2.6.12
    patch -p0 < $startdir/src/fglrx-2.6.12-inter_module_get.patch
    patch -p1 < $startdir/src/fglrx-2.6.12-new-agpgart.patch
    patch -p0 < $startdir/src/fglrx-2.6-agpgart.patch

    ### For 64 Bit System you must use an this patch too!!
    # patch -p0 < $startdir/src/fglrx-2.6.12-x86-64.patch

    # Build the kernel module
    cp 2.6.x/Makefile .
    make -C /usr/src/linux-${_kernel} SUBDIRS="`pwd`" modules || return 1

    # Install the kernel module
    install -m 644 -D $startdir/src/lib/modules/fglrx/build_mod/fglrx.ko 
        $startdir/pkg/lib/modules/${_kernel}/video/fglrx.ko

    # Begin installing things...
    install -d $startdir/pkg/usr/X11R6/bin/

    install -m 755 -D $startdir/src/usr/X11R6/bin/* 
                $startdir/pkg/usr/X11R6/bin/ || return 1

    install -m 755 -D $startdir/src/usr/X11R6/lib/libGL.so.1.2 
                $startdir/pkg/usr/X11R6/lib/libGL.so.1.2 || return 1

    install -m 644 -D $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o 
                $startdir/pkg/usr/X11R6/lib/modules/drivers/fglrx_drv.o || return 1

    install -m 755 -D $startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so 
                $startdir/pkg/usr/X11R6/lib/modules/dri/fglrx_dri.so || return 1

    install -m 755 -D $startdir/src/opt/kde3/share/applnk/fireglcontrol_kde3.desktop 
                $startdir/pkg/opt/kde/share/applnk/fireglcontrol.desktop

   install -m 755 -D $startdir/src/usr/share/gnome/apps/fireglcontrol.desktop 
                   $startdir/pkg/opt/gnome/share/application/fireglcontrol.desktop

   install -m 644 -D $startdir/src/usr/share/icons/ati.xpm 
                $startdir/pkg/usr/share/icons/ati.xpm


    # Remove stuff that we've put elsewhere
    rm -f $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o 
          $startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so 
                $startdir/src/usr/X11R6/lib/libGL.so.1.2 
                $startdir/src/usr/X11R6/bin/*
    rm -rf $startdir/src/usr/{src,share,opt} $startdir/src/usr/X11R6/bin

    # Install all the rest
    cp -R $startdir/src/usr $startdir/pkg
}

Offline

#191 2005-07-12 13:38:01

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: ati radeon driver install

New ATI-drivers in [community] with fixed permissions (I hope)

I quite happily admit if fucked the permissions up on the other one so sorry about that but it should be all fixed and very Arch like now, with all the kde/gnome files in the correct place and everything.

The new pkg also backs up the xorg libGL file and will  restore it when you remove the ati-drivers - this should prevent the file conflict issues (i hope)

I don't even have an ati card myself so this is quite a  big favour on my part wink

From what qwerty has said my ati-driver pkg will only work with my kernel build - can everyone else confirm that please?

the kernel2612-cko2-swsusp2 kernel will also be added to [community] shortly as kernel26cko so there will be another update of the ati-drivers then but after that it should be easy to maintain them smile

Offline

#192 2005-07-12 14:31:59

mmgm
Member
From: Israel
Registered: 2005-05-26
Posts: 52
Website

Re: ati radeon driver install

Namcap returns no permission warnings for a change, so I think that's fixed, but there is still the file conflict thing. This is probably impossible to avoid as pre_install() is run AFTER the file conflict check, so moving libGL doesn't solve it, because it is simply run too late.

Offline

#193 2005-07-12 16:28:21

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: ati radeon driver install

bugger - i was not sure but couldn't be arsed to check!

I think it could be beaten by using

backup="thefile"

pre_install
mv thefile.pacsave xorg.thefile

post_remove
mv xorg.thefile thefile

Offline

#194 2005-07-12 17:31:00

mmgm
Member
From: Israel
Registered: 2005-05-26
Posts: 52
Website

Re: ati radeon driver install

This may well fix it. I must warn anyone who is willing to try it that I am a noob and that it's a pretty cheap solution, but it might work.

Offline

#195 2005-07-12 18:09:54

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: ati radeon driver install

yeah - that'll work - it's a bit of a hack tho!  shall i do it?!

Offline

#196 2005-07-13 09:08:17

OCNubStylee
Member
Registered: 2005-03-15
Posts: 25

Re: ati radeon driver install

I installed the most recent ati-drivers and kernel26cko from [community], and my Xorg.0.log shows this:

(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0):     Name: radeon
(II) fglrx(0):     Version: 1.16.0
(II) fglrx(0):     Date: 20050311
(II) fglrx(0):     Desc: ATI Radeon
(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe8b30000 at 0xb7c93000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

The radeon driver is loading instead of the fglrx? I don't get it...I have fglrx in my xorg.conf and rc.conf....

Offline

#197 2005-07-13 09:29:18

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: ati radeon driver install

(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work]

That'd be it then - i need to rebuld the ati-drivers against the new kernel

Offline

#198 2005-07-13 14:03:59

OCNubStylee
Member
Registered: 2005-03-15
Posts: 25

Re: ati radeon driver install

Hmm...I restarted and now it sees fglrx, however I'm getting an error with agp

(II) fglrx(0): [agp] Mode=0x00000000 bridge: 0x8086/0x2560
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask   0x00000000
(EE) fglrx(0): [agp] could not determine AGP since mode=0x00000000
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe8b30000 at 0xb7c56000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

could not determine AGP since mode=0x00000000 What exactly does that mean?

Offline

#199 2005-07-13 14:13:25

mmgm
Member
From: Israel
Registered: 2005-05-26
Posts: 52
Website

Re: ati radeon driver install

I believe you posted in the other thread that your card is PCI and that you have a different card taking up the AGP slot. I think this is probably the source of your problem, but I'm not sure and have no idea how to solve this. Perhaps someone smarter than me (qwerty?) holds the answer, in the mean time, maybe you should look into disabling your builtin card from the BIOS again. I know you've already said you can't, but perhaps it's worth another shot as it seems to be the sole source of your problems right now.

Offline

#200 2005-07-14 16:37:21

giorgosc61
Member
From: Athens, Greece
Registered: 2005-05-27
Posts: 140

Re: ati radeon driver install

Hello.

Here what I did:

pacman -S kernel26cko

reboot

pacman -S ati-drivers
nano /etc/rc.conf and added fglrx to modules
fglrxconfig

reboot

Now I have 3d acceleration !!!  big_smile

Great work guys.  smile
Thank you very much.

One think I want to ask is that I do
[root@myhost giorgos]# glxinfo | grep "direct rendering"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: unable to open display (null)

I don't think it is ati related but can someone tell me how to fix it?


Powered by Arch Linux

Offline

Board footer

Powered by FluxBB